cgroups 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # pcp-htop(1) configuration file - see pcp-htop(5)
  3. #
  4. [cgroups]
  5. heading = CGroups
  6. caption = Control Groups
  7. default = true
  8. user_cpu.heading = UTIME
  9. user_cpu.caption = User CPU Time
  10. user_cpu.metric = 1000 * rate(cgroup.cpu.stat.user)
  11. user_cpu.width = 6
  12. system_cpu.heading = STIME
  13. system_cpu.caption = Kernel CPU Time
  14. system_cpu.metric = 1000 * rate(cgroup.cpu.stat.system)
  15. system_cpu.width = 6
  16. cpu_usage.heading = CPU%
  17. cpu_usage.caption = CPU Utilization
  18. cpu_usage.metric = 100 * (rate(cgroup.cpu.stat.usage) / hinv.ncpu)
  19. cpu_usage.format = percent
  20. cpu_psi.heading = CPU-PSI
  21. cpu_psi.caption = CPU Pressure Stall Information
  22. cpu_psi.metric = 1000 * rate(cgroup.pressure.cpu.some.total)
  23. cpu_psi.width = 7
  24. mem_psi.heading = MEM-PSI
  25. mem_psi.caption = Memory Pressure Stall Information
  26. mem_psi.metric = 1000 * rate(cgroup.pressure.memory.some.total)
  27. mem_psi.width = 7
  28. io_psi.heading = I/O-PSI
  29. io_psi.caption = I/O Pressure Stall Information
  30. io_psi.metric = 1000 * rate(cgroup.pressure.io.some.total)
  31. io_psi.width = 7
  32. name.heading = Control group
  33. name.caption = Control group name
  34. name.width = -64
  35. name.metric = cgroup.cpu.stat.system
  36. name.instances = true
  37. name.format = cgroup