Re: error at compaction (Re: mmotm 2010-04-15-14-42 uploaded

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Minchan Kim
Date: Wednesday, April 21, 2010 - 9:52 am

Hi, Mel. 

On Wed, 2010-04-21 at 11:20 +0100, Mel Gorman wrote:

Hmm. How about the situation?


CPU A						CPU B

1. unmap_and_move
2. lock_page
3. PageAnon && !page_mapped && PageSwapCache	3' do_fork 
4. remap_swapcache = 0				4' pte lock, page_dup_rmap <- race happens
5. try_to_unmap - make migration entry by 4'	
6. move_to_newpage
7. don't call remove_migration due to 4
						8. do_swap_page
						9. migration_entry_wait
						10. goto out
						11. fault!
						
In this case, process of CPU B will be killed although it passes PageLocked				
So I think we have to find another method. 

I might be wrong since nearly falling asleep. :(

-- 
Kind regards,
Minchan Kim


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mmotm 2010-04-15-14-42 uploaded, akpm, (Thu Apr 15, 2:42 pm)
Re: mmotm 2010-04-15-14-42 uploaded (shmem, CGROUP_MEM_RES ..., Daisuke Nishimura, (Sun Apr 18, 6:49 pm)
error at compaction (Re: mmotm 2010-04-15-14-42 uploaded, KAMEZAWA Hiroyuki, (Mon Apr 19, 3:01 am)
Re: error at compaction (Re: mmotm 2010-04-15-14-42 uploaded, KAMEZAWA Hiroyuki, (Mon Apr 19, 7:30 pm)
Re: error at compaction (Re: mmotm 2010-04-15-14-42 uploaded, KAMEZAWA Hiroyuki, (Mon Apr 19, 7:35 pm)
Re: error at compaction (Re: mmotm 2010-04-15-14-42 uploaded, KAMEZAWA Hiroyuki, (Mon Apr 19, 8:07 pm)
Re: error at compaction (Re: mmotm 2010-04-15-14-42 uploaded, KAMEZAWA Hiroyuki, (Mon Apr 19, 9:24 pm)
Re: error at compaction (Re: mmotm 2010-04-15-14-42 uploaded, KAMEZAWA Hiroyuki, (Wed Apr 21, 1:28 am)
Re: error at compaction (Re: mmotm 2010-04-15-14-42 uploaded, KAMEZAWA Hiroyuki, (Wed Apr 21, 2:48 am)
Re: error at compaction (Re: mmotm 2010-04-15-14-42 uploaded, Minchan Kim, (Wed Apr 21, 9:52 am)