node_exporter/collector/fixtures
Karsten Weiss a8d7d1101a cpu: Support processor-less (memory-only) NUMA nodes (#734)
* cpu: Support processor-less (memory-only) NUMA nodes

Processor-less (memory-only) NUMA nodes exist e.g. in systems that use
Intel Optane drives for RAM expansion using Intel Memory Drive
Technology (IMDT).

IMDT RAM expansion supports two modes:

* "Unify Remote Memory domains": present a processor-less (memory-only)
  NUMA domain, which is the default
* "Expand local memory domains": to expand each processor’s memory domain
  with a portion of the memory made available by Optane and IMDT

This commit fixes a crash in the first case (when "cpulist" is empty).

Here's an example of such a system:

$ numastat -m|head -n5

Per-node system memory usage (in MBs):
                          Node 0          Node 1          Node 2           Total
                 --------------- --------------- --------------- ---------------
MemTotal               118239.56       130816.00       464384.00       713439.56

$ for i in {0..2}; do echo -n "$i: " ; cat /sys/bus/node/devices/node$i/cpulist ; done
0: 0-7,16-23
1: 8-15,24-31
2:

$ /opt/vsmp/bin/vsmpversion -vvv
Memory Drive Technology: 8.2.1455.74 (Sep 28 2017 13:09:59)
System configuration:
    Boards:      3
       1 x Proc. + I/O + Memory
       2 x NVM devices (Intel SSDPED1K375GAQ)
    Processors:  2, Cores: 16, Threads: 32
        Intel(R) Xeon(R) CPU E5-2667 v4 @ 3.20GHz Stepping 01
    Memory (MB): 713472 (of 977450), Cache: 251416, Private: 12562
       1 x 249088MB   [262036/   678/12270]
       1 x 232192MB   [357707/125369/  146]  82:00.0#1
       1 x 232192MB   [357707/125369/  146]  83:00.0#1

* cpu: rename some variables (pkg => node)

* cpu: Use %v not %q in log.Debugf() format strings
2017-11-10 15:31:26 +01:00
..
proc Change raid0 status line regexp for mdadm collector (#619) 2017-07-20 17:04:33 +02:00
qdisc Add qdisc collector for Linux (#580) 2017-05-23 11:55:50 +02:00
textfile Fix mtime reporting in textfile collector, add tests. 2015-09-04 15:42:44 +02:00
wifi Expand wifi collector for more interface types 2017-03-20 12:25:01 -04:00
e2e-output.txt Fix off by one in Linux interrupts collector (#721) 2017-11-02 09:59:46 +01:00
ip_vs_result.txt Rearrange fixtures to match "real" proc and sys. 2015-09-28 13:56:22 +00:00
megacli Add an end-to-end test. 2015-09-28 13:56:22 +00:00
megacli_adapter.txt Add MegaCLI collector 2014-07-09 14:56:06 +02:00
megacli_disks.txt megacli: prevent crash when drive temperature is N/A 2015-07-29 08:34:02 +02:00
sys.ttar cpu: Support processor-less (memory-only) NUMA nodes (#734) 2017-11-10 15:31:26 +01:00