Re: [RFC:Patch: 000/008](memory hotplug) rough idea of pgdat removing

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <cl@...>
Cc: Badari Pulavarty <pbadari@...>, Andrew Morton <akpm@...>, Mel Gorman <mel@...>, linux-mm <linux-mm@...>, Linux Kernel ML <linux-kernel@...>
Date: Friday, August 1, 2008 - 8:16 pm

> Yasunori Goto wrote:

I use srcu_read_lock() (sleepable rcu lock) if kernel must be sleep for
page reclaim. So, my patch basic idea is followings.


   CPU 0                                    CPU 1
-------------------------------------------------------
__alloc_pages()
     
    rcu_read_lock() and check 
      online bitmap
        parsing_zonelist()
    rcu_read_unlock()
        :
    enter page_reclarim()
    srcu_read_lock()
      parse zone/zonelist.
      sleep (and remember zone)                 :
                                               :
                                        update zonelist and node_online_map
                                          with stop_machine_run()

    wake up and touch remembered zone,  
   srcu_read_unlock()
                                        syncronized_sched().
                                        free_pgdat()


Thanks.

-- 
Yasunori Goto 


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

Messages in current thread:
Re: [RFC:Patch: 000/008](memory hotplug) rough idea of pgdat..., Christoph Lameter, (Thu Jul 31, 10:04 am)
Re: [RFC:Patch: 000/008](memory hotplug) rough idea of pgdat..., Yasunori Goto, (Fri Aug 1, 8:16 pm)