Date: Tue, 5 Aug 2008 19:19:34 +0200 From: Max Laier <max@love2party.net> To: freebsd-stable@freebsd.org Cc: Lin Jui-Nan Eric <ericlin@tamama.org> Subject: Re: Max size of one swap slice Message-ID: <200808051919.34577.max@love2party.net> In-Reply-To: <47713ee10808050839k5b258831x66bc52f70b2c355b@mail.gmail.com> References: <47713ee10808050839k5b258831x66bc52f70b2c355b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 05 August 2008 17:39:11 Lin Jui-Nan Eric wrote: > Recently we found that we can only allocate 32GB for one swap slice. > Does there is any sysctl oid or any kernel option to increase it? Why > we have this restriction? this is a consequence of the data structure used to manage swap space. See sys/blist.h for details. It *seems* that you *might* be able to increase the coverage by decreasing BLIST_META_RADIX, but that's from a quick glance and most certainly not a good idea. However, the blist is a abstract enough API so that you can likely replace it with something that supports 64bit addresses (and thus 512*2^64 bytes of swap space per device) ... but I don't see why you'd want to do something like this. Remember that you need memory to manage your swap space as well! -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808051919.34577.max>