Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2001 15:22:50 -0400 (EDT)
From:      Zhihui Zhang <zzhang@cs.binghamton.edu>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Buffer emergence reserve
Message-ID:  <Pine.SOL.4.21.0104181519140.21819-100000@onyx>
In-Reply-To: <20010418115820.R976@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Thanks! I am wondering whether the free VM page reserve has similar reason
to exist, i.e., to clean dirty pages you need more pages. Probably not,
that is for interrupt routines that can not block.

On Wed, 18 Apr 2001, Alfred Perlstein wrote:

> * Zhihui Zhang <zzhang@cs.binghamton.edu> [010418 09:18] wrote:
> > 
> > While looking at the code in vfs_bio.c, I notice the existence of low and
> > high free buffer counters. The comments say they are there to give some
> > special process like buf daemon access to emergence reserve.  I just
> > don't get the reason for having this emergence reserve.  Do we allocate
> > buffer in an interrupt environment? Do we need extra buffers in order to
> > free buffers?  Please shed a light on this for me.  Thanks.
> 
> It's really a simple issue of:
> 
>   "sometimes to clean a buffer we need one or more buffers"
> 
> Think of some random data block at the far end of a large file.
> 
> If the indirect blocks aren't in memory you will need to bring
> them in to lookup the location of the buffer you're writing
> because buffers use logical offsets rather than physical ones.
> 
> -- 
> -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
> Represent yourself, show up at BABUG http://www.babug.org/
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.21.0104181519140.21819-100000>