Date: Fri, 30 Nov 2012 09:59:56 +0100 From: Alfred Bartsch <bartsch@dssgmbh.de> To: Kevin Oberman <kob6558@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: How to clean up / Message-ID: <50B8758C.2070202@dssgmbh.de> 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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 30.11.2012 08:16, schrieb Kevin Oberman: > On Thu, Nov 29, 2012 at 8:46 PM, Daniel O'Connor > <doconnor@gsoft.com.au> wrote: >> >> On 30/11/2012, at 12:14, mbsd <mbsd@isgroup.com.ua> wrote: >>> Î ~ â du -sh /boot/kernel 59M kernel >>> >>> Try to recompile your kernel without debug. >> >> Or delete /boot/kernel/*.symbols. You may suppress the installation of the *.symbols files by inserting the following statement into /etc/make.conf: # prevent installation of "*.symbols" in /boot/kernel INSTALL_NODEBUG= yes >> >> 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). > > 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. > > 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.). > > Moving the Linux emulation shadow root out of root would also > help. In our environment we keep the *.symbols files for debugging purpose, but do not build all available modules. This saves lots of space in / and building time. The needed modules are defined in /etc/make.conf: ... MODULES_OVERRIDE opensolaris MODULES_OVERRIDE+= zfs etc. If we need another module, we simply add it to this list. "make buildkernel && make installkernel" installs it into /boot/kernel, including .symbols file. Thus our / file system is about 30% filled (amd64 / 1G) - -- Regards Alfred Bartsch Data-Service GmbH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlC4dYwACgkQ5QGe2JdVf3gEugCgjldOFRoLphT/cxAtMm8ulwiD sUEAn1kkVjPb3FxyvRs50CKkiaqkd0pI =zyQq -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50B8758C.2070202>