linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Fengguang Wu <wfg@mail.ustc.edu.cn>
To: Matt Mackall <mpm@selenic.com>
Cc: Dave Hansen <haveblue@us.ibm.com>,
	akpm@linux-foundation.org, balbir@linux.vnet.ibm.com,
	jjberthels@gmail.com, linux-mm <linux-mm@kvack.org>
Subject: Re: + maps2-export-page-index-in-kpagemap.patch added to -mm tree
Date: Tue, 25 Sep 2007 15:19:41 +0800	[thread overview]
Message-ID: <390704784.02057@ustc.edu.cn> (raw)
Message-ID: <20070925071941.GC7862@mail.ustc.edu.cn> (raw)
In-Reply-To: <20070924220202.GK19691@waste.org>

On Mon, Sep 24, 2007 at 05:02:02PM -0500, Matt Mackall wrote:
> I think Fengguang is just thinking forward to the next logical step
> here which is "expose what's in the page cache". Which means being

I have been doing it for a long time - that's the filecache patch I
sent you. However it's not quite ready for a public review.

> able to go from page back to device:inode:offset or (better, but
> trickier) path:offset.

It's doing the other way around - a top-down way.

First, you get a table of all cached inodes with the following fields:
  device-number  inode-number  file-path  cached-page-count  status

Then, one can query any file he's interested in, and list all its
cached pages in the following format:
  index  length  page-flags  reference-count
(Sorry, it's the same format I have proposed in the pmaps interface.)

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2007-09-25  7:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200709242044.l8OKi01e016834@imap1.linux-foundation.org>
2007-09-24 21:19 ` + maps2-export-page-index-in-kpagemap.patch added to -mm tree Dave Hansen
     [not found] ` <20070924205901.GI19691@waste.org>
2007-09-24 21:23   ` Dave Hansen
2007-09-24 21:35     ` Matt Mackall
2007-09-24 21:50       ` Dave Hansen
2007-09-24 22:02         ` Matt Mackall
     [not found]           ` <20070925071941.GC7862@mail.ustc.edu.cn>
2007-09-25  7:19             ` Fengguang Wu [this message]
2007-09-25  8:17               ` Balbir Singh
     [not found]                 ` <20070925095804.GA12549@mail.ustc.edu.cn>
2007-09-25  9:58                   ` filecache: expose what's in the page cache Fengguang Wu

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=390704784.02057@ustc.edu.cn \
    --to=wfg@mail.ustc.edu.cn \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=haveblue@us.ibm.com \
    --cc=jjberthels@gmail.com \
    --cc=linux-mm@kvack.org \
    --cc=mpm@selenic.com \
    /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;
as well as URLs for NNTP newsgroup(s).