Bug 919375
| Summary: | [RFE] virsh schedinfo should support multiple --set parameters | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Wayne Sun <gsun> |
| Component: | libvirt | Assignee: | Martin Kletzander <mkletzan> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 | CC: | acathrow, bili, cwei, dallan, dyuan, jiahu, jmiao, mzhan |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-1.0.5-1.el7 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 919372 | Environment: | |
| Last Closed: | 2014-06-13 12:21:56 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 919372 | ||
| Bug Blocks: | |||
|
Description
Wayne Sun
2013-03-08 09:42:11 UTC
Patch proposed upstream: https://www.redhat.com/archives/libvir-list/2013-March/msg00739.html Moving to POST:
commit e7cd2844ca2b0d716a520667eff286713963e2ec
Author: Martin Kletzander <mkletzan>
Date: Fri Mar 15 14:42:42 2013 +0100
Allow multiple parameters for schedinfo
Hi Martin Kletzander, There is a new issue during executing schedinfo command, please see below information, I don't know whether this issue is caused by your fix or another new. Please help on it. Version: libvirt-1.0.5-1.el7.x86_64 qemu-kvm-1.4.0-4.el7.x86_64 kernel-3.9.0-0.55.el7.x86_64 [root@hujianweitest ~]# virsh schedinfo rhel7 Scheduler : posix cpu_shares : 1024 vcpu_period : 100000 vcpu_quota : -1 emulator_period: 100000 emulator_quota : -1 [root@hujianweitest ~]# [root@hujianweitest ~]# virsh schedinfo rhel7 vcpu_period=200000 Scheduler : posix error: Unable to find vcpu cgroup for rhel7(vcpu: 0): No such file or directory [root@hujianweitest ~]# virsh schedinfo rhel7 vcpu_period=200 Scheduler : posix error: invalid argument: value of 'vcpu_period' is out of range [1000, 1000000] [root@hujianweitest ~]# virsh schedinfo rhel7 vcpu_period=1000 Scheduler : posix error: Unable to find vcpu cgroup for rhel7(vcpu: 0): No such file or directory [root@hujianweitest ~]# virsh schedinfo rhel7 emulator_period=200000 Scheduler : posix error: Unable to find emulator cgroup for rhel7: No such file or directory [root@hujianweitest ~]# virsh schedinfo rhel7 emulator_quota=-1 Scheduler : posix error: Unable to find emulator cgroup for rhel7: No such file or directory [root@hujianweitest ~]# virsh schedinfo rhel7 Scheduler : posix cpu_shares : 1024 vcpu_period : 100000 vcpu_quota : -1 emulator_period: 100000 emulator_quota : -1 BR, Jianwei Hi, Updated some results, according to reproduced steps. [root@hujianweitest ~]# virsh schedinfo rhel7 Scheduler : posix cpu_shares : 1024 vcpu_period : 100000 vcpu_quota : -1 emulator_period: 100000 emulator_quota : -1 [root@hujianweitest ~]# virsh schedinfo rhel7 vcpu_period=100000 emulator_period=1000000 emulator_quota=-1 Scheduler : posix error: Unable to find vcpu cgroup for rhel7(vcpu: 0): No such file or directory [root@hujianweitest ~]# virsh schedinfo rhel7 vcpu_quota=-1 vcpu_period=100000 emulator_period=1000000 emulator_quota=-1 Scheduler : posix error: Unable to find vcpu cgroup for rhel7(vcpu: 0): No such file or directory [root@hujianweitest ~]# BR, Jianwei I can not reproduce it on libvirt-1.1.1-12.el7.x86_64. Version: libvirt-1.1.1-12.el7.x86_64 qemu-kvm-1.5.3-19.el7.x86_64 kernel-3.10.0-51.el7.x86_64 1. Check multiple --set parameters [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 Scheduler : posix cpu_shares : 1024 vcpu_period : 1000 vcpu_quota : -1 emulator_period: 200000 emulator_quota : -1 [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 vcpu_period=100000 emulator_period=1000000 emulator_quota=-1 Scheduler : posix cpu_shares : 1024 vcpu_period : 100000 vcpu_quota : -1 emulator_period: 1000000 emulator_quota : -1 [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 Scheduler : posix cpu_shares : 1024 vcpu_period : 100000 vcpu_quota : -1 emulator_period: 1000000 emulator_quota : -1 [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 vcpu_period=100000 emulator_period=1000000 emulator_quota=2000 vcpu_quota=1000 cpu_shares=2000 Scheduler : posix cpu_shares : 2000 vcpu_period : 100000 vcpu_quota : 1000 emulator_period: 1000000 emulator_quota : 2000 [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 Scheduler : posix cpu_shares : 2000 vcpu_period : 100000 vcpu_quota : 1000 emulator_period: 1000000 emulator_quota : 2000 2. Also, check the single parameter: [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 vcpu_period=200000 Scheduler : posix cpu_shares : 1024 vcpu_period : 200000 vcpu_quota : -1 emulator_period: 1000000 emulator_quota : -1 [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 vcpu_period=200 Scheduler : posix error: invalid argument: value of 'vcpu_period' is out of range [1000, 1000000] [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 vcpu_period=1000 Scheduler : posix cpu_shares : 1024 vcpu_period : 1000 vcpu_quota : -1 emulator_period: 1000000 emulator_quota : -1 [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 emulator_period=200000 Scheduler : posix cpu_shares : 1024 vcpu_period : 1000 vcpu_quota : -1 emulator_period: 200000 emulator_quota : -1 [root@ibm-x3650m3-07 ~]# virsh schedinfo rhel7 emulator_quota=-1 Scheduler : posix cpu_shares : 1024 vcpu_period : 1000 vcpu_quota : -1 emulator_period: 200000 emulator_quota : -1 We can get expected results. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |