Process and system stats
#
cpu_time
| : Rlimit.t | ; | |||
#
file_size
| : Rlimit.t | ; | |||
#
data_size
| : Rlimit.t | ; | |||
#
stack_size
| : Rlimit.t | ; | |||
#
core_file_size
| : Rlimit.t | ; | |||
#
resident_set
| : Rlimit.t | ; | |||
#
processes
| : Rlimit.t | ; | |||
#
open_files
| : Rlimit.t | ; | |||
#
locked_memory
| : Rlimit.t | ; | |||
#
address_space
| : Rlimit.t | ; | |||
#
file_locks
| : Rlimit.t | ; | |||
#
pending_signals
| : Rlimit.t | ; | |||
#
msgqueue_size
| : Rlimit.t | ; | |||
#
nice_priority
| : Rlimit.t | ; | |||
#
realtime_priority
| : Rlimit.t | ; |
#
comm
| : string | ; | (* | The filename of the executable | *) |
#
state
| : char | ; | (* | One character from the string "RSDZTW" | *) |
#
ppid
| : Core.Std.Pid.t option | ; | (* | The PID of the parent. | *) |
#
pgrp
| : Core.Std.Pid.t option | ; | (* | The process group ID of the process. | *) |
#
session
| : int | ; | (* | The session ID of the process. | *) |
#
tty_nr
| : int | ; | (* | The tty the process uses. | *) |
#
tpgid
| : int | ; | (* | The process group ID of the process which currently owns the tty... | *) |
#
flags
| : bigint | ; | (* | The kernel flags word of the process. | *) |
#
minflt
| : bigint | ; | (* | The number of minor faults the process has made which have not required loading a memory page from disk. | *) |
#
cminflt
| : bigint | ; | (* | The number of minor faults that the process’s waited-for children have made. | *) |
#
majflt
| : bigint | ; | (* | The number of major faults the process has made which have required loading a page from disk. | *) |
#
cmajflt
| : bigint | ; | (* | The number of major faults that the process’s waited-for children have made. | *) |
#
utime
| : bigint | ; | (* | The number of jiffies that this process has been scheduled in user mode. | *) |
#
stime
| : bigint | ; | (* | The number of jiffies that this process has been scheduled in kernel mode. | *) |
#
cutime
| : bigint | ; | (* | The number of jiffies that this process’s waited-for children have been scheduled in user mode. | *) |
#
cstime
| : bigint | ; | (* | The number of jiffies that this process’s waited-for children have been scheduled in kernel mode. | *) |
#
priority
| : bigint | ; | (* | The standard nice value, plus fifteen. The value is never negative in the kernel. | *) |
#
nice
| : bigint | ; | (* | The nice value ranges from 19 to -19 | *) |
#
unused
| : bigint | ; | (* | placeholder for removed field | *) |
#
itrealvalue
| : bigint | ; | (* | The time in jiffies before the next SIGALRM is sent to the process due to an interval timer. | *) |
#
starttime
| : bigint | ; | (* | The time in jiffies the process started after system boot. | *) |
#
vsize
| : bigint | ; | (* | Virtual memory size in bytes. | *) |
#
rss
| : bigint | ; | (* | Resident Set Size: number of pages the process has in real memory. | *) |
#
rlim
| : bigint | ; | (* | Current limit in bytes on the rss of the process. | *) |
#
startcode
| : bigint | ; | (* | The address above which program text can run. | *) |
#
endcode
| : bigint | ; | (* | The address below which program text can run. | *) |
#
startstack
| : bigint | ; | (* | The address of the start of the stack. | *) |
#
kstkesp
| : bigint | ; | (* | The current value of esp (stack pointer) | *) |
#
kstkeip
| : bigint | ; | (* | The current value of eip (instruction pointer) | *) |
#
signal
| : bigint | ; | (* | The bitmap of pending signals. | *) |
#
blocked
| : bigint | ; | (* | The bitmap of blocked signals. | *) |
#
sigignore
| : bigint | ; | (* | The bitmap of ignored signals. | *) |
#
sigcatch
| : bigint | ; | (* | The bitmap of caught signals. | *) |
#
wchan
| : bigint | ; | (* | This is the "channel" in which the process is waiting. Address of a system call. | *) |
#
nswap
| : bigint | ; | (* | (no longer maintained) | *) |
#
cnswap
| : bigint | ; | (* | (no longer maintained) | *) |
#
exit_signal
| : int | ; | (* | Signal sent to parent when we die. | *) |
#
processor
| : int | ; | (* | CPU number last executed on. | *) |
#
rt_priority
| : bigint | ; | (* | Real-time scheduling priority. | *) |
#
policy
| : bigint | ; | (* | Scheduling policy | *) |
#
pid
| : Core.Std.Pid.t | ; | (* | Process ID | *) |
#
cmdline
| : string | ; | (* | Command-line (not reliable). | *) |
#
cwd
| : string option | ; | (* | Symlink to working directory. | *) |
#
environ
| : string option | ; | (* | Process environment. | *) |
#
exe
| : string option | ; | (* | Symlink to executed command. | *) |
#
root
| : string option | ; | (* | Per-process root (e.g. chroot) | *) |
#
limits
| : Limits.t option | ; | (* | Per-process rlimit settings | *) |
#
stat
| : Stat.t | ; | (* | Status information. | *) |
#
statm
| : Statm.t | ; | (* | Memory status information. | *) |
#
status
| : Status.t | ; | (* | Some more assorted status information. | *) |
#
task_stats
| : Stat.t Core.Std.Pid.Map.t | ; | (* | Status information for each task (thread) | *) |
#
top_command
| : string | ; | (* | Show what top would show for COMMAND | *) |
#
fds
| : Fd.t list option | ; | (* | File descriptors | *) |
#
oom_adj
| : int | ; | (* | OOM killer niceness range: -17 to +15 | *) |
#
oom_score
| : int | ; | (* | OOM "sacrifice" priority | *) |
#
mem_total
| : bigint | ; | |||
#
mem_free
| : bigint | ; | |||
#
buffers
| : bigint | ; | |||
#
cached
| : bigint | ; | |||
#
swap_cached
| : bigint | ; | |||
#
active
| : bigint | ; | |||
#
inactive
| : bigint | ; | |||
#
swap_total
| : bigint | ; | |||
#
swap_free
| : bigint | ; | |||
#
dirty
| : bigint | ; | |||
#
writeback
| : bigint | ; | |||
#
anon_pages
| : bigint | ; | |||
#
mapped
| : bigint | ; | |||
#
slab
| : bigint | ; | |||
#
page_tables
| : bigint | ; | |||
#
nfs_unstable
| : bigint | ; | |||
#
bounce
| : bigint | ; | |||
#
commit_limit
| : bigint | ; | |||
#
committed_as
| : bigint | ; | |||
#
vmalloc_total
| : bigint | ; | |||
#
vmalloc_used
| : bigint | ; | |||
#
vmalloc_chunk
| : bigint | ; |
t
corresponds to the values in /proc/meminfo. All values in bytes.
jiffies_per_second_exn
. A jiffy "is one tick of the system timer interrupt. It is
not an absolute time interval unit, since its duration depends on the clock interrupt
frequency of the particular hardware platform."
Further reading: https://secure.wikimedia.org/wikipedia/en/wiki/Jiffy_(time)
#
iface
| : string | ; | |||
#
rx_bytes
| : int | ; | |||
#
rx_packets
| : int | ; | |||
#
rx_errs
| : int | ; | |||
#
rx_drop
| : int | ; | |||
#
rx_fifo
| : int | ; | |||
#
rx_frame
| : int | ; | |||
#
rx_compressed
| : bool | ; | |||
#
rx_multicast
| : bool | ; | |||
#
tx_bytes
| : int | ; | |||
#
tx_packets
| : int | ; | |||
#
tx_errs
| : int | ; | |||
#
tx_drop
| : int | ; | |||
#
tx_fifo
| : int | ; | |||
#
tx_colls
| : int | ; | |||
#
tx_carrier
| : int | ; | |||
#
tx_compressed
| : bool | ; |
/proc/net/tcp, or what netstat or lsof -i parses.
#
sl
| : int | ; | |||
#
local_address
| : Core.Std.Unix.Inet_addr.t | ; | |||
#
local_port
| : Extended_unix.Inet_port.t | ; | |||
#
remote_address
| : Core.Std.Unix.Inet_addr.t | ; | |||
#
remote_port
| : Extended_unix.Inet_port.t option | ; | |||
#
state
| : Tcp_state.t | ; | |||
#
tx_queue
| : int | ; | |||
#
rx_queue
| : int | ; | |||
#
tr
| : int | ; | |||
#
tm_when
| : int | ; | |||
#
retrnsmt
| : int | ; | |||
#
uid
| : int | ; | |||
#
timeout
| : int | ; | |||
#
inode
| : Process.Inode.t | ; | |||
#
rest
| : string | ; |