From owner-freebsd-stable@FreeBSD.ORG Sun Jan 24 00:20:55 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 A319A1065670 for ; Sun, 24 Jan 2010 00:20:55 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail2.es.net [IPv6:2001:400:107:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8C7398FC0C for ; Sun, 24 Jan 2010 00:20:55 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id o0O0KsCJ018929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 23 Jan 2010 16:20:55 -0800 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id BACFC1CC13; Sat, 23 Jan 2010 16:20:54 -0800 (PST) To: Steven Friedrich In-reply-to: Your message of "Fri, 22 Jan 2010 22:20:30 EST." <201001222220.31040.freebsd@insightbb.com> Date: Sat, 23 Jan 2010 16:20:54 -0800 From: "Kevin Oberman" Message-Id: <20100124002054.BACFC1CC13@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-01-23_03:2010-01-20, 2010-01-23, 2010-01-23 signatures=0 X-Proofpoint-Spam-Reason: safe Cc: freebsd-stable@freebsd.org Subject: Re: 8.0-RELEASE -> -STABLE and size of / X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2010 00:20:55 -0000 > From: Steven Friedrich > Date: Fri, 22 Jan 2010 22:20:30 -0500 > Sender: owner-freebsd-stable@freebsd.org > > On Friday 22 January 2010 06:32:02 pm Oliver Brandmueller wrote: > > Hi, > > > > On Fri, Jan 22, 2010 at 03:56:31PM -0500, Steven Friedrich wrote: > > > in your /etc/make.conf, do you have a line like: > > > makeoptions DEBUG=-g > > > if so, comment it out. > > > > The GENEREIC kernel by default has the following config: > > > > makeoptions DEBUG=-g # Build kernel with gdb(1) debug > > symbols > > > > You don't need anything special in your make.conf > > > > In fact having the debug symbols is useful in many cases. So raising the > > default size for the / partition might be the better option (OK, doesn't > > help for already installed systems of course). > > > > - Oliver > > > I'm sorry. My response to him should have been more precise. > I was trying to clue him in on how to build a non-debug kernel, but my > answer was in fact wrong. > I said he may have a line in make.conf, but that was a mistake. I > pulled the line from a kernel config file. > If he wants to build a kernel with no symbols, as he stated he does, > he needs to comment out the line and build a kernel. Could buildworld > and installworld, too. > But he and I went off topic. I should have changed the subject line to > start a new thread to discuss building without symbols. He was > complaining that it wasn't in the FAQ or the handbook. It's in > GENERIC, which is required reading if you're ever going to build > custom kernels. > > As for the main topic, I have been making 4GB root partitions for some time. > Our disk requirements have been soaring over the last decade, while cost per > MB have plummeted. I don't want to have to guess what sizes each partition > should be. Just for the record and to avoid further confusion, building a kernel with debug symbols does not take any more space in root. Another copy of the kernel is built but not installed into /kernel. The copy of the kernel in /kernel is always symbol-less. Also, at the start of this thread, the OP said that he did a buildkernel and a buildworld. This is broken and may produce a non-bootable kernel. Always buildworld and then buildkernel so that the new toolchain is used to build the kernel. (This also has nothing to do with the original issue of the amount of space in the root partition being too small for amd64 systems, but I am hoping to avoid future issues.) -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751