From owner-freebsd-stable@FreeBSD.ORG Fri Nov 30 10:52:32 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2FA67A2B for ; Fri, 30 Nov 2012 10:52:32 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 7EB8C8FC13 for ; Fri, 30 Nov 2012 10:52:29 +0000 (UTC) Received: from ur.dons.net.au (ppp14-2-27-41.lns21.adl2.internode.on.net [14.2.27.41]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id qAUAqLsh071959 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 30 Nov 2012 21:22:26 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: How to clean up / Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: multipart/signed; boundary="Apple-Mail=_1688DB0B-40A5-4209-B7AE-653D8EB909AF"; protocol="application/pkcs7-signature"; micalg=sha1 From: "Daniel O'Connor" In-Reply-To: Date: Fri, 30 Nov 2012 21:22:20 +1030 Message-Id: References: <1354239860.19647.8.camel@eva02> <2A4F276A-B95D-4D03-86F4-0A7C5A06B9A9@gsoft.com.au> To: Kevin Oberman X-Mailer: Apple Mail (2.1499) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: mbsd , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2012 10:52:32 -0000 --Apple-Mail=_1688DB0B-40A5-4209-B7AE-653D8EB909AF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 30/11/2012, at 17:46, Kevin Oberman wrote: >> It would be Really Nice (tm) if they could be put into /usr instead = since there is virtually no benefit to them being in / (since they are = only used for debugging). >=20 > I have long wondered why the kernel debug symbols were moved into > /kernel. The only thing I can come up with was the desire to retain > symbols for kernel.old, which the old system deleted. I'm not sure, > but I think the change was made when the symbols files were added for > all of the modules. I'd meed to dig back in the archived to track down > the change. >=20 > In any case, it's hardly difficult to come up with a scheme for > keeping symbols for the current and old kernels and modules in /var or > /usr and keep / from exceeding a gig on an amd64 system. (No, it's not > there today, but it's disturbingly close.). I seem to recall that last time I thought about this the main problem = was keeping them in sync.. Perhaps if you hashed the kernel and then created = /usr/..../kerneldbg/$hash/ and created a symlink in /boot/kernel/debug = to /usr/..../kerneldbg/$hash Then the debug tools don't need to be much smarter to find them and they = should never end up looking at incorrect data. A make target or some = other tool to clean up old symbol directories might be needed though. > Moving the Linux emulation shadow root out of root would also help. Yes, a symlink from /compat to /usr/compat by default would work I = think. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail=_1688DB0B-40A5-4209-B7AE-653D8EB909AF--