Re: [PATCH v3 3/3] libnvdimm: Add sysfs numa_node to NVDIMM devices

2015-06-24 Thread Dan Williams
On Wed, Jun 24, 2015 at 9:38 AM, Toshi Kani wrote: > On Tue, 2015-06-23 at 17:26 -0700, Dan Williams wrote: >> On Fri, Jun 19, 2015 at 11:18 AM, Toshi Kani wrote: >> > Add support of sysfs 'numa_node' to I/O-related NVDIMM devices >> > under /sys/bus/nd/devices, regionN, namespaceN.0, and bttN. >

Re: [PATCH v3 3/3] libnvdimm: Add sysfs numa_node to NVDIMM devices

2015-06-24 Thread Toshi Kani
On Tue, 2015-06-23 at 17:26 -0700, Dan Williams wrote: > On Fri, Jun 19, 2015 at 11:18 AM, Toshi Kani wrote: > > Add support of sysfs 'numa_node' to I/O-related NVDIMM devices > > under /sys/bus/nd/devices, regionN, namespaceN.0, and bttN. > > When bttN is not set up, its numa_node returns -1 (NUM

Re: [PATCH v3 3/3] libnvdimm: Add sysfs numa_node to NVDIMM devices

2015-06-23 Thread Dan Williams
On Tue, Jun 23, 2015 at 5:26 PM, Dan Williams wrote: > On Fri, Jun 19, 2015 at 11:18 AM, Toshi Kani wrote: >> Add support of sysfs 'numa_node' to I/O-related NVDIMM devices >> under /sys/bus/nd/devices, regionN, namespaceN.0, and bttN. >> When bttN is not set up, its numa_node returns -1 (NUMA_NO

Re: [PATCH v3 3/3] libnvdimm: Add sysfs numa_node to NVDIMM devices

2015-06-23 Thread Dan Williams
On Fri, Jun 19, 2015 at 11:18 AM, Toshi Kani wrote: > Add support of sysfs 'numa_node' to I/O-related NVDIMM devices > under /sys/bus/nd/devices, regionN, namespaceN.0, and bttN. > When bttN is not set up, its numa_node returns -1 (NUMA_NO_NODE). > > An example of numa_node values on a 2-socket sy

Re: [PATCH v3 3/3] libnvdimm: Add sysfs numa_node to NVDIMM devices

2015-06-19 Thread Toshi Kani
On Fri, 2015-06-19 at 22:01 +0200, Brice Goglin wrote: > Do you have local_cpus and local_cpulist attributes as well? > User-space tools such as hwloc use those for binding near I/O devices, > although I guess we could have some CPU-less NVDIMM NUMA nodes? No, the patch does not create local_cpus

Re: [PATCH v3 3/3] libnvdimm: Add sysfs numa_node to NVDIMM devices

2015-06-19 Thread Brice Goglin
Do you have local_cpus and local_cpulist attributes as well? User-space tools such as hwloc use those for binding near I/O devices, although I guess we could have some CPU-less NVDIMM NUMA nodes? Brice Le 19/06/2015 20:18, Toshi Kani a écrit : > Add support of sysfs 'numa_node' to I/O-related N

[PATCH v3 3/3] libnvdimm: Add sysfs numa_node to NVDIMM devices

2015-06-19 Thread Toshi Kani
Add support of sysfs 'numa_node' to I/O-related NVDIMM devices under /sys/bus/nd/devices, regionN, namespaceN.0, and bttN. When bttN is not set up, its numa_node returns -1 (NUMA_NO_NODE). An example of numa_node values on a 2-socket system with a single NVDIMM range on each socket is shown below.