From owner-freebsd-hackers Fri Feb 22 14:50:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id BE9FA37B400 for ; Fri, 22 Feb 2002 14:50:40 -0800 (PST) Received: from pool0057.cvx40-bradley.dialup.earthlink.net ([216.244.42.57] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16eOWT-0001lS-00; Fri, 22 Feb 2002 14:50:37 -0800 Message-ID: <3C76CB33.988E246F@mindspring.com> Date: Fri, 22 Feb 2002 14:50:27 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Matthew Dillon Cc: Andrew Mobbs , hackers@FreeBSD.ORG Subject: Re: Re2: msync performance References: <15478.31998.459219.178549@chiark.greenend.org.uk> <200202222042.g1MKg4u22700@apollo.backplane.com> <3C76C1C7.248128A4@mindspring.com> <200202222240.g1MMeQP31567@apollo.backplane.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matthew Dillon wrote: > :You will need to put it on two lists, I think. > : > :Though it is not sorted in adjacency order, it is sorted > :into LRU order, I think, and simply resorting by adjacency > :would destroy the LRU property. > > Nope, object->memq is not sorted in any order whatsover. I saw your patch. Read other message. 8-). > :Alternately, does msync() use count as "use" for the > :purposes of LRU? If so, I'm all wet, and sorting it will > :work, if it's only done at msync() time (e.g. you won't > :be able to use an insertion sort). > > What 'count' are you refering to? That's "use count", not "usecount". It's "count" as in "has meaning as a significator". 8-). I mean does msync() preterb the LRU order, by counting as a recent use? It's probably wrong to preterb the order, since what you are doing is forcing pages *out*. If you want them *out*, then they probably have lower locality than the pages you decided not to force out. In other words, msync() should probably not change the LRU order. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message