From owner-freebsd-hackers Mon Oct 27 20:23:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA23629 for hackers-outgoing; Mon, 27 Oct 1997 20:23:16 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA23623 for ; Mon, 27 Oct 1997 20:23:10 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.7/8.8.5) id XAA02123; Mon, 27 Oct 1997 23:22:51 -0500 (EST) From: "John S. Dyson" Message-Id: <199710280422.XAA02123@dyson.iquest.net> Subject: Re: help with fstat? In-Reply-To: <199710280410.VAA06144@usr08.primenet.com> from Terry Lambert at "Oct 28, 97 04:10:31 am" To: tlambert@primenet.com (Terry Lambert) Date: Mon, 27 Oct 1997 23:22:50 -0500 (EST) Cc: tlambert@primenet.com, angio@angio.net, perlsta@cs.sunyit.edu, hackers@FreeBSD.ORG Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Terry Lambert said: > > > There used to be a MAP_SEQUENTIAL flag to get it to discard buffers > > > after they had been accesed, instead of forcing more pages off the > > > LRU, but BSD doesn't support this. 8-(. > > > > > > > > Try madvise(2). It has a MADV_SEQUENTIAL. > > Is this supposed to cause it to discard page A after faulting in page B > on the assumption A will not be rereferenced? > > I didn't think that it did this in -current... > It doesn't 'discard', but should either deactivate or cache the page. -- John dyson@freebsd.org jdyson@nc.com