1 Feb 2010 23:37
Re: Fix to numa_node_to_cpus_v2
Cliff Wickman <cpw <at> sgi.com>
2010-02-01 22:37:34 GMT
2010-02-01 22:37:34 GMT
Hi Sharyathi, Thanks for both patch and test case. The patch needs one more change I think. The target buffer may be bigger, so the copy of the map needs to be zero-extended. Would you review it? Thx. -Cliff > Date: Thu, 28 Jan 2010 11:23:05 +0530 > From: Sharyathi Nagesh <sharyath <at> in.ibm.com> > To: linux-numa <at> vger.kernel.org, Andi Kleen <andi <at> firstfloor.org>, > Christoph Lameter <clameter <at> sgi.com>, Cliff Wickman <cpw <at> sgi.com>, > Lee Schermerhorn <lee.schermerhorn <at> hp.com>, > Amit K Arora <amitarora <at> in.ibm.com>, deepti.kalra <at> in.ibm.com > Subject: Fix to numa_node_to_cpus_v2 > > Hi > > We observed that numa_node_to_cpus api() api converts a node number to a > bitmask of CPUs. The user must pass a long enough buffer. If the buffer is not > long enough errno will be set to ERANGE and -1 returned. On success 0 is returned. > This api has been changed in numa version 2.0. It has new implementation (_v2) > > Analysis: > Now within the numa_node_to_cpus code there is a check if the size of buffer(Continue reading)
and yes perhaps
it is better in this age with all kinds of virtual CPUs
-Andi
RSS Feed