From: " Břeťa Vomočil" <only_one_mystery@centrum.cz>
To: <kvm@vger.kernel.org>
Subject: dividing host CPU performance
Date: Fri, 05 Dec 2008 09:31:50 +0100 [thread overview]
Message-ID: <200812050931.28873@centrum.cz> (raw)
In-Reply-To: <200812050917.10259@centrum.cz>
Hi,
I want to divide host CPU performance between 2 VM in specified ratio. I use Cgroups system and cpu.shares files, but I'm not much successful in doing that.
My scenario:
- 2 VM - Ubuntu server 8.10 with 4 VCPU, QCOW2 disk and about 300MB memory running on host CPU with 4 cores
- in Cgroups:
1st VM - cpuset.cpus = "0-3", cpuset.mems="0", cpu.shares="3072", tasks=<appropriate_VM_PID>
2nd VM - cpuset.cpus = "0-3", cpuset.mems="0", cpu.shares="1024", tasks=<appropriate_VM_PID>
Actual result:
Performance isn't divided 3:1 (in favor of the first VM) but 1:1.
I'm looking for an approach which gives me abilities like the Xen has with its scheduling parameters "cap" and "weight". I would appreciate any help how to solve this issue - I don't insist on Cgroups, but it seems like an capable solution, but for me it doesn't work (it is also possible, that my scenario miss some necessary setting).
Thanks in advance for any constructive advices
Breta
next parent reply other threads:[~2008-12-05 8:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200812050917.10259@centrum.cz>
2008-12-05 8:31 ` Břeťa Vomočil [this message]
[not found] ` <ac07bcaf0812050135p129c8a72pacf1d760adef003e@mail.gmail.com>
2008-12-05 10:11 ` dividing host CPU performance Břeťa Vomočil
2008-12-05 18:55 ` Thomas Besser
2008-12-16 0:14 ` breta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812050931.28873@centrum.cz \
--to=only_one_mystery@centrum.cz \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox