schedinfo

Displays scheduling information about a virtual server, and can modify the portion of CPU time that is assigned to it.

Syntax

Read syntax diagramSkip visual syntax diagram schedinfo <VS>
Read syntax diagramSkip visual syntax diagram --live --configcpu_shares = <number>
Where:
<number>
Specifies the CPU weight.
<VS>
Is the name, the ID, or the UUID of the virtual server.

Selected options

--live
Specifies the modification of the current CPU weight of the running virtual server.
--config
Specifies the modification of the virtual server's CPU weight after the next restart.

Usage

Modifying the virtual CPU weight

Examples

This example sets the CPU weight of the running virtual server vserv1 to 2048.
# virsh schedinfo vserv1 --live cpu_shares=2048
This example modifies the domain configuration-XML, which will be effective from the next restart.
# virsh schedinfo vserv1 --config cpu_shares=2048
This example displays scheduling information about the virtual server vserv1.
# virsh schedinfo vserv1
Scheduler      : posix
cpu_shares     : 1024
vcpu_period    : 100000
vcpu_quota     : -1
emulator_period: 100000
emulator_quota : -1