Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2019 16:28:01 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Christos Chatzaras <chris@cretaforce.gr>
Cc:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: size of debug symbols
Message-ID:  <20190222162801.aa891c03.freebsd@edvax.de>
In-Reply-To: <46040D79-BA05-43F5-9213-67094355B68A@cretaforce.gr>
References:  <46040D79-BA05-43F5-9213-67094355B68A@cretaforce.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 Feb 2019 16:42:05 +0200, Christos Chatzaras wrote:
> 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?

It seems that sizes are increasing as FreeBSD advances.
But did you consider deleting older versions of libraries
that are maybe still present?

>From /usr/src/Makefile:

# delete-old          - Delete obsolete directories/files/libraries.
# delete-old-dirs     - Delete obsolete directories.
# delete-old-files    - Delete obsolete files.
# delete-old-libs     - Delete obsolete libraries.

Maybe you're seeing obsolete stuff, too...


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190222162801.aa891c03.freebsd>