Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-24 Thread Brice Goglin
Le 24/09/2014 00:19, Pedaballe, Vineet a écrit : > Please find my response inline. > > Some of the items related to hard drives & DIMM is available only with root > privileges. We should be able to populate objects related to these items only > when root privileges are available. Is this an accep

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Pedaballe, Vineet
-Original Message- From: hwloc-devel [mailto:hwloc-devel-boun...@open-mpi.org] On Behalf Of Brice Goglin Sent: Tuesday, September 23, 2014 12:42 PM To: hwloc-de...@open-mpi.org Subject: Re: [hwloc-devel] Using hwloc to detect Hard Disks Le 23/09/2014 21:06, Pedaballe, Vineet a écrit : > 4a. Netw

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Jeff Squyres (jsquyres)
I think what it means is that hwloc would report different things depending on whether it was run as root or a non-root user. On Sep 23, 2014, at 5:04 PM, Christopher Samuel wrote: > On 24/09/14 06:53, Ralph Castain wrote: > >> True - but we intend to collect the inventory as root anyway. :-)

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Christopher Samuel
On 24/09/14 06:53, Ralph Castain wrote: > True - but we intend to collect the inventory as root anyway. :-) Ah, I don't think the context of the conversation made it over to this list so I was assuming this was wanted (for some reason) by a normal user application. Mea culpa. All the best, Chri

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Christopher Samuel
On 24/09/14 05:42, Brice Goglin wrote: > Le 23/09/2014 21:06, Pedaballe, Vineet a écrit : > >> 4. Host Bus Adapters >> >a. Manufacturer >> >b. Serial Number >> >c. MAC address > > What kind of adapter are you talking about here? Hostbridge? I was wondering if this was referring to FC

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Ralph Castain
True - but we intend to collect the inventory as root anyway. :-) On Sep 23, 2014, at 1:50 PM, Christopher Samuel wrote: > On 24/09/14 00:57, Ralph Castain wrote: > >> Memory info is available from lshw, though they are a GPL code: > > FWIW on this laptop (Intel Haswell) lshw only report DIMM

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Christopher Samuel
On 24/09/14 00:57, Ralph Castain wrote: > Memory info is available from lshw, though they are a GPL code: FWIW on this laptop (Intel Haswell) lshw only report DIMM info when run as root, which I suspect would point them to accessing DMI information via /dev/mem. Using strace supports this: 3405

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Brice Goglin
Le 23/09/2014 21:06, Pedaballe, Vineet a écrit : > 4a. Network Adapters (Ethernet) > a. Model > b. Speed Both supported and currently negociated link speed? On Linux, we'll have to use the ethtool interface. > c. Serial Number (if applicable) > d. MAC address > 4b. Networ

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Pedaballe, Vineet
ssumptions. How would you like me to proceed from here? Thanks, Vineet -Original Message- From: hwloc-devel [mailto:hwloc-devel-boun...@open-mpi.org] On Behalf Of Brice Goglin Sent: Tuesday, September 23, 2014 8:48 AM To: hwloc-de...@open-mpi.org Subject: Re: [hwloc-devel] Using hwloc to de

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Brice Goglin
Le 23/09/2014 16:46, Brice Goglin a écrit : > Le 23/09/2014 16:38, Guy Streeter a écrit : >> I know that udev gathers this information: >> >> # ll /sys/block/sda/bdi >> lrwxrwxrwx. 1 root root 0 Sep 23 09:33 /sys/block/sda/bdi -> >> ../../../../../../../../virtual/bdi/8:0 >> # grep SERIAL '/run/ude

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Ralph Castain
Memory info is available from lshw, though they are a GPL code: *-bank:0 description: DIMM Synchronous 1333 MHz (0.8 ns) product: M393B1K70DH0-YH9 vendor: 0x80CE physical id: 0 serial: 0x85B5FED3 slot: DIMM_A1 size: 8GiB

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Brice Goglin
Le 23/09/2014 16:38, Guy Streeter a écrit : > I know that udev gathers this information: > > # ll /sys/block/sda/bdi > lrwxrwxrwx. 1 root root 0 Sep 23 09:33 /sys/block/sda/bdi -> > ../../../../../../../../virtual/bdi/8:0 > # grep SERIAL '/run/udev/data/b8:0' > E:ID_SERIAL=SAMSUNG_MZ7TD256HAFV-000L

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-23 Thread Guy Streeter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/22/2014 05:55 PM, Brice Goglin wrote: > Le 22/09/2014 23:28, Ralph Castain a écrit : >> >> I believe that is what we are requesting - and to be clear, Intel is >> proposing to develop and contribute this feature. We'd like to add >> attributes t

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-22 Thread Ralph Castain
On Sep 22, 2014, at 4:58 PM, Jeff Squyres (jsquyres) wrote: > On Sep 22, 2014, at 6:55 PM, Brice Goglin wrote: > >>> HWLOC already provides similar info for processors and mother boards, so it >>> seemed a natural extension of current capabilities to provide it for other >>> system elements.

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-22 Thread Jeff Squyres (jsquyres)
On Sep 22, 2014, at 6:55 PM, Brice Goglin wrote: >> HWLOC already provides similar info for processors and mother boards, so it >> seemed a natural extension of current capabilities to provide it for other >> system elements. > > Disk vendor/model is easy to add from sysfs on Linux. I don't kn

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-22 Thread Brice Goglin
Le 22/09/2014 23:28, Ralph Castain a écrit : > > I believe that is what we are requesting - and to be clear, Intel is > proposing to develop and contribute this feature. We'd like to add attributes > to the objects to record: > > * memory - the serial number and model number of the DIMMs > > * di

Re: [hwloc-devel] Using hwloc to detect Hard Disks

2014-09-22 Thread Ralph Castain
On Sep 22, 2014, at 1:59 PM, Jeff Squyres (jsquyres) wrote: > On Sep 22, 2014, at 4:46 PM, Jeff Squyres (jsquyres) > wrote: > I am not able to figure out how to read Hard drive details, for e.g., the content provided by hdparm application. My first question is, is it poss

[hwloc-devel] Using hwloc to detect Hard Disks

2014-09-22 Thread Jeff Squyres (jsquyres)
On Sep 22, 2014, at 4:46 PM, Jeff Squyres (jsquyres) wrote: >>> I am not able to figure out how to read Hard drive details, for e.g., >>> the content provided by hdparm application. >>> >>> My first question is, is it possible to read this using hwloc? If yes, can >>> anyone direct me to the doc