Date: Thu, 22 Jan 2009 18:46:31 +0100 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= <uspoerlein@gmail.com> To: Igor Mozolevsky <igor@hybrid-lab.co.uk> Cc: Attila Nagy <bra@fsn.hu>, freebsd-current@freebsd.org Subject: Re: Creating swap based ramdisks from rc.initdiskless by default Message-ID: <20090122174631.GC1482@roadrunner.spoerlein.net> In-Reply-To: <a2b6592c0901220742j4f0fed0andd04eb03792c6a55@mail.gmail.com> References: <4978853A.2000107@fsn.hu> <a2b6592c0901220705q5f30e292o9f555e464a8706b1@mail.gmail.com> <49788F1B.7000600@fsn.hu> <a2b6592c0901220742j4f0fed0andd04eb03792c6a55@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 22.01.2009 at 15:42:33 +0000, Igor Mozolevsky wrote: > 2009/1/22 Attila Nagy <bra@fsn.hu>: > > Igor Mozolevsky wrote: > >> 2009/1/22 Attila Nagy <bra@fsn.hu>: > >>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090122174631.GC1482>