From owner-freebsd-current@freebsd.org Fri Dec 15 16:51:23 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1260E8614A for ; Fri, 15 Dec 2017 16:51:23 +0000 (UTC) (envelope-from wschnr@googlemail.com) Received: from mail-yb0-x242.google.com (mail-yb0-x242.google.com [IPv6:2607:f8b0:4002:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 661AD7C9EF; Fri, 15 Dec 2017 16:51:23 +0000 (UTC) (envelope-from wschnr@googlemail.com) Received: by mail-yb0-x242.google.com with SMTP id 69so6533493ybc.6; Fri, 15 Dec 2017 08:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=gwx5aALDenRVcKw6ZBggNDpllHElq34prCw5TMl0mw4=; b=T/z/9efBuTjBn7Ud++Rpv2NArMqoWNVN6hXRliBJITdoPV8/pQPmi0OR2oOESaTw9w +ACjFoZD6qNtOEZrW2iqVExaof9ZTDID/d+EYNeG8l+zBs8xucQZRV0bPb7y8NlAHI0P r62fqtHKW6ljj3NrEEPXndKRYDD49wIc+nhspizqR5sFVbNolh1P3sgKq3i3kNhQblIP q/SeEPJNmikAzR7UocU0nQCzvVGQk7DGnBoxTePmV6O9waC5CVY2sopaQMh79IJuqKjW o8HDO6MSDFuNWvUSGizRKF0VuITrdydEGkN6wzRmAEqB3W48cwRgsLA3ZJ8Yvm+oah01 dwTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=gwx5aALDenRVcKw6ZBggNDpllHElq34prCw5TMl0mw4=; b=NJfmOxzFsnFNoeJfihR0FFC3cwhtjd/ZJV6g5ngcP1o+Cn//NsJ8bGC1+CEYB7deTa RXmooMKXVi2zrECUjIT4gCiSX44/bc4pwz36+GnTafSbFqQHJeCgHUGeYWOrXVrU8V3j qf1jYS0JjcqYVofY50oHGrged4euL/QUIzUveoSrJ2lyAgFvKksXXEHOpQqbNKM/zrO3 z3cER7RHbb6qKG1EIzahK9GJxjLJjBDLHEpTiv+3/pYvKUj+iMP8uC77dbeVwuPOr5Xh Gkiow+yZlvLWy8gpMQY2OZN+SFYPA+xOtlFzxgoMaOe9Fd7Oq5NZ8ggxSKJo35dEOjrt oGmA== X-Gm-Message-State: AKGB3mJ1ifbe6yD/KE+bk9FVM5NR5VR0wl55nGifixWGQGDNqXdPCn5k Plu2tTcz8ohibOt55d125IwASMfX/iaeHJcyRy4= X-Google-Smtp-Source: ACJfBouOJockYJ1Vqy8+X+QtIy8Aj7Uhp5n5MT2jOtFEvL5v/dsUIEkxlWd7OIdH9mbrfBY6xPxvYt44sDO5EF7bkSQ= X-Received: by 10.129.87.2 with SMTP id l2mr1687757ywb.228.1513356682535; Fri, 15 Dec 2017 08:51:22 -0800 (PST) MIME-Version: 1.0 Sender: wschnr@googlemail.com Received: by 10.37.9.80 with HTTP; Fri, 15 Dec 2017 08:51:07 -0800 (PST) In-Reply-To: <20171215120243.GB1179@albert.catwhisker.org> References: <20171215120243.GB1179@albert.catwhisker.org> From: Wolfram Schneider Date: Fri, 15 Dec 2017 17:51:07 +0100 X-Google-Sender-Auth: QR0f4sU32klC_sJhWTSWXTiGQ9I Message-ID: Subject: Re: /usr/obj is 11GB huge on FreeBSD 12-current To: David Wolfskill , Wolfram Schneider , freebsd-current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2017 16:51:23 -0000 On 15 December 2017 at 13:02, David Wolfskill wrote: > On Fri, Dec 15, 2017 at 10:12:09AM +0100, Wolfram Schneider wrote: >> 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? > > There was a change near the beginning of November; please see UPDATING > entry 20171101 -- you probably have several no-longer-used > subdirectories under /usr/obj/usr/src/. > > Once those are cleared out, my experience (tracking stable/11 & head in > different slices on the same machines) is that stbale/11 is using about > 5.0G, while head uses about 6.1G. I think the suspect directories are "tmp" and "obj-lib32", together they are 4.1GB huge. I will run a build of current again with a clean obj tree (-current on a recent -current). Let's see. Can we agree that the obj tree should not grow from 5GB to 10GB for the next release? -Wolfram -- Wolfram Schneider https://wolfram.schneider.org