mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
* Corrected json config in numastatsMetric.md
* Added some debug output to numastatsMetric.go
This commit is contained in:
parent
9840d0193d
commit
e66d52bb32
@ -14,29 +14,38 @@ import (
|
|||||||
lp "github.com/ClusterCockpit/cc-metric-collector/pkg/ccMetric"
|
lp "github.com/ClusterCockpit/cc-metric-collector/pkg/ccMetric"
|
||||||
)
|
)
|
||||||
|
|
||||||
//
|
// Non-Uniform Memory Access (NUMA) policy hit/miss statistics
|
||||||
// Numa policy hit/miss statistics
|
|
||||||
//
|
//
|
||||||
// numa_hit:
|
// numa_hit:
|
||||||
// A process wanted to allocate memory from this node, and succeeded.
|
//
|
||||||
|
// A process wanted to allocate memory from this node, and succeeded.
|
||||||
|
//
|
||||||
// numa_miss:
|
// numa_miss:
|
||||||
// A process wanted to allocate memory from another node,
|
//
|
||||||
// but ended up with memory from this node.
|
// A process wanted to allocate memory from another node,
|
||||||
|
// but ended up with memory from this node.
|
||||||
|
//
|
||||||
// numa_foreign:
|
// numa_foreign:
|
||||||
// A process wanted to allocate on this node,
|
//
|
||||||
// but ended up with memory from another node.
|
// A process wanted to allocate on this node,
|
||||||
|
// but ended up with memory from another node.
|
||||||
|
//
|
||||||
// local_node:
|
// local_node:
|
||||||
// A process ran on this node's CPU,
|
//
|
||||||
// and got memory from this node.
|
// A process ran on this node's CPU,
|
||||||
|
// and got memory from this node.
|
||||||
|
//
|
||||||
// other_node:
|
// other_node:
|
||||||
// A process ran on a different node's CPU
|
//
|
||||||
// and got memory from this node.
|
// A process ran on a different node's CPU
|
||||||
|
// and got memory from this node.
|
||||||
|
//
|
||||||
// interleave_hit:
|
// interleave_hit:
|
||||||
// Interleaving wanted to allocate from this node
|
//
|
||||||
// and succeeded.
|
// Interleaving wanted to allocate from this node
|
||||||
|
// and succeeded.
|
||||||
//
|
//
|
||||||
// See: https://www.kernel.org/doc/html/latest/admin-guide/numastat.html
|
// See: https://www.kernel.org/doc/html/latest/admin-guide/numastat.html
|
||||||
//
|
|
||||||
type NUMAStatsCollectorTopolgy struct {
|
type NUMAStatsCollectorTopolgy struct {
|
||||||
file string
|
file string
|
||||||
tagSet map[string]string
|
tagSet map[string]string
|
||||||
@ -82,6 +91,8 @@ func (m *NUMAStatsCollector) Init(config json.RawMessage) error {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialized
|
||||||
|
cclog.ComponentDebug(m.name, "initialized", len(m.topology), "NUMA domains")
|
||||||
m.init = true
|
m.init = true
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
|
|
||||||
## `numastat` collector
|
## `numastat` collector
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"numastat": {}
|
"numastats": {}
|
||||||
```
|
```
|
||||||
|
|
||||||
The `numastat` collector reads data from `/sys/devices/system/node/node*/numastat` and outputs a handful **memoryDomain** metrics. See: https://www.kernel.org/doc/html/latest/admin-guide/numastat.html
|
The `numastat` collector reads data from `/sys/devices/system/node/node*/numastat` and outputs a handful **memoryDomain** metrics. See: <https://www.kernel.org/doc/html/latest/admin-guide/numastat.html>
|
||||||
|
|
||||||
Metrics:
|
Metrics:
|
||||||
|
|
||||||
* `numastats_numa_hit`: A process wanted to allocate memory from this node, and succeeded.
|
* `numastats_numa_hit`: A process wanted to allocate memory from this node, and succeeded.
|
||||||
* `numastats_numa_miss`: A process wanted to allocate memory from another node, but ended up with memory from this node.
|
* `numastats_numa_miss`: A process wanted to allocate memory from another node, but ended up with memory from this node.
|
||||||
* `numastats_numa_foreign`: A process wanted to allocate on this node, but ended up with memory from another node.
|
* `numastats_numa_foreign`: A process wanted to allocate on this node, but ended up with memory from another node.
|
||||||
|
Loading…
Reference in New Issue
Block a user