Re: How to reclaim inode pages on demand

2005-08-11 Thread Hugh Dickins
On Thu, 11 Aug 2005, Coywolf Qi Hunt wrote: > > at http://sosdg.org/~coywolf/lxr/source/include/linux/mm.h#L561 > Should the comment be s/page_mapped/page->mapping/ ? No. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More

Re: How to reclaim inode pages on demand

2005-08-11 Thread Coywolf Qi Hunt
On 8/11/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > Magnus Damm <[EMAIL PROTECTED]> wrote: > > > > On 8/11/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > > > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > > The majority of pages I am seeing no longer have page->mapping set. Does > > > > this mean

Re: How to reclaim inode pages on demand

2005-08-11 Thread Coywolf Qi Hunt
On 8/11/05, Andrew Morton [EMAIL PROTECTED] wrote: Magnus Damm [EMAIL PROTECTED] wrote: On 8/11/05, Andrew Morton [EMAIL PROTECTED] wrote: Mel Gorman [EMAIL PROTECTED] wrote: The majority of pages I am seeing no longer have page-mapping set. Does this mean they are in the process

Re: How to reclaim inode pages on demand

2005-08-11 Thread Hugh Dickins
On Thu, 11 Aug 2005, Coywolf Qi Hunt wrote: at http://sosdg.org/~coywolf/lxr/source/include/linux/mm.h#L561 Should the comment be s/page_mapped/page-mapping/ ? No. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: How to reclaim inode pages on demand

2005-08-10 Thread Magnus Damm
On 8/11/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > Magnus Damm <[EMAIL PROTECTED]> wrote: > > > > On 8/11/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > > > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > > The majority of pages I am seeing no longer have page->mapping set. Does > > > > this mean

Re: How to reclaim inode pages on demand

2005-08-10 Thread Andrew Morton
Magnus Damm <[EMAIL PROTECTED]> wrote: > > On 8/11/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > 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

Re: How to reclaim inode pages on demand

2005-08-10 Thread Magnus Damm
On 8/11/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > Mel Gorman <[EMAIL PROTECTED]> wrote: > > 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

Re: How to reclaim inode pages on demand

2005-08-10 Thread Mel Gorman
On Wed, 10 Aug 2005, Dave Hansen wrote: > On Wed, 2005-08-10 at 18:27 +0100, Mel Gorman wrote: > > I later linearly scan the mem_map looking for pages that can be freed up > > (usually LRU pages). I was expecting any page with PG_inode set to have a > > page->mapping but not all of them do. It is

Re: How to reclaim inode pages on demand

2005-08-10 Thread Andrew Morton
Mel Gorman <[EMAIL PROTECTED]> wrote: > > > Well there are conditions in which mmapped file pages can get converted to > > anonymous pages due to truncate(), but I have a feeling that we stopped > > that from happening. > > > > Does that also apply to when a file is unlinked rather than

Re: How to reclaim inode pages on demand

2005-08-10 Thread Mel Gorman
On Wed, 10 Aug 2005, Andrew Morton wrote: > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > > On Wed, 10 Aug 2005, Andrew Morton wrote: > > > > > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > > > > > > On Mon, 8 Aug 2005, Andrew Morton wrote: > > > > > > > > > Mel Gorman <[EMAIL PROTECTED]> wrote: > >

Re: How to reclaim inode pages on demand

2005-08-10 Thread Dave Hansen
On Wed, 2005-08-10 at 18:27 +0100, Mel Gorman wrote: > I later linearly scan the mem_map looking for pages that can be freed up > (usually LRU pages). I was expecting any page with PG_inode set to have a > page->mapping but not all of them do. It is the pages without a ->mapping > that are

Re: How to reclaim inode pages on demand

2005-08-10 Thread Andrew Morton
Mel Gorman <[EMAIL PROTECTED]> wrote: > > On Wed, 10 Aug 2005, Andrew Morton wrote: > > > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > > > > On Mon, 8 Aug 2005, Andrew Morton wrote: > > > > > > > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hi, > > > > > > > > > > I am working on a

Re: How to reclaim inode pages on demand

2005-08-10 Thread Mel Gorman
On Wed, 10 Aug 2005, Andrew Morton wrote: > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > > On Mon, 8 Aug 2005, Andrew Morton wrote: > > > > > Mel Gorman <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > > > > > I am working on a direct reclaim strategy to free up large blocks of > > > >

Re: How to reclaim inode pages on demand

2005-08-10 Thread Andrew Morton
Mel Gorman <[EMAIL PROTECTED]> wrote: > > On Mon, 8 Aug 2005, Andrew Morton wrote: > > > Mel Gorman <[EMAIL PROTECTED]> 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

Re: How to reclaim inode pages on demand

2005-08-10 Thread Mel Gorman
On Mon, 8 Aug 2005, Andrew Morton wrote: > Mel Gorman <[EMAIL PROTECTED]> 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

Re: How to reclaim inode pages on demand

2005-08-10 Thread Mel Gorman
On Mon, 8 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] 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

Re: How to reclaim inode pages on demand

2005-08-10 Thread Andrew Morton
Mel Gorman [EMAIL PROTECTED] wrote: On Mon, 8 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] 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

Re: How to reclaim inode pages on demand

2005-08-10 Thread Mel Gorman
On Wed, 10 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] wrote: On Mon, 8 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] wrote: Hi, I am working on a direct reclaim strategy to free up large blocks of contiguous pages. The part I have is

Re: How to reclaim inode pages on demand

2005-08-10 Thread Andrew Morton
Mel Gorman [EMAIL PROTECTED] wrote: On Wed, 10 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] wrote: On Mon, 8 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] wrote: Hi, I am working on a direct reclaim strategy to free up large

Re: How to reclaim inode pages on demand

2005-08-10 Thread Dave Hansen
On Wed, 2005-08-10 at 18:27 +0100, Mel Gorman wrote: I later linearly scan the mem_map looking for pages that can be freed up (usually LRU pages). I was expecting any page with PG_inode set to have a page-mapping but not all of them do. It is the pages without a -mapping that are confusing the

Re: How to reclaim inode pages on demand

2005-08-10 Thread Mel Gorman
On Wed, 10 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] wrote: On Wed, 10 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] wrote: On Mon, 8 Aug 2005, Andrew Morton wrote: Mel Gorman [EMAIL PROTECTED] wrote: Hi, I am

Re: How to reclaim inode pages on demand

2005-08-10 Thread Andrew Morton
Mel Gorman [EMAIL PROTECTED] wrote: Well there are conditions in which mmapped file pages can get converted to anonymous pages due to truncate(), but I have a feeling that we stopped that from happening. Does that also apply to when a file is unlinked rather than truncated? Yup.

Re: How to reclaim inode pages on demand

2005-08-10 Thread Mel Gorman
On Wed, 10 Aug 2005, Dave Hansen wrote: On Wed, 2005-08-10 at 18:27 +0100, Mel Gorman wrote: I later linearly scan the mem_map looking for pages that can be freed up (usually LRU pages). I was expecting any page with PG_inode set to have a page-mapping but not all of them do. It is the

Re: How to reclaim inode pages on demand

2005-08-10 Thread Magnus Damm
On 8/11/05, Andrew Morton [EMAIL PROTECTED] wrote: Mel Gorman [EMAIL PROTECTED] wrote: 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

Re: How to reclaim inode pages on demand

2005-08-10 Thread Andrew Morton
Magnus Damm [EMAIL PROTECTED] wrote: On 8/11/05, Andrew Morton [EMAIL PROTECTED] wrote: Mel Gorman [EMAIL PROTECTED] wrote: 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,

Re: How to reclaim inode pages on demand

2005-08-10 Thread Magnus Damm
On 8/11/05, Andrew Morton [EMAIL PROTECTED] wrote: Magnus Damm [EMAIL PROTECTED] wrote: On 8/11/05, Andrew Morton [EMAIL PROTECTED] wrote: Mel Gorman [EMAIL PROTECTED] wrote: The majority of pages I am seeing no longer have page-mapping set. Does this mean they are in the process

Re: How to reclaim inode pages on demand

2005-08-08 Thread Rik van Riel
On Mon, 8 Aug 2005, Mel Gorman wrote: > 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? Note that you can only free the inodes that aren't currently open files for any of the processes in the system. -- All Rights

Re: How to reclaim inode pages on demand

2005-08-08 Thread Andrew Morton
Mel Gorman <[EMAIL PROTECTED]> 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

Re: How to reclaim inode pages on demand

2005-08-08 Thread Mel Gorman
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

Re: How to reclaim inode pages on demand

2005-08-08 Thread Jörn Engel
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

Re: How to reclaim inode pages on demand

2005-08-08 Thread Jörn Engel
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

Re: How to reclaim inode pages on demand

2005-08-08 Thread Mel Gorman
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

Re: How to reclaim inode pages on demand

2005-08-08 Thread Andrew Morton
Mel Gorman [EMAIL PROTECTED] 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

Re: How to reclaim inode pages on demand

2005-08-08 Thread Rik van Riel
On Mon, 8 Aug 2005, Mel Gorman wrote: 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? Note that you can only free the inodes that aren't currently open files for any of the processes in the system. -- All Rights