From owner-freebsd-current Tue Apr 23 11:45:46 2002 Delivered-To: freebsd-current@freebsd.org Received: from perd1.estpak.ee (ld1.estpak.ee [194.126.101.98]) by hub.freebsd.org (Postfix) with ESMTP id 8D64537B41D; Tue, 23 Apr 2002 11:45:36 -0700 (PDT) Received: from myhakas.estpak.ee (myhakas.estpak.ee [194.126.115.54]) by perd1.estpak.ee (Postfix) with ESMTP id 3E8B388055; Tue, 23 Apr 2002 21:45:35 +0300 (EEST) Received: from myhakas.estpak.ee (localhost [127.0.0.1]) by myhakas.estpak.ee (8.12.2/8.12.2) with ESMTP id g3NIjZC9030376; Tue, 23 Apr 2002 21:45:35 +0300 (EEST) (envelope-from vallo@myhakas.estpak.ee) Received: (from vallo@localhost) by myhakas.estpak.ee (8.12.2/8.12.2/Submit) id g3NIjYYF030375; Tue, 23 Apr 2002 21:45:34 +0300 (EEST) Date: Tue, 23 Apr 2002 21:45:34 +0300 From: Vallo Kallaste To: "Marc G. Fournier" Cc: Terry Lambert , 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> Reply-To: kalts@estpak.ee References: <3CC4C683.F9AEF14E@mindspring.com> <20020423092909.N1721-100000@mail1.hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020423092909.N1721-100000@mail1.hub.org> User-Agent: Mutt/1.5.0i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Apr 23, 2002 at 09:44:50AM -0300, "Marc G. Fournier" 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