/usr/obj is 11GB huge on FreeBSD 12-current

From: Wolfram Schneider <wosch_at_freebsd.org>
Date: Fri, 15 Dec 2017 10:12:09 +0100
Hi,

I upgraded a machine from 11-stable to 12-current. The /usr/obj tree
is now 11GB huge:

FreeBSD 12-current
$ du -hs /usr/obj
 11G /usr/obj

on FreeBSD 11-stable it was less the size:
$ du -hs /usr/obj
5.6G /usr/obj

this is a problem when you have a small VM with 20GB disk space or less.

Is there a way to use less /usr/obj disk space during build? I know
that we have to do some bootstrapping for newer compiler tools, but
does we need to keep all temp files during the build?


# FreeBSD 12-current
$ du -ks * | sort -n
4 compiler-metadata.mk
4 host-osreldate.h
112 etc
216 include
9972 tests
15324 libexec
17188 bin
34964 stand
57424 rescue
65280 share
80312 sbin
118616 cddl
146792 kerberos5
175244 secure
192340 gnu
251784 usr.sbin
1269916 obj-lib32
1737908 usr.bin
1863716 sys
2528160 lib
2892776 tmp

# FreeBSD 11-stable
$ du -ks * |sort -n
4 compiler-metadata.mk
116 etc
216 include
8860 tests
14212 libexec
16260 bin
36276 rescue
63300 sbin
67224 share
85268 cddl
86868 kerberos5
107672 gnu
110360 secure
172352 lib32
222200 usr.sbin
518908 world32
668756 tmp
979040 lib
989640 usr.bin
1721096 sys

-Wolfram

-- 
Wolfram Schneider <wosch_at_FreeBSD.org> https://wolfram.schneider.org
Received on Fri Dec 15 2017 - 08:12:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:14 UTC