Connect to URI given. The default is to connect to the Xen
hypervisor.
+ To connect to QEMU/KVM you would normally do *-c qemu:///system*
+
+ To connect to libvirtd on a remote machine you would normally do *-c
+ xen://host/*
+
+ Full details on connection URIs is available at
+ <http://libvirt.org/uri.html>
+
-d delay
Set the delay between screen updates in seconds. The default is 3.0
seconds. You can change this while virt-top is running by pressing
-o sort
Set the sort order to one of: cpu (sort by %CPU used), mem (sort by
- memory used), time (sort by total time), id (sort by domain ID),
+ total memory), time (sort by total time), id (sort by domain ID),
name (sort by domain name), netrx (sort by network received bytes),
nettx (sort by network transmitted bytes), blockrdrq (sort by block
device [disk] read requests), blockwrrq (sort by block device [disk]
the program was compiled (see *README* file in the source
distribution for details).
+ To save space you can compress your CSV files (if your shell
+ supports this feature, eg. *bash*):
+
+ virt-top --csv >(gzip -9 > output.csv.gz)
+
+ You can use a similar trick to split the CSV file up. In this
+ example the CSV file is split every 1000 lines into files called
+ *output.csv.00*, *output.csv.01* etc.
+
+ virt-top --csv >(split -d -l 1000 - output.csv.)
+
--no-csv-cpu
Disable domain CPU stats in CSV output.
Script mode. There will be no user interface. This is most useful
when used together with the *--csv* and *-n* options.
+ --end-time time
+ The program will exit at the *time* given.
+
+ The time may be given in one of the following formats:
+
+ *YYYY-MM-DD HH:MM:SS*
+ End time is the date and time given.
+
+ *HH:MM:SS*
+ End time is the time given, today.
+
+ *+HH:MM:SS*
+ End time is HH hours, MM minutes, SS seconds in the future
+ (counted from the moment that program starts).
+
+ *+secs*
+ End time is *secs* seconds in the future.
+
+ For example to run the program for 3 minutes you could do:
+
+ virt-top --end-time +00:03:00
+
+ or:
+
+ virt-top --end-time +180
+
+ Not every version of virt-top supports this option - it depends how
+ the program was compiled (see *README* file in the source
+ distribution for details).
+
--help
Display usage summary.
+ --version
+ Display version number and exit.
+
KEYS
Note that keys are case sensitive. For example use upper-case *P* (shift
P) to sort by %CPU. *^* before a key means a Ctrl key, so *^L* is Ctrl
*P* Sort by %CPU.
- *M* Sort by memory.
+ *M* Sort by total memory. Note that this shows the total memory
+ allocated to the guest, not the memory being used.
*T* Sort by total time.
script *true|false*
Sets script mode.
+ end-time *time*
+ Set the time at which the program exits. See above for the time
+ formats supported.
+
overwrite-init-file *false*
If set to *false* then the *W* key will not overwrite the init file.
this behaviour may change in the future.
SEE ALSO
- top(1), virsh(1), xm(1), xentop(1), <http://www.libvirt.org/>,
- <http://et.redhat.com/~rjones/>, <http://caml.inria.fr/>
+ top(1), virsh(1), <http://www.libvirt.org/ocaml/>,
+ <http://www.libvirt.org/>, <http://people.redhat.com/~rjones/>,
+ <http://caml.inria.fr/>
AUTHORS
Richard W.M. Jones <rjones @ redhat . com>
COPYRIGHT
- (C) Copyright 2007 Red Hat Inc., Richard W.M. Jones http://libvirt.org/
+ (C) Copyright 2007-2011 Red Hat Inc., Richard W.M. Jones
+ http://libvirt.org/
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
submit with your bug report.
3. Get version of virt-top and version of libvirt.
- In virt-top, press the *h* (help) key, and write down the version of
- virt-top and the version of libvirt. They are shown in the first
- line.
+ Use:
+
+ virt-top --version
+
+ If you can get the precise version of libvirt you are using then
+ that too is helpful.
4. Submit a bug report.
Go to <https://bugzilla.redhat.com/> and enter a new bug. Please