From owner-freebsd-current@freebsd.org Fri Dec 15 09:12:26 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 7D599EA0692 for ; Fri, 15 Dec 2017 09:12:26 +0000 (UTC) (envelope-from wschnr@googlemail.com) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (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 433566E1B2 for ; Fri, 15 Dec 2017 09:12:26 +0000 (UTC) (envelope-from wschnr@googlemail.com) Received: by mail-yb0-x236.google.com with SMTP id x83so5581683ybg.8 for ; Fri, 15 Dec 2017 01:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=Fa93K9VSQvujslFueTrIS66h5LId5nZqgfvo8Yz+ysA=; b=flG6U0+IoX1ZNzqqX/fLx7g9B8fYHKAyYZKERwuLcwZJ3ybnCrQwopD0waMYPVV9qO TC7aF0u/Er4xoVCNTFQWpBj3/VsGaAVqXdpop0+7vYige3Whi9Kdh5ZQ7PlsRycEjhxt RKf3qNrtOmAbyX6fssvb62T4AtTaacrdxdkrXO5LvsNVZCdhIkW/b3A5dqrhc8YM/021 nN4fQHAkHZ58a4wjn7WRboLtsqiWBDj/QJNiqGN3TS/gcGhpwpV522z6xrZEsDL9dieR UijCaluagKKstoDXPKgGLzusCMobzAvs6dLl6g7kvYsBhZzwCnyfit2gVUtUbZYZXGay DwZg== 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:from:date:message-id:subject :to; bh=Fa93K9VSQvujslFueTrIS66h5LId5nZqgfvo8Yz+ysA=; b=DjUvGqGr8nUki+opEQuOajn6hgLAFnogMlWHHBFX9GzdTBRneUDSB/gpjOdCJABVrm pFYu9uuR9ZQLlFbFt9sUGnbRypGSngvHdOSd05DbaD8PlUIEBqxGOhare6tjPI6BVI75 wcFYq/XmwJpIjpoH6UG4ld6wPblvf+LB+Os77W8mPPf+EshEMnhfX2AlOvrOEWJSKeCc H/ZDjRYTpqc9G9IxRIpTLNsf/ifQ6xo1Jcsxt3WZXTGxG1HkzyrdL3vgaA9KSbhNSXDp lLKFxLf19VazRXvSq8XnHRKpSGNdHwXBa1bvP/mwvJ8e+RuZ4aXmiL9c1aPoBwzwJpsB F8xA== X-Gm-Message-State: AKGB3mIGSSMXNnm602RW4oXcX45LS2RlcuiA42/eJdXR8TX7suOWz6eT p7JUaP5bbMzPBKfk3EhKadLYaLxhjw0f/DknCISUPw== X-Google-Smtp-Source: ACJfBov5fGqmkrRL+on9Nx3DfHRlkWv/VNEUAJ0hccJi+AHhQTu0T5lql6fdLoCpu4P7usjHu6fkF7ZZzvbzsNZNyaM= X-Received: by 10.13.244.66 with SMTP id d63mr6743587ywf.400.1513329145107; Fri, 15 Dec 2017 01:12:25 -0800 (PST) MIME-Version: 1.0 Sender: wschnr@googlemail.com Received: by 10.37.9.80 with HTTP; Fri, 15 Dec 2017 01:12:09 -0800 (PST) From: Wolfram Schneider Date: Fri, 15 Dec 2017 10:12:09 +0100 X-Google-Sender-Auth: tfe_qopA_K989XeSH2_YIvjl61w Message-ID: Subject: /usr/obj is 11GB huge on FreeBSD 12-current To: 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 09:12:26 -0000 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 https://wolfram.schneider.org