1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 module("luci.statistics.rrdtool.definitions.processes", package.seeall)
6 function rrdargs( graph, plugin, plugin_instance, dtype )
10 title = "%H: Processes",
11 vlabel = "Processes/s",
15 "sleeping", "running", "paging",
16 "blocked", "stopped", "zombies"
21 ps_state_sleeping = { color = "0000ff", title = "Sleeping" },
22 ps_state_running = { color = "008000", title = "Running" },
23 ps_state_paging = { color = "ffff00", title = "Paging" },
24 ps_state_blocked = { color = "ff5000", title = "Blocked" },
25 ps_state_stopped = { color = "555555", title = "Stopped" },
26 ps_state_zombies = { color = "ff0000", title = "Zombies" }
32 title = "%H: CPU time used by %pi",
36 ps_cputime = { "syst", "user" }
56 title = "%H: Threads and processes belonging to %pi",
61 ps_count = { "threads", "processes" }
65 ps_count__threads = { color = "00ff00", title = "Threads" },
66 ps_count__processes = { color = "0000bb", title = "Processes" }
72 title = "%H: Page faults in %pi",
73 vlabel = "Page faults",
77 ps_pagefaults = { "minflt", "majflt" }
81 ps_pagefaults__minflt = { color = "0000ff", title = "Minor" },
82 ps_pagefaults__majflt = { color = "ff0000", title = "Major" }
88 title = "%H: Resident segment size (RSS) of %pi",
91 number_format = "%5.1lf%sB",
96 ps_rss = { color = "0000ff", title = "Resident segment" }
102 title = "%H: Virtual memory size (VSZ) of %pi",
105 number_format = "%5.1lf%sB",
110 ps_vm = { color = "0000ff", title = "Virtual memory" }