From owner-freebsd-current Mon Dec 4 14:41:51 2000 From owner-freebsd-current@FreeBSD.ORG Mon Dec 4 14:41:49 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id 90D6737B400 for ; Mon, 4 Dec 2000 14:41:48 -0800 (PST) Received: from mail.cicely.de (cicely.de [194.231.9.142]) by mail.du.gtn.com (8.11.0.Beta3/8.11.0.Beta3) with ESMTP id eB4MfOV15907 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK); Mon, 4 Dec 2000 23:41:26 +0100 (MET) Received: from cicely5.cicely.de (cicely5.cicely.de [fec0:0:0:104::5]) by mail.cicely.de (8.11.0.Beta1/8.11.0.Beta1) with ESMTP id eB4MfVm84235 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Mon, 4 Dec 2000 23:41:35 +0100 (CET) Received: (from ticso@localhost) by cicely5.cicely.de (8.11.1/8.11.1) id eB4MfRG05942; Mon, 4 Dec 2000 23:41:27 +0100 (CET) (envelope-from ticso) Date: Mon, 4 Dec 2000 23:41:26 +0100 From: Bernd Walter To: janb@cs.utep.edu Cc: Bernd Walter , David Greenman , freebsd-current@FreeBSD.ORG Subject: Re: current paging strategy Message-ID: <20001204234126.A5927@cicely5.cicely.de> References: <20001105175745.A42346@cicely8.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from janb@cs.utep.edu on Mon, Dec 04, 2000 at 02:36:44PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Dec 04, 2000 at 02:36:44PM -0700, janb@cs.utep.edu wrote: > what exacly do you mean with critical path, here? Performance critical. Most RISC platforms are optimized for 32 and maybe 64 bit structures. E.g. First generation alphas (without BWX) can't even access anything smaller than 32bit in memory without doing big magic. So one byte can become a big impact on performance. > On Sun, 5 Nov 2000, Bernd Walter wrote: > > On Thu, Nov 02, 2000 at 12:45:30AM -0800, David Greenman wrote: > > > >Interesting. THis needs about two bytes per page for the counter? > > > > > > Actually, we found that a single byte per page was sufficient. Pages tended > > > to be either heavily accessed or rarely accessed. Even in the unusual case > > > where all pages are frequently accessed, the page reclaim rate (and thus > > > adjustment rate of the page references count) increases high enough to still > > > provide for a decent distribution of the counters and for the page LOU to be > > > effective. > > > > One byte sounds good for i386. > > Maybe it makes sense to have it 4 or 8 byte on risc platforms. > > I wonder if it's a critical path and if there are more of this in > > the kernel source. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message