From mboxrd@z Thu Jan 1 00:00:00 1970 From: breta Subject: Re: dividing host CPU performance Date: Tue, 16 Dec 2008 01:14:36 +0100 Message-ID: <4946F2EC.1040900@centrum.cz> References: <200812050917.10259@centrum.cz> <200812050931.28873@centrum.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from fg-out-1718.google.com ([72.14.220.153]:15706 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754127AbYLPAOp (ORCPT ); Mon, 15 Dec 2008 19:14:45 -0500 Received: by fg-out-1718.google.com with SMTP id 19so1283252fgg.17 for ; Mon, 15 Dec 2008 16:14:43 -0800 (PST) In-Reply-To: <200812050931.28873@centrum.cz> Sender: kvm-owner@vger.kernel.org List-ID: B=C5=99e=C5=A5a Vomo=C4=8Dil napsal(a): > Hi, > I want to divide host CPU performance between 2 VM in specified ratio= =2E I use Cgroups system and cpu.shares files, but I'm not much success= ful in doing that. > > My scenario: > - 2 VM - Ubuntu server 8.10 with 4 VCPU, QCOW2 disk and about 300MB m= emory running on host CPU with 4 cores > - in Cgroups:=20 > 1st VM - cpuset.cpus =3D "0-3", cpuset.mems=3D"0", cpu.shares=3D"3072= ", tasks=3D > 2nd VM - cpuset.cpus =3D "0-3", cpuset.mems=3D"0", cpu.shares=3D"1024= ", tasks=3D > > 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 se= ems like an capable solution, but for me it doesn't work (it is also po= ssible, that my scenario miss some necessary setting). > > Thanks in advance for any constructive advices > Breta > > > > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > =20 Some time passed without any solution similar to the complex cgroups (thanks for all replies)... could you please advise me, which mail conference would be better to ask for that? It is very important for me to solve this issue... Thanks b.