pmem monitoring help

34 views
Skip to first unread message

Mohan Parthasarathy

unread,
Jun 9, 2021, 4:03:05 AM6/9/21
to pm...@googlegroups.com
Hi,

I am looking for a way to monitor the following parameters of an NVDIMM (Optane). I have a couple of questions :
- Are there equivalent ndctl options to these ipmctl ones ?
- Is there a programmatic way (library) for me to get these values ? if yes, is there sample code available ?
- Is this information part of any standard Redfish schema ?

Regards,
Mohan


NVDIMM parameter

IPMCTL command

NDCTL command

Health

ipmctl show -dimm -sensor Health

 

Media Temperature

ipmctl show -dimm -sensor MediaTemperature

 

Controller temperature

ipmctl show -dimm -sensor ControllerTemperature

 

Percentage remaining

ipmctl show -dimm -sensor PercentageRemaining

 

MediaReads

ipmctl show -dimm -performance MediaReads

 

MediaWrites

ipmctl show -dimm -performance MediaWrites

 

steve.s...@gmail.com

unread,
Jun 9, 2021, 10:29:37 AM6/9/21
to pmem
Hello Mohan,

>> - Are there equivalent ndctl options to these ipmctl ones ?
No. ndctl is a generic nvdimm utility whereas ipmctl is a vendor-specific tool (Intel Persistent Memory Ctrl), capable of extracting more information from the Intel pmem devices. ndctl can show some basic health information, eg:

---
# ndctl list -DH
[
  {
    "dev":"nmem1",
    "id":"8089-a2-2014-00003dec",
    "handle":17,
    "phys_id":4359,
    "security":"disabled",
    "health":{
      "health_state":"ok",
      "temperature_celsius":42.0,
      "controller_temperature_celsius":46.0,
      "spares_percentage":100,
      "alarm_temperature":false,
      "alarm_controller_temperature":false,
      "alarm_spares":false,
      "alarm_enabled_media_temperature":false,
      "alarm_enabled_ctrl_temperature":false,
      "alarm_enabled_spares":false,
      "shutdown_state":"clean",
      "shutdown_count":0
    }
  },
---

>> - Is there a programmatic way (library) for me to get these values? if yes, is there a sample code available?

Yes, you can use libipmctl to obtain that information. The API doesn't have any documentation, but there is a C code example located at https://github.com/intel/ipmctl/blob/master/src/os/nvm_api_sample/main.c

>> - Is this information part of any standard Redfish schema ?
Most of it is available in the RedFish spec - https://www.dmtf.org/sites/default/files/standards/documents/DSP2046_2017.1.pdf. The server OEM platform management code needs to implement it. 
  • HealthData   
  • Temperatures
/Steve

Mohan Parthasarathy

unread,
Jun 10, 2021, 1:22:57 AM6/10/21
to steve.s...@gmail.com, pmem
Thanks, Steve. I tried building ipmctl on SLES 12 SP4 and am getting this error : /root/ipmctl/DcpmPkg/common/Pbr.c:821:3: error: call to function ‘PbrFreeSession’ without a real prototype [-Werror=unprototyped-calls]

Any ideas on what could be wrong?

Regards,
Mohan


--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/9f99b974-6cf2-4340-a7c2-197b3f07bc8bn%40googlegroups.com.

Mohan Parthasarathy

unread,
Jun 10, 2021, 1:46:15 AM6/10/21
to steve.s...@gmail.com, pmem
Sorry, Steve.  You can ignore my previous mail. I got it working. Thanks for your help.

Regards,
Mohan

Reply all
Reply to author
Forward
0 new messages