logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

lxc-top - monitor container statistics

Description

lxc-top  displays container statistics. The output is updated every delay seconds, and is ordered accord‐
       ing to the sortby value given. lxc-top will display as many containers as can fit in your terminal. Press
       'q' to quit. Press one of the sort key letters to sort by that statistic. Pressing a sort  key  letter  a
       second time reverses the sort order.

Example

       lxc-top --delay 1 --sort m
              Display containers, updating every second, sorted by memory use.

Name

       lxc-top - monitor container statistics

Notes

       For performance reasons the kernel does not account kernel memory use unless a  kernel  memory  limit  is
       set.  If  a limit is not set, lxc-top will display kernel memory use as 0. If no containers are being ac‐
       counted, the KMem column will not be displayed. A limit can be set by specifying

             lxc.cgroup.memory.kmem.limit_in_bytes = number

       in your container configuration file, see lxc.conf(5).

Options

-d,--delaydelay
              Amount of time in seconds to delay between screen updates.  The default is 3 seconds.

       -s,--sortsortby
              Sort the containers by name, cpu use, or memory use. The sortby argument should be one of the let‐
              ters n,c,b,m,k to sort by name, cpu use, block I/O, memory, or kernel memory use respectively. The
              default is 'n'.

       -r,--reverse
              Reverse  the default sort order. By default, names sort in ascending alphabetical order and values
              sort in descending amounts (ie. largest value first).

See Also

lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc-stop(1),  lxc-execute(1),  lxc-con‐sole(1),  lxc-monitor(1),  lxc-wait(1),  lxc-cgroup(1),  lxc-ls(1),  lxc-info(1),  lxc-freeze(1), lxc-un‐freeze(1), lxc-attach(1), lxc.conf(5)

                                                   2025-05-10                                         lxc-top(1)

Synopsis

lxc-top [--help] [--delay delay] [--sort sortby] [--reverse]

See Also