Re: How to reclaim inode pages on demand

From: Andrew Morton
Date: Wed Aug 10 2005 - 12:18:47 EST


Mel Gorman <mel@xxxxxxxxx> wrote:
>
> On Mon, 8 Aug 2005, Andrew Morton wrote:
>
> > Mel Gorman <mel@xxxxxxxxx> wrote:
> > >
> > > Hi,
> > >
> > > 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?
> >
> > Simple answer: invalidate_mapping_pages(page->mapping, start, end).
> >
>
> The majority of pages I am seeing no longer have page->mapping set. Does
> this mean they are in the process of being cleared up?

They're just anonymous pages, aren't they? But you said "pages that are
being used for inodes". Confused.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/