[PATCH 1/3] docs: Document that 'vcpu.delay' statistic is in nanoseconds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Assaf Admi <aadmi@xxxxxxxxxx>

Add nanoseconds units for vcpu.delay doc, as it's based on
'/proc/<pid>/task/<tid>/schedstat' (see 'qemuGetSchedstatDelay()').

'schedstat' is in nanoseconds, according to
https://docs.kernel.org/scheduler/sched-stats.html#proc-pid-schedstat.

Signed-off-by: aadmi <aadmi@xxxxxxxxxx>
Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 docs/manpages/virsh.rst | 2 +-
 src/libvirt-domain.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst
index bf0436621b..868b354b2f 100644
--- a/docs/manpages/virsh.rst
+++ b/docs/manpages/virsh.rst
@@ -2441,7 +2441,7 @@ When selecting the *--state* group the following fields are returned:
   no (may indicate the processor is idle or even disabled,
   depending on the architecture)
 * ``vcpu.<num>.delay`` - time the vCPU <num> thread was enqueued by the
-  host scheduler, but was waiting in the queue instead of running.
+  host scheduler, but was waiting in the queue instead of running (in nanoseconds).
   Exposed to the VM as a steal time.

 This group of statistics also reports additional hypervisor-originating per-vCPU
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index efccafc4d2..088e486b6b 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -12331,7 +12331,7 @@ virConnectGetDomainCapabilities(virConnectPtr conn,
  *     "vcpu.<num>.delay" - time the vCPU <num> thread was enqueued by the
  *                          host scheduler, but was waiting in the queue
  *                          instead of running. Exposed to the VM as a steal
- *                          time.
+ *                          time. (in nanoseconds)
  *
  *    This group of statistics also reports additional hypervisor-originating
  *    per-vCPU stats. The hypervisor-specific statistics in this group have the
-- 
2.48.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux