[lkml]   [2011]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4/4] mm: compaction: Abort compaction if too many pages are isolated and caller is asynchronous V2
On Tue 07-06-11 17:27:11, Mel Gorman wrote:
> Changelog since V1
> o Return COMPACT_PARTIAL when aborting due to too many isolated
> pages. As pointed out by Minchan, this is better for consistency
> Asynchronous compaction is used when promoting to huge pages. This is
> all very nice but if there are a number of processes in compacting
> memory, a large number of pages can be isolated. An "asynchronous"
> process can stall for long periods of time as a result with a user
> reporting that firefox can stall for 10s of seconds. This patch aborts
> asynchronous compaction if too many pages are isolated as it's better to
> fail a hugepage promotion than stall a process.
> [ Return COMPACT_PARTIAL for abort]
> Reported-and-tested-by: Ury Stankevich <>
> Signed-off-by: Mel Gorman <>

Reviewed-by: Michal Hocko <>
Michal Hocko
Lihovarska 1060/12
190 00 Praha 9
Czech Republic

 \ /
  Last update: 2011-06-08 11:57    [W:0.066 / U:16.096 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site