linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: bert hubert <ahu@ds9a.nl>
Cc: linux-mm@kvack.org
Subject: Re: http://ds9a.nl/cacheinfo project - please comment & improve
Date: Wed, 30 May 2001 17:27:41 -0300 (BRT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0105301719310.5231-100000@freak.distro.conectiva> (raw)
In-Reply-To: <20010530234806.C8629@home.ds9a.nl>


On Wed, 30 May 2001, bert hubert wrote:

> On Wed, May 30, 2001 at 04:54:12PM -0300, Marcelo Tosatti wrote:
> 
> > You're using the "address_space->dirty_pages" list to calculate the number
> > of dirty pages.
> 
> I was wondering about that. In limited testing I've never seen a non-0
> content of the dirty list. I ran:
> 
> dd if=/dev/zero of=test count=100000 &
> while true ; do ./cinfo test; done
> 
> And saw no dirty pages. 

Oops.

You will see no dirty pages here anyway --- data written through
write() is commited to the buffer cache directly. 

You can loop in each page into the clean_list and check their
"page->buffers" pointer.

If there are dirty buffer_head's there, you can count the page as dirty. 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  reply	other threads:[~2001-05-30 20:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-27 20:20 bert hubert
2001-05-30 19:54 ` Marcelo Tosatti
2001-05-30 21:48   ` bert hubert
2001-05-30 20:27     ` Marcelo Tosatti [this message]
2001-05-31 17:17     ` Ingo Oeser
2001-05-31 21:53       ` bert hubert
2001-06-03 17:04         ` bert hubert
2001-06-04 12:20           ` Hugh Dickins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.21.0105301719310.5231-100000@freak.distro.conectiva \
    --to=marcelo@conectiva.com.br \
    --cc=ahu@ds9a.nl \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox