Re: + mm-vmstat-add-isolate-pages.patch added to -mm tree

From: KOSAKI Motohiro
Date: Thu Jul 16 2009 - 01:35:02 EST


> On Wed, 15 Jul 2009 20:21:36 -0700
> akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> > ------------------------------------------------------
> > Subject: mm: vmstat: add isolate pages
> > From: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
> >
>
> Hi, Kosaki,
>
> > If the system is running a heavy load of processes then concurrent reclaim
> > can isolate a large number of pages from the LRU. /proc/meminfo and the
> > output generated for an OOM do not show how many pages were isolated.
> >
> <snip>
>
> > @@ -742,6 +746,13 @@ int migrate_pages(struct list_head *from
> > struct page *page2;
> > int swapwrite = current->flags & PF_SWAPWRITE;
> > int rc;
> > + int flags;
>
> unsigned long.

Grr. yes my fault.


> > +
> > + local_irq_save(flags);
> > + list_for_each_entry(page, from, lru)
> > + __inc_zone_page_state(page, NR_ISOLATED_ANON +
> > + !!page_is_file_cache(page));
> > + local_irq_restore(flags);

Fixing patch is here ;-)


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
---
mm/migrate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/mm/migrate.c
===================================================================
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -744,7 +744,7 @@ int migrate_pages(struct list_head *from
struct page *page2;
int swapwrite = current->flags & PF_SWAPWRITE;
int rc;
- int flags;
+ unsigned long flags;

local_irq_save(flags);
list_for_each_entry(page, from, lru)




--
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/