mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Merge pull request #642 from Foxlik/transparent-hugepages
Readd Anonymous Hugepages to system/hugepage
This commit is contained in:
commit
ad581ffdae
1 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,7 @@ BEGIN {
|
||||||
print "graph_title HugePages usage"
|
print "graph_title HugePages usage"
|
||||||
print "graph_category system"
|
print "graph_category system"
|
||||||
print "graph_info This graph shows the usage of the kernel Huge Pages."
|
print "graph_info This graph shows the usage of the kernel Huge Pages."
|
||||||
print "graph_order Total Rsvd Free Surp"
|
print "graph_order Total Rsvd Free Surp Anon"
|
||||||
print "Total.label total"
|
print "Total.label total"
|
||||||
print "Total.draw AREA"
|
print "Total.draw AREA"
|
||||||
print "Total.info Size of pool of hugepages ('nr_hugepages')"
|
print "Total.info Size of pool of hugepages ('nr_hugepages')"
|
||||||
|
@ -55,6 +55,9 @@ BEGIN {
|
||||||
print "Surp.label surplus"
|
print "Surp.label surplus"
|
||||||
print "Surp.draw STACK"
|
print "Surp.draw STACK"
|
||||||
print "Surp.info Number of hugepages > nr_hugepages, as decided by nr_overcommit_hugepages or when the amount of Huge Pages is reduced while they are in use."
|
print "Surp.info Number of hugepages > nr_hugepages, as decided by nr_overcommit_hugepages or when the amount of Huge Pages is reduced while they are in use."
|
||||||
|
print "Anon.label Transparent"
|
||||||
|
print "Anon.draw STACK"
|
||||||
|
print "Anon.info Huge Pages that are in use by the transparent Huge Page allocator khugepaged."
|
||||||
CONF=1
|
CONF=1
|
||||||
}
|
}
|
||||||
if (ARGC > 1 && ARGV[1] == "autoconf") {
|
if (ARGC > 1 && ARGV[1] == "autoconf") {
|
||||||
|
@ -69,6 +72,7 @@ BEGIN {
|
||||||
|
|
||||||
CONF == 1 {
|
CONF == 1 {
|
||||||
if (/Hugepagesize/) {
|
if (/Hugepagesize/) {
|
||||||
|
print "Anon.cdef Anon,",$2,",/"
|
||||||
print "graph_vlabel Pages (",$2,"KB/page)"
|
print "graph_vlabel Pages (",$2,"KB/page)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue