Return to index

system functions

CPUInfo = cpu_info([core_number|options])

top

Returns CPU information. Optional core number or options map(.core 0, .details true)


[]DiskIOStats = dio([device_name|options])

top

Returns disk I/O throughput statistics. Options: map(.device "sda") or simple string for device name.


[]map = disk_usage([options])

top

Returns filesystem usage information. Options: map(.exclude_patterns ["tmpfs", "proc"])


map = iodiff(snapshot1,snapshot2,duration)

top

Calculates throughput rates between two snapshots.


MemoryInfo = mem_info()

top

Returns detailed memory information, if available.


[]map = mount_info([options])

top

Returns mount point information. Options: map(.filesystem "ext4")


[]map = net_devices([options])

top

Returns network device information. Options: map(.all true)


[]NetworkIOStats = nio([interface_name|options])

top

Returns network I/O throughput statistics. Options: map(.interface "eth0", .include_errors true) or simple string for interface name.


ProcessInfo = ps_info(pid[,options])

top

Returns detailed process information. Options: map(.include_environ false)


ProcessMap = ps_map([pid])

top

Returns process relationships. Optional starting PID, defaults to root.


ProcessTree = ps_tree([pid])

top

Returns process hierarchy. Optional starting PID, defaults to root.


ResourceUsage = resource_usage(pid)

top

Returns resource usage for specific process.


map = sys_load()

top

Returns system load averages (1, 5, 15 minute).


SystemResources = sys_resources()

top

Returns overall system resource usage.


[]ProcessInfo = top_cpu(int)

top

Returns top N CPU consumers (processes). Use -1 for ALL processes.


[]DiskIOStats = top_dio(int)

top

Returns top N disk I/O consumers (devices). Use -1 for ALL devices.


[]ProcessInfo = top_mem(int)

top

Returns top N memory consumers (processes). Use -1 for ALL processes.


[]NetworkIOStats = top_nio(int)

top

Returns top N network consumers (interfaces). Use -1 for ALL interfaces.