Re: [PATCH 04/14] mm,migration: Allow the migration of PageSwapCache pages

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mel Gorman
Date: Saturday, April 24, 2010 - 3:50 am

On Fri, Apr 23, 2010 at 09:39:48PM +0200, Andrea Arcangeli wrote:

I thought it was but I was looking at an rc kernel instead of 2.6.33.
This looked as if it was safe but it's not any more with the new
anon_vma scheme.


It either has to find them all or it has to be capable of a
lazy-cleanup. I had lazy cleanup patch but it was dropped because we
felt it should have been possible to properly lock this. I'm beginning
to think it can't because there appears to be a few cases where the VM
doesn't care if it doesn't find all the mappings.


There might also be a locking snarl there as well then. I confess that
the details of transparent hugepage support have fallen back out of my
head within the last two weeks.


When a mapped swapcache is unmapped, a migration PTE is put in place. If
that was not the case, we wouldn't be hitting the bug in the first
place.


True, which is why I'm not keen on lazy cleanup.


Maybe.


That would be another way of doing it all right. Count how many
migration ptes we created, pass that to rmap_walk. If they don't match,
assume a race and do it again before the page is unlocked.

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
--
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 ..., Mel Gorman, (Sat Apr 24, 3:50 am)
Re: [PATCH 04/14] mm,migration: Allow the migration of Pag ..., KAMEZAWA Hiroyuki, (Tue Apr 27, 3:41 am)