Skip to content

dicer instance top

Lists the processes running in a running instance’s guest, as its guest agent reads them from the guest’s /proc. Kernel threads are left out; dicer-init and the agent are shown, since they run in the guest too.

PIDs are the guest’s, the ones a command run with dicer exec sees. State is the kernel’s code for the process: R running, S sleeping, D waiting on I/O, Z zombie, T stopped. CPUTime is the CPU time used since the process started, and RSS the guest memory it has resident.

The column names are also the fields of a --format template. --format json and yaml give each process’s record instead, with times and sizes as numbers.

Usage

$ dicer instance top NAME [flags]

Examples

$ dicer top web
$ dicer top web --format '{{.PID}}\t{{.Command}}'
$ dicer top web --format json

Flags

FlagDescription
-c, --columns stringsColumns of the table to display, comma-separated and in any case (default: all).
--format stringOutput format: table, json, yaml, or a Go template of the table’s columns, e.g. ‘{{.Name}}’. Default: table.
-q, --quietOnly display names, one a line.

Global flags

FlagDescription
-D, --debugTrace every call to the daemon on stderr (or set $DICER_DEBUG).
-r, --remote stringDaemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local).
--request-timeout durationGive up on a single call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded).