Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUT for Windows build is huge and sparse #2800

Open
2 tasks
jimklimov opened this issue Feb 9, 2025 · 0 comments
Open
2 tasks

NUT for Windows build is huge and sparse #2800

jimklimov opened this issue Feb 9, 2025 · 0 comments
Labels
bug impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) packaging Windows
Milestone

Comments

@jimklimov
Copy link
Member

According to recent CI runs, the tarball for consumers is nearing 3GB in size (but compresses down to 100Mb over 10 minutes of 1-hour time slot on Appveyor):

Sun, Feb  9, 2025  1:26:51 PM
cd .inst
7z a ../NUT-for-Windows-x86_64-SNAPSHOT-%APPVEYOR_BUILD_VERSION%.7z NUT*
7-Zip 24.08 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-08-11
Scanning the drive:
34 folders, 482 files, 2840422626 bytes (2709 MiB)
Creating archive: ../NUT-for-Windows-x86_64-SNAPSHOT-2.8.2.2734-master.7z
Add new data to archive: 34 folders, 482 files, 2840422626 bytes (2709 MiB)
Files read from disk: 482
Archive size: 107839478 bytes (103 MiB)
Everything is Ok
Sun, Feb  9, 2025  1:35:42 PM

This is too much by whatever metric we can imagine (one sixth of the CI run time, huge storage footprint for whoever wants to try it out). Part of the problem may be duplication of dependency DLLs, however many NUT driver binaries are in 30-50Mb range each, as if they are all statically linked despite the presence of many shared objects in the loop?

  • Check if builds ARE dynamic?
  • Check if debug information is present (and can account for such size) in the binaries? Can it be stripped or externalized (PDB files etc.)?
    • Note it could well be there even by design of experimental CI builds, to help debug them as N4W is a recent newcomer to the ecosystem. But at what cost...
@jimklimov jimklimov added bug impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) packaging Windows labels Feb 9, 2025
@jimklimov jimklimov added this to the 2.8.4 milestone Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) packaging Windows
Projects
Status: No status
Development

No branches or pull requests

1 participant