mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
migration/dirtyrate: Introduce domdirtyrate-calc virsh api
Introduce domdirtyrate-calc virsh api to start calculating domain's memory dirty rate: # virsh domdirtyrate-calc <domain> [--seconds <sec>] Signed-off-by: Hao Wang <wanghao232@huawei.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
committed by
Michal Privoznik
parent
fbe99823e2
commit
a2ae2dad06
@@ -1704,6 +1704,23 @@ states other than "ok" or "error" the command also prints number of
|
||||
seconds elapsed since the control interface entered its current state.
|
||||
|
||||
|
||||
domdirtyrate-calc
|
||||
-----------------
|
||||
|
||||
**Syntax:**
|
||||
|
||||
::
|
||||
|
||||
domdirtyrate-calc <domain> [--seconds <sec>]
|
||||
|
||||
Calculate an active domain's memory dirty rate which may be expected by
|
||||
user in order to decide whether it's proper to be migrated out or not.
|
||||
The ``seconds`` parameter can be used to calculate dirty rate in a
|
||||
specific time which allows 60s at most now and would be default to 1s
|
||||
if missing. The calculated dirty rate information is available by calling
|
||||
'domstats --dirtyrate'.
|
||||
|
||||
|
||||
domdisplay
|
||||
----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user