Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2017 10:12:09 +0100
From:      Wolfram Schneider <wosch@freebsd.org>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   /usr/obj is 11GB huge on FreeBSD 12-current
Message-ID:  <CAMWY7CDoF9LWJiz1wB7XWUtKsvk6QJGvH=yrUCh9FnRoG4y7EA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org> https://wolfram.schneider.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMWY7CDoF9LWJiz1wB7XWUtKsvk6QJGvH=yrUCh9FnRoG4y7EA>