[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <789F9655DD1B8F43B48D77C5D30659732FE95E71@shsmsx501.ccr.corp.intel.com>
Date: Sun, 21 Nov 2010 23:16:57 +0800
From: "Li, Haicheng" <haicheng.li@...el.com>
To: Américo Wang <xiyou.wangcong@...il.com>,
"Zheng, Shaohui" <shaohui.zheng@...el.com>
CC: "akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"haicheng.li@...ux.intel.com" <haicheng.li@...ux.intel.com>,
"lethal@...ux-sh.org" <lethal@...ux-sh.org>,
"ak@...ux.intel.com" <ak@...ux.intel.com>,
"shaohui.zheng@...ux.intel.com" <shaohui.zheng@...ux.intel.com>
Subject: RE: [8/8,v3] NUMA Hotplug Emulator: documentation
Américo Wang wrote:
> On Wed, Nov 17, 2010 at 10:08:07AM +0800, shaohui.zheng@...el.com
> wrote:
>> +2) CPU hotplug emulation:
>> +
>> +The emulator reserve CPUs throu grub parameter, the reserved CPUs
>> can be +hot-add/hot-remove in software method, it emulates the
>> process of physical +cpu hotplug. +
>> +When hotplug a CPU with emulator, we are using a logical CPU to
>> emulate the CPU +socket hotplug process. For the CPU supported SMT,
>> some logical CPUs are in the +same socket, but it may located in
>> different NUMA node after we have emulator. +We put the logical CPU
>> into a fake CPU socket, and assign it an unique +phys_proc_id. For
>> the fake socket, we put one logical CPU in only. + + - to hide CPUs
>> + - Using boot option "maxcpus=N" hide CPUs
>> + N is the number of initialize CPUs
>> + - Using boot option "cpu_hpe=on" to enable cpu hotplug emulation
>> + when cpu_hpe is enabled, the rest CPUs will not be
>> initialized + + - to hot-add CPU to node
>> + $ echo nid > cpu/probe
>> +
>> + - to hot-remove CPU
>> + $ echo nid > cpu/release
>> +
>
> Again, we already have software CPU hotplug,
> i.e. /sys/devices/system/cpu/cpuX/online.
online here is just for logical CPU online. what we're achieving here is to emulate physical CPU hotadd.
-haicheng--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists