From mboxrd@z Thu Jan 1 00:00:00 1970 From: " =?UTF-8?Q?B=C5=99e=C5=A5a?= =?UTF-8?Q?=20Vomo=C4=8Dil?=" Subject: dividing host CPU performance Date: Fri, 05 Dec 2008 09:31:50 +0100 Message-ID: <200812050931.28873@centrum.cz> References: <200812050917.10259@centrum.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit To: Return-path: Received: from mail1003.centrum.cz ([90.183.38.133]:53980 "EHLO mail1003.centrum.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751354AbYLEIcB (ORCPT ); Fri, 5 Dec 2008 03:32:01 -0500 Received: by mail1003.centrum.cz id S1610710551AbYLEIbu (ORCPT ); Fri, 5 Dec 2008 09:31:50 +0100 In-Reply-To: <200812050917.10259@centrum.cz> Sender: kvm-owner@vger.kernel.org List-ID: 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= 2nd VM - cpuset.cpus = "0-3", cpuset.mems="0", cpu.shares="1024", tasks= 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