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 16:54:12 -0300 (BRT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0105301648290.5231-100000@freak.distro.conectiva> (raw)
In-Reply-To: <20010527222020.A25390@home.ds9a.nl>


On Sun, 27 May 2001, bert hubert wrote:

> Hello mm people!
> 
> I've written a module plus a tiny userspace program to query the page
> cache. In short:
> 
> $ cinfo /lib/libc.so.6
> /lib/libc.so.6: 182 of 272 (66.91%) pages in the cache, of which 0 (0.00%)
> are dirty
> 
> Now, I'm a complete and utter beginner when it comes to kernelcoding. Also,
> this is very much a 'release early, release often'-release. In other words,
> it sucks & I know.
> 
> So I would like to ask you to look at it and send comments/patches to me.
> I'm especially interested in architectural decisions - I currently export
> data over a filesystem (cinfofs), which may or not be right.
> 
> The tarball (http://ds9a.nl/cacheinfo/cinfo-0.1.tar.gz) contains 2 manpages
> which very lightly document how it works.

Hi Bert, 

You're using the "address_space->dirty_pages" list to calculate the number
of dirty pages.

Its interesting to note that pages on this list may not be really dirty
since we don't mark them clean when writting them out. (we only do that at
fdatasync/fsync time) 

So I suggest you to check for the PG_dirty (with the PageDirty macro) bit
on pages of that list to know if they are really 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 19:54 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 [this message]
2001-05-30 21:48   ` bert hubert
2001-05-30 20:27     ` Marcelo Tosatti
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.0105301648290.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