Re: [PATCH] fix count_vm_event preempt in memory compaction direct reclaim

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Arcangeli
Date: Wednesday, May 5, 2010 - 7:48 am

On Wed, May 05, 2010 at 02:55:38PM +0100, Mel Gorman wrote:

That explains it! But anything can call alloc_pages(order>0) with some
semaphore held.


Yes success rate will be slightly worse but this also applies to all
regular vmscan paths that don't send IPI but they only flush the local
queue with lru_add_drain, simply pages won't be freed until there will
be some other cpu holding the refcount on them, it is not specific to
compaction.c but it applies to vmscan.c and vmscan likely not wanting
to send an IPI flood because it could too if it wanted.

But I guess I should at least use lru_add_drain() in replacement of
migrate_prep...


I don't know if IPI is measurable, but it usually is...


lru_add_drain_all->schedule_on_each_cpu->flush_work


Where? I never triggered other issues in the page allocator with
lockdep, just this one pops up.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/14] Memory Compaction v8, Mel Gorman, (Tue Apr 20, 2:01 pm)
[PATCH 09/14] mm,compaction: Memory compaction core, Mel Gorman, (Tue Apr 20, 2:01 pm)
Re: [PATCH 01/14] mm,migration: Take a reference to the an ..., KAMEZAWA Hiroyuki, (Tue Apr 20, 7:49 pm)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., Christoph Lameter, (Wed Apr 21, 7:30 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., Christoph Lameter, (Wed Apr 21, 8:05 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., Christoph Lameter, (Wed Apr 21, 8:31 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., Christoph Lameter, (Wed Apr 21, 8:46 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., KAMEZAWA Hiroyuki, (Wed Apr 21, 4:59 pm)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., KAMEZAWA Hiroyuki, (Thu Apr 22, 2:46 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., KAMEZAWA Hiroyuki, (Thu Apr 22, 3:31 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., KAMEZAWA Hiroyuki, (Thu Apr 22, 3:51 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., Christoph Lameter, (Thu Apr 22, 8:14 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., Christoph Lameter, (Thu Apr 22, 12:40 pm)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., KAMEZAWA Hiroyuki, (Thu Apr 22, 4:52 pm)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., Andrea Arcangeli, (Fri Apr 23, 11:31 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., Andrea Arcangeli, (Fri Apr 23, 12:39 pm)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., KAMEZAWA Hiroyuki, (Tue Apr 27, 3:41 am)
Re: [PATCH] fix count_vm_event preempt in memory compactio ..., Andrea Arcangeli, (Wed May 5, 7:48 am)