]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: update man page for cpu_shares parameter
authorDaniel Veillard <veillard@redhat.com>
Wed, 28 Sep 2011 01:59:43 +0000 (09:59 +0800)
committerDaniel Veillard <veillard@redhat.com>
Thu, 29 Sep 2011 00:48:03 +0000 (08:48 +0800)
commit0c92e1428f1f2a87933b1f5ef41f7fecaad696d2
tree9a0bcec85a4e5419d5e5e15ce013ec6afa54cf6f
parentb1b5b51ae83c049cfbaa98651721416a5d8fc5c6
virsh: update man page for cpu_shares parameter

The man page suggest that the cpu_shares parameter of schedinfo
allows values 0-262144, but the kernel remaps values 0 and 1 to
the minimum 2, just document that behaviour:

[root@test ~]# cat /cgroup/cpu/libvirt/qemu/cpu.shares
1024
[root@test ~]# echo 0 > /cgroup/cpu/libvirt/qemu/cpu.shares
[root@test ~]# cat /cgroup/cpu/libvirt/qemu/cpu.shares
2
[root@test ~]# echo 1 > /cgroup/cpu/libvirt/qemu/cpu.shares
[root@test ~]# cat /cgroup/cpu/libvirt/qemu/cpu.shares
2
[root@test ~]#

* tools/virsh.pod: update description of the cpu_shares parameter
  to indicate the values 0 and 1 are automatically changed by the
  kernel to minimal value 2
tools/virsh.pod