Date: Fri, 30 Nov 2012 21:22:20 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: Kevin Oberman <kob6558@gmail.com> Cc: mbsd <mbsd@isgroup.com.ua>, freebsd-stable@freebsd.org Subject: Re: How to clean up / Message-ID: <C31822CE-1DCA-42CA-AF27-1EE21E98423D@gsoft.com.au> In-Reply-To: <CAN6yY1uwcUJi3Y4O=gJvf-e5obkgvzV3nn8HoCF54r0KvEzc9w@mail.gmail.com> References: <A802184434754A128800ECE0A900127B@CMOTUM25PC> <1354239860.19647.8.camel@eva02> <2A4F276A-B95D-4D03-86F4-0A7C5A06B9A9@gsoft.com.au> <CAN6yY1uwcUJi3Y4O=gJvf-e5obkgvzV3nn8HoCF54r0KvEzc9w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <kob6558@gmail.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C31822CE-1DCA-42CA-AF27-1EE21E98423D>