From owner-freebsd-current@freebsd.org Fri Dec 15 17:39:05 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 32234E875FF for ; Fri, 15 Dec 2017 17:39:05 +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 E1E727E7A3; Fri, 15 Dec 2017 17:39:04 +0000 (UTC) (envelope-from wschnr@googlemail.com) Received: by mail-yb0-x242.google.com with SMTP id r4so6633451ybd.12; Fri, 15 Dec 2017 09:39:04 -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=b/FO0Qp+/evd9cnQGamFEiBwYOtqD2+277qPODlIOFI=; b=na3vjUJQ2GgcV4gkO5SSB2nUnSfoxXm8u98X7OXvt2FmbKfleXioJYFJBmn8tn4yEQ AYVdPF03ogoXg9slHy9W8l/SqylYTiBTy2sDwoQCGqT2ZNV2ao1MO4vHTTzAfeT8nLg+ 6N4zUhXJskPwWpOR8RsS7Byd3XXNzAWTG4ghlwnwqLKP8XRtk5yvwpG2TLdTEmT/ZF8W 5b5rUGyLyh6CQC8VF3oDKtmMf/qorYreFCpjdCpSRixm6UaKm4WtSqp55b1bV8Y2A+d1 nuqJI2yYDagH4NCPyCRweo70lBeEsUyASqFZT6Ef5I6ya4p0BeX9bZxt36eDC2PyJqma J1+w== 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=b/FO0Qp+/evd9cnQGamFEiBwYOtqD2+277qPODlIOFI=; b=SERqS2gfbY5Np0k74WyXO6IBK/wnjxqTpGIzQsf5Gi/Z9RWP8CFmKel4cndo1xOw13 AZ2K1mIdNWIamdihujJtOqHPT3nATlc0E8wLkCujso5g+jh2K/oehgvYkW2+afFAhEfO H0z7K4peMaNy+CaLznsbTRLGldRWd/3G0RQZkpRaF8l3IaxDt+ForsuCv4A2YH2Vn63Y /i5BLaGVQaLQl8xN9b2KciKXpXBFY+X1QK5f5nHY6Vmr2QsXVzI0J0xx33YDlaptCEMe Q94H/tJQFuMThIEU7DquveO33vO1hwxdca3m2rrSwWjv02aVr2hkghXzZ8jvKIPUMx0o o4bg== X-Gm-Message-State: AKGB3mLnfIf6K+OqGSd0c6yBydVUAnESB8DZxriwCENDSyKI/5un9tjV n35PmBW7Q2YybH/9yvZ9XsC6bmQjrTq97ls1BgI= X-Google-Smtp-Source: ACJfBou+DPU2LlfywPbRz3A/EQT5dRyTZE1DriB7KDlacCc6hz7xyVHLbVn59kABFyOK5UjGXBm297JtTYeGbp9kTX4= X-Received: by 10.37.57.10 with SMTP id g10mr7763555yba.438.1513359544063; Fri, 15 Dec 2017 09:39:04 -0800 (PST) MIME-Version: 1.0 Sender: wschnr@googlemail.com Received: by 10.37.9.80 with HTTP; Fri, 15 Dec 2017 09:38:48 -0800 (PST) In-Reply-To: References: <20171215120243.GB1179@albert.catwhisker.org> From: Wolfram Schneider Date: Fri, 15 Dec 2017 18:38:48 +0100 X-Google-Sender-Auth: SgwO2sbeXxAMPAFRINbM9ESn8Bs 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 17:39:05 -0000 On 15 December 2017 at 17:51, Wolfram Schneider wrote: > 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. I run a test on universe12b (FreeBSD 12.0-CURRENT #0 r325426: Sun Nov 5) with an empty obj directory. `make buildworld' creates 9.7GB of obj data. After running `make buildkernel' it will grow to 12GB. This is on a ZFS filesystem (my original report was on UFS) -Wolfram > 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 -- Wolfram Schneider https://wolfram.schneider.org