Re: [PATCH] mm: make do_move_pages() complexity linear

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Friday, September 12, 2008 - 6:45 am

Brice Goglin wrote:

Page migration in general is not affected by this issue. This is specific to
the sys_move_pages() system call. The API was so far only used to migrate a
limited number of pages. For more one would use either the cpuset or the
sys_migrate_pages() APIs since these do not require an array that describes
how every single page needs to be moved.


I agree. It would be good increase the speed of sys_move_pages().

However, note that your patch assumes that new_page_node() is called in
sequence for each of the pages in the page descriptor array. new_page_node()
is skipped in the loop if

1. The page is not present
2. The page is reserved
3. The page is already on the intended node
4. The page is shared between processes.

If any of those cases happen then your patch will result in the association of
page descriptors with the wrong pages for the remaining pages in the array.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] mm: make do_move_pages() complexity linear, Brice Goglin, (Fri Sep 12, 5:31 am)
Re: [PATCH] mm: make do_move_pages() complexity linear, Christoph Lameter, (Fri Sep 12, 6:45 am)
Re: [PATCH] mm: make do_move_pages() complexity linear, Brice Goglin, (Fri Sep 12, 6:54 am)
Re: [PATCH] mm: make do_move_pages() complexity linear, Christoph Lameter, (Fri Sep 12, 7:21 am)
Re: [PATCH] mm: make do_move_pages() complexity linear, Brice Goglin, (Thu Sep 25, 5:58 am)