Re: [libvirt] [PATCH 1/1] nodeinfo: Increase the num of CPU thread siblings to a larger value

2015-03-27 Thread Ján Tomko
On Thu, Mar 26, 2015 at 11:49:28AM -0400, Don Dutile wrote: On 03/26/2015 07:03 AM, Ján Tomko wrote: On Thu, Mar 26, 2015 at 12:48:13AM -0400, Wei Huang wrote: Current libvirt can only handle up to 1024 thread siblings when it s/1024 thread siblings/1023 bytes/ reads Linux sysfs

Re: [libvirt] [PATCH 1/1] nodeinfo: Increase the num of CPU thread siblings to a larger value

2015-03-26 Thread Ján Tomko
On Thu, Mar 26, 2015 at 12:48:13AM -0400, Wei Huang wrote: Current libvirt can only handle up to 1024 thread siblings when it reads Linux sysfs topology/thread_siblings. This isn't enough for Linux distributions that support a large value. This patch fixes the problem by using

Re: [libvirt] [PATCH 1/1] nodeinfo: Increase the num of CPU thread siblings to a larger value

2015-03-26 Thread Don Dutile
On 03/26/2015 12:08 PM, Wei Huang wrote: On 03/26/2015 10:49 AM, Don Dutile wrote: On 03/26/2015 07:03 AM, Ján Tomko wrote: On Thu, Mar 26, 2015 at 12:48:13AM -0400, Wei Huang wrote: Current libvirt can only handle up to 1024 thread siblings when it reads Linux sysfs

Re: [libvirt] [PATCH 1/1] nodeinfo: Increase the num of CPU thread siblings to a larger value

2015-03-26 Thread Wei Huang
On 03/26/2015 10:49 AM, Don Dutile wrote: On 03/26/2015 07:03 AM, Ján Tomko wrote: On Thu, Mar 26, 2015 at 12:48:13AM -0400, Wei Huang wrote: Current libvirt can only handle up to 1024 thread siblings when it reads Linux sysfs topology/thread_siblings. This isn't enough for Linux

Re: [libvirt] [PATCH 1/1] nodeinfo: Increase the num of CPU thread siblings to a larger value

2015-03-26 Thread Don Dutile
On 03/26/2015 07:03 AM, Ján Tomko wrote: On Thu, Mar 26, 2015 at 12:48:13AM -0400, Wei Huang wrote: Current libvirt can only handle up to 1024 thread siblings when it reads Linux sysfs topology/thread_siblings. This isn't enough for Linux distributions that support a large value. This patch

[libvirt] [PATCH 1/1] nodeinfo: Increase the num of CPU thread siblings to a larger value

2015-03-25 Thread Wei Huang
Current libvirt can only handle up to 1024 thread siblings when it reads Linux sysfs topology/thread_siblings. This isn't enough for Linux distributions that support a large value. This patch fixes the problem by using VIR_ALLOC()/VIR_FREE(), instead of using a fixed-size (1024) local char array.