mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mel Gorman <mel@csn.ul.ie>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: How to reclaim inode pages on demand
Date: Mon, 8 Aug 2005 17:23:21 +0100 (IST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0508081715250.26013@skynet> (raw)
In-Reply-To: <20050808160838.GB17978@wohnheim.fh-wedel.de>

On Mon, 8 Aug 2005, Jörn Engel wrote:

> On Mon, 8 August 2005 16:52:52 +0100, Mel Gorman wrote:
> >
> > I am working on a direct reclaim strategy to free up large blocks of
> > contiguous pages. The part I have is working fine, but I am finding a
> > hundreds of pages that are being used for inodes that I need to reclaim. I
> > tried purging the inode lists using a variation of prune_icache() but it
> > is not working out.
> >
> > Given a struct page, that one knows is an inode, can anyone suggest the
> > best way to find the inode using it and free it?
>
> A struct page ain't an inode.  So I'm assuming you mean something like
> "giving a struct page that is known to be part of the inode slab
> cache".
>

I explained this badly.

Inodes have access to an address_space via inode->i_data. This
address_space is used to allocate pages from functions like
page_cache_alloc() or grab_cache_page(). It is these pages that are the
problem, not the slab pages holding the inode structures. The question is
how these pages can be directly reclaimed. Does anyone have suggestions?


-- 
Mel Gorman
Part-time Phd Student                          Java Applications Developer
University of Limerick                         IBM Dublin Software Lab

  reply	other threads:[~2005-08-08 16:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-08 15:52 Mel Gorman
2005-08-08 16:08 ` Jörn Engel
2005-08-08 16:23   ` Mel Gorman [this message]
2005-08-08 23:08 ` Andrew Morton
2005-08-10 16:32   ` Mel Gorman
2005-08-10 17:17     ` Andrew Morton
2005-08-10 17:27       ` Mel Gorman
2005-08-10 17:40         ` Andrew Morton
2005-08-10 17:51           ` Mel Gorman
2005-08-10 17:52             ` Andrew Morton
2005-08-10 17:50         ` Dave Hansen
2005-08-10 17:59           ` Mel Gorman
2005-08-11  3:08       ` Magnus Damm
2005-08-11  4:44         ` Andrew Morton
2005-08-11  5:43           ` Magnus Damm
2005-08-11  9:09           ` Coywolf Qi Hunt
2005-08-11 14:09             ` Hugh Dickins
2005-08-09  4:06 ` Rik van Riel

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.58.0508081715250.26013@skynet \
    --to=mel@csn.ul.ie \
    --cc=joern@wohnheim.fh-wedel.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®