Re: numa_num_configured_cpus off by 2 on 2.6.33 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 10, 2010 at 06:10:43PM +0100, Martin Vogt wrote:
> 
> Hello list,
> 
> currently my numa library reports two cpus more than I actuall have:

The code is broken anyways, it should be looking for the highest CPU 
number, otherwise it would not  handle CPU hotplug. Something like

	int max = 0;

...
	int n;
	if (sscanf(dirent->d_name, "cpu%d", &n) == 1 && n > max)
		max = n;

...
	use max 

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux