From owner-freebsd-questions@freebsd.org Fri Feb 22 15:28:09 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C52114EFC38 for ; Fri, 22 Feb 2019 15:28:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C5948715DD for ; Fri, 22 Feb 2019 15:28:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: by mailman.ysv.freebsd.org (Postfix) id 8423714EFC32; Fri, 22 Feb 2019 15:28:08 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47C5314EFC2C for ; Fri, 22 Feb 2019 15:28:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A055715DB for ; Fri, 22 Feb 2019 15:28:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.157.173]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPA (Nemesis) id 1M2fDr-1h1KoQ0soR-0047ub; Fri, 22 Feb 2019 16:28:01 +0100 Date: Fri, 22 Feb 2019 16:28:01 +0100 From: Polytropon To: Christos Chatzaras Cc: FreeBSD Questions List Subject: Re: size of debug symbols Message-Id: <20190222162801.aa891c03.freebsd@edvax.de> In-Reply-To: <46040D79-BA05-43F5-9213-67094355B68A@cretaforce.gr> References: <46040D79-BA05-43F5-9213-67094355B68A@cretaforce.gr> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:/aXbbhFO1EJtdqmOl1MvDZUBpXvr66ifgmVU+5ZO8qonrHa2rOk FxFp+VVXIdieeCE1U48aEyU8U1rN1R3YXq1NLwgCHFlr+TGlNw53742Vavy6NwuDaQCLzhG cY57Iq2IJWUFStt3nDf+19kyk+/FE705g6pafHMR0bOA5PNBbEk4vL3Vym12eqLFnstDU2V RaTGyKCm+KGcM9udP+awg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:3s6RoT3xaAQ=:PL1hkp7uzXP/7hZ//B9euR EhF5KhADTCtQz0AJJR7KaSunRasm0rMfujmnuNyUJDX3LQ6HSKkfJFaT+vWTuMcSJky6Pubk+ lwJEvA3H+GxZs5DPvg4VP+OZDp4qT/cB6Y752An0s6OMAsLNnVVOTV/5HP9Iv9eHKMzi5OOIk EOhkilxvoOSdMSAbnysMtZZl6dEkCRs02CkZ7qcFjRidk+IlMsihyxU8GLv0X24Mdf5s2cW4R Z25W7E7Ke7dnyDHprrx8YlnSUpdcWh5nyud8TzyiGDZHGytf+5HUI3yjwSp/zNuWfqJ60m0fw pQFz9oKGTaOKlYVOXLGWL/4HV/nWI4Fxpp0d1o8SNtwqtz/gU3b9GAX/c0Qt5Ycxo/onDAbvL IaxIU/DnBc5zXxNn7VTDz/qUxt8y41v//OsykTr6Xo7NsElOuJHIoHzD90CTWJei/GZTM3B5/ IW80XZ7Q5SEfMDbgnsoNUuOm1AyY8vGmKjDCdij1x2Z5bP7wu5OMSeW+nhPr8WzCYjnVXlZSg 06kYhCd2pTXpYARcO9g+ijHHjkRh9UocRSAsvhYa1tjhRljrAGHhlu1aMgd7LGoXSFkC1fnkz QPsqDGHL2vsNMMeC3161juWvnF9m0ZQSW08eDnokJo04Zr/v6DNijmxTGxaqiKaQDgsSsi2zU tQsbueZw1esFXoCQXXqtwWz8ijGS5M/7iYT8MBWZmDsO6gY5J0dZvd4/T0XW92BbX24QTjrT5 0DqUAX52s6LTVGKVi6xfWwlQysIhC5L+Xp/JQwpsrOd+Wsk/FpL99hk02RM= X-Rspamd-Queue-Id: 9A055715DB X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.975,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2019 15:28:09 -0000 On Fri, 22 Feb 2019 16:42:05 +0200, Christos Chatzaras wrote: > After an upgrade from 11.2 to 12.0 I notice that /usr/lib disk usage > is a lot more than 11.2. > > Both systems have the same settings, same programs, and GENERIC kernel. > > ------ > > I upgrade using these commands: > > svnup release > cd /usr/src > make buildworld > make buildkernel > make installkernel > mergemaster -p > make installworld > mergemaster -Ui > make -DBATCH_DELETE_OLD_FILES delete-old > make -DBATCH_DELETE_OLD_FILES delete-old-libs > > ------ > FreeBSD 11.2: > ------ > > du -sh /usr/lib > 475MB > > du -sh /usr/lib/debug/usr/bin > 166MB > > du -sh /usr/lib/debug/usr/bin/clang.debug > 14MB > > ------ > FreeBSD 12.0: > ------ > > du -sh /usr/lib > 1.2GB > > du -sh /usr/lib/debug/usr/bin > 547MB > > du -sh /usr/lib/debug/usr/bin/clang.debug > 166MB > > ------ > > Also another user in FreeBSD forums with 12.0 told me that his > /usr/lib/debug/usr/bin/clang.debug file is 73MB. > > Are these differences in disk usage normal? It seems that sizes are increasing as FreeBSD advances. But did you consider deleting older versions of libraries that are maybe still present? >From /usr/src/Makefile: # delete-old - Delete obsolete directories/files/libraries. # delete-old-dirs - Delete obsolete directories. # delete-old-files - Delete obsolete files. # delete-old-libs - Delete obsolete libraries. Maybe you're seeing obsolete stuff, too... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...