<div dir="ltr">Very interesting!<div>I did this configuration and I can see my core working just in 25%.</div><div>I would like to try the same with memory.....I am looking for that.</div><div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-02 13:58 GMT-02:00 Ján Tomko <span dir="ltr"><<a href="mailto:jtomko@redhat.com" target="_blank">jtomko@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Nov 02, 2017 at 03:03:56PM +0200, Volo M. wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi techs,<br>
<br>
Could you please explain or refer me to documentation where I could find a<br>
description of global_quota schedinfo option. Someone told me that it could<br>
mean a cpu limitation in percents like:<br>
global_quota   : 25000 (does it mean cpu limit % set to 25  ?)<br>
<br>
</blockquote>
<br>
The _quota values are relative to the _period, both in milliseconds and refer<br>
to the cumulative CPU time available to all the processes/threads in a group.<br>
<br>
See the documentation in the kernel:<br>
<a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/scheduler/sched-bwc.txt" rel="noreferrer" target="_blank">https://git.kernel.org/pub/scm<wbr>/linux/kernel/git/torvalds/lin<wbr>ux.git/tree/Documentation/sche<wbr>duler/sched-bwc.txt</a><br>
<br>
So with global_period being set to 100000, a value of 25000 would mean<br>
that all the threads of the virtual machine would be limited to use at<br>
most 25 % of 1 CPU.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is it true?<br>
What other parameters mean in below output?<br>
I didn't find any related documentation at <a href="http://libvirt.org" rel="noreferrer" target="_blank">libvirt.org</a>.<br>
Could you help me to describe me or refer to some description what below<br>
schedinfo options mean? Thanks.<br>
<br>
</blockquote>
<br>
[...]<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[root@cpkvm ~]# virsh schedinfo 3 --set global_quota=25<br>
<br>
Scheduler      : posix<br>
<br>
error: invalid argument: value of 'global_quota' is out of range [1000,<br>
18446744073709551]<br>
<br>
[1000, 18446744073709551]  - what this range mean?<br>
<br>
</blockquote>
<br>
These are the minimum and maximum values that were accepted by the<br>
kernel at the time when this error message was implemented in libvirt.<br>
<br>
Jan<br>
<br>______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/libvirt-users</a><br></blockquote></div><br></div>