Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2002 21:45:34 +0300
From:      Vallo Kallaste <kalts@estpak.ee>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        Terry Lambert <tlambert2@mindspring.com>, freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG
Subject:   Re: FreeBSD 4.5-STABLE not easily scalable to large servers ... ?
Message-ID:  <20020423184534.GA30212@myhakas.estpak.ee>
In-Reply-To: <20020423092909.N1721-100000@mail1.hub.org>
References:  <3CC4C683.F9AEF14E@mindspring.com> <20020423092909.N1721-100000@mail1.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 23, 2002 at 09:44:50AM -0300, "Marc G. Fournier"
<scrappy@hub.org> wrote:

> Next, again, if I'm reading this right ... if I set my KVA to 3G,
> when the system boots, it will reserve 3G of *physical* RAM for
> the kernel itself, correct?  So on a 4G machine, 1G of *physical*
> RAM will be available for UVAs ... so, if I run >1G worth of
> processes, that is where swapping to disk comes in, right?  Other
> then the massive performance hit, and the limit you mention about
> some parts of UVA not being swappable, I could theoretically have
> >4G of swap to page out to?

You can have up to ~12GB of usable swap space, as I've heard. Don't
remember why such arbitrary limit, unfortunately. Information about
such topics is spread over several lists arhives, usually the
subjects are strange, too.. so hard to find out. As I understand it
you are on the track, having 3GB allocated to KVA means 1GB for UVA,
whatever it exactly means. Userspace processes will allocate memory
from UVA space and can grow over 1GB of size if needed by swapping.
You can certainly have more than one over-1GB process going on at
the same time, but swapping will constrain your performance.
I'm sure Terry or some other knowledgeable person will correct me if
it doesn't make sense.

> Is there a reason why this stuff isn't auto-scaled based on RAM as
> it is?

Probably lack of manpower, to code it up you'll have to understand
every bit of it, but as we currently see, we don't understand it,
probably many others as well :-)
-- 

Vallo Kallaste
kalts@estpak.ee

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020423184534.GA30212>