Subject: Re: buffer cache memory management revision
To: Paul Kranenburg <firstname.lastname@example.org>
From: Chuck Silvers <email@example.com>
Date: 12/03/2003 00:07:04
On Wed, Dec 03, 2003 at 07:50:33AM +0100, Paul Kranenburg wrote:
> > one potential problem here: we shouldn't ever put the pagedaemon to
> > sleep waiting for memory which is created by the pagedaemon. this
> > wasn't a problem before since the buffer cache memory was made available
> > for reuse in a different buffer by brelse(), ie. usually when i/o completed.
> Under which circumstances could this actually happen? The page daemon
> doesn't rely on the buffer cache directly. I guess there's a remote
> possibility to trigger a buffer cache allocation when pageing out pages
> backed by a file that's mapped in shared mode.
the pagedaemon calls VOP_PUTPAGES(), which may need to read indirect blocks
in order to determine where the pages go.