From owner-freebsd-stable@FreeBSD.ORG Fri Aug 6 07:29:50 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEA6E106566C for ; Fri, 6 Aug 2010 07:29:50 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 386EA8FC12 for ; Fri, 6 Aug 2010 07:29:50 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o767TXT9023997; Fri, 6 Aug 2010 09:29:48 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o767TVFZ023996; Fri, 6 Aug 2010 09:29:31 +0200 (CEST) (envelope-from olli) Date: Fri, 6 Aug 2010 09:29:31 +0200 (CEST) Message-Id: <201008060729.o767TVFZ023996@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, doconnor@gsoft.com.au In-Reply-To: <50BEF58B-A155-4C46-B512-C94E0FD95D3E@gsoft.com.au> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.4 (lurza.secnetix.de [127.0.0.1]); Fri, 06 Aug 2010 09:29:49 +0200 (CEST) Cc: Subject: Re: Kernel symbol file alternate location X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, doconnor@gsoft.com.au List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 07:29:50 -0000 Daniel O'Connor wrote: > On 06/08/2010, at 2:38, Oliver Fromme wrote: > > > 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. > > Yeah, I don't think it's hard to move them, however I'm worried what > it will break :) > > The only thing I can see that would have to change would be kgdb so > it tells gdb where to find the symbols. That's why I suggested to place symlinks in the kernel directory. No change to kgdb necessary. It might even be possible to not install the symbol files at all, but keep them under /usr/obj, so the installkernel target would have to do nothing more than create symlinks. This could be controlled by a make.conf variable, like SYMLINK_SYMBOLS=YES ("NO" would be the existing behaviour of installing the actual symbol files in /boot/kernel). 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 "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." -- Doug Gwyn