size of debug symbols

Christos Chatzaras chris at cretaforce.gr
Fri Feb 22 14:42:17 UTC 2019


After an upgrade from 11.2 to 12.0 I notice that /usr/lib disk usage is a lot more than 11.2.

Both systems have the same settings, same programs, and GENERIC kernel.

------

I upgrade using these commands:

svnup release
cd /usr/src
make buildworld
make buildkernel
make installkernel
mergemaster -p
make installworld
mergemaster -Ui
make -DBATCH_DELETE_OLD_FILES delete-old
make -DBATCH_DELETE_OLD_FILES delete-old-libs

------
FreeBSD 11.2:
------

du -sh /usr/lib
475MB

du -sh /usr/lib/debug/usr/bin
166MB

du -sh /usr/lib/debug/usr/bin/clang.debug
14MB

------
FreeBSD 12.0:
------

du -sh /usr/lib
1.2GB

du -sh /usr/lib/debug/usr/bin
547MB

du -sh /usr/lib/debug/usr/bin/clang.debug
166MB

------

Also another user in FreeBSD forums with 12.0 told me that his /usr/lib/debug/usr/bin/clang.debug file is 73MB.

Are these differences in disk usage normal?


More information about the freebsd-questions mailing list