From owner-freebsd-stable@FreeBSD.ORG Mon Jul 6 08:41:41 2009 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 A6F651065675 for ; Mon, 6 Jul 2009 08:41:41 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 5ABEE8FC24 for ; Mon, 6 Jul 2009 08:41:40 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: by yxe11 with SMTP id 11so5540380yxe.3 for ; Mon, 06 Jul 2009 01:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bmAj4n85r105+z+tggk+p8OM8deJI1fwzol1v13DmTw=; b=LfBJcGotDwM0JR+6J1CDOucwP8RocmTp8w4K2N5WI64IQjUOn0iGzWV2tyWCe7PxXC znH/1tERfDf0xK9i88skSedQ1orFqlf3HR+J1TiHZSkAvtnqQ6vj540OwL4KzogiGhJh lS/AvVac+TzHafxqaqeeaIuqmajR/Aux1AcRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BAtuwAJODkfoneAKdIykSE2pmxFByIoT75KyU7T7D7aheOJLKxVnw3bs93w8ZY3wx7 1piZ+/Hf8oI35Jhx6g4kW9NqVTL1FeUr6YDKROtZfVhMci+CZ8H8fbURhZnyZvrTnUAx YtvT9m0KiNU5IMhE3yKJ7Pfsm7MK/6Bhisu8I= MIME-Version: 1.0 Received: by 10.100.96.12 with SMTP id t12mr8212847anb.4.1246869700484; Mon, 06 Jul 2009 01:41:40 -0700 (PDT) In-Reply-To: <4A51B721.5020505@andric.com> References: <20090703142528.GA11039@hugo10.ka.punkt.de> <4A4E174A.1050207@andric.com> <20090703144121.GC11039@hugo10.ka.punkt.de> <4A4E1E24.3020303@andric.com> <20090703152150.GE11039@hugo10.ka.punkt.de> <20090705003834.12211k8697td2o74@webmail.private.lan> <20090706073941.GA78371@ei.bzerk.org> <20090706074256.GD6306@hugo10.ka.punkt.de> <4A51B721.5020505@andric.com> Date: Mon, 6 Jul 2009 11:41:40 +0300 Message-ID: From: Dan Naumov To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Ruben de Groot , FreeBSD Stable Mailing List Subject: Re: What is /boot/kernel/*.symbols? 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: Mon, 06 Jul 2009 08:41:41 -0000 On Mon, Jul 6, 2009 at 11:34 AM, Dimitry Andric wrote: > On 2009-07-06 09:42, Patrick M. Hausen wrote: >>> #define ROOT_DEFAULT_SIZE =A0 =A0 =A0 =A0 =A0 =A0 =A0 512 >> >> IMHO it is not. If you install a kernel with *.symbols present >> twice (i.e. kernel and kernel.old contain symbol files), your >> root partition will be > 95% full. > > I'm not sure how you arrive at this number; even with -CURRENT (on i386, > with all debug symbols), I could store about 4 complete kernels on such > a filesystem: > > $ du -hs /boot/kernel* > 122M =A0 =A0/boot/kernel > 122M =A0 =A0/boot/kernel.20090629a > 121M =A0 =A0/boot/kernel.20090630a > 122M =A0 =A0/boot/kernel.20090702a > 121M =A0 =A0/boot/kernel.20090703a > > All other files on my root filesystem use up an additional ~25 MiB, so > in practice, it would be limited to 3 kernels, with more than enough > breathing room. atom# uname -a FreeBSD atom.localdomain 7.2-RELEASE-p1 FreeBSD 7.2-RELEASE-p1 #0: Tue Jun 9 18:02:21 UTC 2009 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 atom# du -hs /boot/kernel* 205M /boot/kernel This is on a stock 7.2-release/amd64 updated to -p1 with freebsd-update, 2 kernels is the maximum that would fit into the default 512mb partition size for /, a bit too tight for my liking. - Sincerely, Dan Naumov