From owner-freebsd-arch Tue Oct 8 12:40: 2 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD38A37B401 for ; Tue, 8 Oct 2002 12:39:59 -0700 (PDT) Received: from vbook.express.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 288C343E6E for ; Tue, 8 Oct 2002 12:39:59 -0700 (PDT) (envelope-from vova@express.ru) Received: from vova by vbook.express.ru with local (Exim 3.36 #1) id 17z0Cw-0000QX-00; Tue, 08 Oct 2002 23:39:54 +0400 Subject: Re: using mem above 4Gb was: swapon some regular file From: "Vladimir B. " Grebenschikov To: Nate Lawson Cc: arch@FreeBSD.org In-Reply-To: References: Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.7 Date: 08 Oct 2002 23:39:52 +0400 Message-Id: <1034105993.913.1.camel@vbook.express.ru> Mime-Version: 1.0 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG =F7 Tue, 08.10.2002, =D7 23:10, Nate Lawson =CE=C1=D0=C9=D3=C1=CC: > On 8 Oct 2002, Vladimir B. Grebenschikov wrote: > > =F7 Tue, 08.10.2002, =D7 19:50, Mikhail Teterin =CE=C1=D0=C9=D3=C1=CC: > > > On Tuesday 08 October 2002 11:41 am, Terry Lambert wrote: > > > =3D Terry Lambert wrote: > > > =3D > So whatever connections you are getting now... halve that, or l= ess, > > > =3D > to get a window for your RAM disk (you will need KVA for mappin= gs > > > =3D > for all the memory that *can* be in the window, etc.). > > > =3D=20 > > > =3D To emphasize this: if you are using 4K pages, you will need: > > > =3D=20 > > > =3D 4K/1M * 64G =3D 256M > > > =3D=20 > > > =3D ...1/4 of 1G of memory outside the window, just for page tables. > > > =3D=20 > > > =3D Also, if we still were using an mbuf per connection for the > > > =3D template, for 1,000,000 connections, that's 256M of RAM -- anothe= r > > > =3D 1/4 gig. > > > =20 > > > =3D Yeah, most people don't think in these terms; personally, I like > > > =3D to call it "Extreme BSD". 8-). > > >=20 > > > Although this is fascinating read -- it getting further and further a= way > > > from the original subject. And from the modified one too -- I don't > > > believe Vladimir said anything about networking... > >=20 > > Exactly, Terry is right about large number of relative-small > > network-access processes (say apaches). But there are some other cases, > > say you have some DB server with huge index, say 10Gb, I think keep > > index in RAM effective than on disk. >=20 > It's often surprisingly effective to just access the index on disk and > tune your VM cache instead. You can lose performance by double-caching > data. I don't want cache disk data in extra memory - simply store index in RAM (no disk access at all) - I think it must be faster. > -Nate --=20 Vladimir B. Grebenschikov vova@sw.ru, SWsoft, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message