Is it possible to tell installkernel to put the symbol files elsewhere? IMO somewhere in /usr would be good - you don't need them to boot (or crashdump, etc) and they increase the size of the kernel by a factor of 5(!), eg.. [cain 14:07] /tmp >du -sh kernel 258M kernel [cain 14:07] /tmp >rm -f kernel/*.symbols [cain 14:07] /tmp >du -sh kernel 50M kernel One downside is that you need to keep them in sync which is a bit of a drag, however I think most people use installworld for upgrades/builds so it would generally not be an issue. I think this is the main reason / has had to grow - the actual kernel is relatively small so even a 256Mb / could hold several, but with the symbol files it is not possible. I don't have patches to do this though :) -- 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
Quoth Daniel O'Connor on Thursday, 05 August 2010:> Is it possible to tell installkernel to put the symbol files elsewhere? > > IMO somewhere in /usr would be good - you don't need them to boot (or crashdump, etc) and they increase the size of the kernel by a factor of 5(!), eg.. > [cain 14:07] /tmp >du -sh kernel > 258M kernel > [cain 14:07] /tmp >rm -f kernel/*.symbols > [cain 14:07] /tmp >du -sh kernel > 50M kernel > > One downside is that you need to keep them in sync which is a bit of a drag, however I think most people use installworld for upgrades/builds so it would generally not be an issue. > > I think this is the main reason / has had to grow - the actual kernel is relatively small so even a 256Mb / could hold several, but with the symbol files it is not possible. > > I don't have patches to do this though :) > > -- > 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 >+1 to this idea. I'm currently building without symbols so I don't have to clean them out of kernel.old every time I do an installkernel. -- Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com | http://chipsquips.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100805/0ec1ebcc/attachment.pgp
Daniel O'Connor wrote: > Is it possible to tell installkernel to put the symbol files elsewhere? I wondered the same. > IMO somewhere in /usr would be good - you don't need them to boot (or > crashdump, etc) and they increase the size of the kernel by a factor > of 5(!), eg.. > [cain 14:07] /tmp >du -sh kernel > 258M kernel > [cain 14:07] /tmp >rm -f kernel/*.symbols > [cain 14:07] /tmp >du -sh kernel > 50M kernel > > One downside is that you need to keep them in sync which is a > bit of a drag, however I think most people use installworld for > upgrades/builds so it would generally not be an issue. > > I think this is the main reason / has had to grow - the actual kernel > is relatively small so even a 256Mb / could hold several, but with > the symbol files it is not possible. I think a very simple solution would be to install the symbol files elsewhere (probably configurable via make.conf), and install symlinks in the kernel directory. If you do this, tools using the symbol files won't have to be changed. This would probably be a fairly trivial change to the install- kernel target, I guess. I don't have patches, though. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch?ftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n- chen, HRB 125758, Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "File names are infinite in length, where infinity is set to 255 characters." -- Peter Collinson, "The Unix File System"
On 5 August 2010 12:41, Daniel O'Connor <doconnor@gsoft.com.au> wrote:> Is it possible to tell installkernel to put the symbol files elsewhere? > > IMO somewhere in /usr would be good - you don't need them to boot (or crashdump, etc) and they increase the size of the kernel by a factor of 5(!), eg.. > [cain 14:07] /tmp >du -sh kernel > 258M ? ?kernel > [cain 14:07] /tmp >rm -f kernel/*.symbols > [cain 14:07] /tmp >du -sh kernel > ?50M ? ?kernelWhy not add support to the relevant libraries/code to support reading compressed symbol files? Adrian