From owner-freebsd-current@FreeBSD.ORG Thu Jan 22 17:46:37 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31F0A1065670 for ; Thu, 22 Jan 2009 17:46:37 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 987D68FC16 for ; Thu, 22 Jan 2009 17:46:36 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (e180146187.adsl.alicedsl.de [85.180.146.187]) by acme.spoerlein.net (8.14.2/8.14.2) with ESMTP id n0MHkYN6097617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 22 Jan 2009 18:46:34 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.3/8.14.3) with ESMTP id n0MHkWZk004681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 Jan 2009 18:46:32 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.3/8.14.3/Submit) id n0MHkWr2004680; Thu, 22 Jan 2009 18:46:32 +0100 (CET) (envelope-from uspoerlein@gmail.com) Date: Thu, 22 Jan 2009 18:46:31 +0100 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Igor Mozolevsky Message-ID: <20090122174631.GC1482@roadrunner.spoerlein.net> Mail-Followup-To: Igor Mozolevsky , Attila Nagy , freebsd-current@freebsd.org References: <4978853A.2000107@fsn.hu> <49788F1B.7000600@fsn.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Attila Nagy , freebsd-current@freebsd.org Subject: Re: Creating swap based ramdisks from rc.initdiskless by default X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2009 17:46:37 -0000 On Thu, 22.01.2009 at 15:42:33 +0000, Igor Mozolevsky wrote: > 2009/1/22 Attila Nagy : > > Igor Mozolevsky wrote: > >> 2009/1/22 Attila Nagy : > >>> So the question is: what is the rationale behind creating malloc backed > >>> disks by default, instead of swap-backed ones? > >> > >> Yes --- booting from DoC/CDROM/PXE with no HDD on the node... > > > > Did you read my e-mail? > > Yes, but why would you have swap enabled in the kernel on a system > that cannot possibly swap? That's not the point. AFAIK there's a kernel memory pool difference between malloc(9) and swap-backed memory. You usually want to use the latter, irregardless of an actual swap device, as the former is a scarce ressource and shouldn't be used for RAM disks. Cheers, Ulrich Spörlein -- None are more hopelessly enslaved than those who falsely believe they are free -- Johann Wolfgang von Goethe