From: Sukanto Ghosh Subject: Re: Scheduling of VCPUs and allocation of Guest Physical Memory Date: Fri, 06 Jun 2008 19:52:50 +0530 Message-ID: <4849483A.3030709@cse.iitb.ac.in> References: <484795C3.8030603@cse.iitb.ac.in> <4847E205.4060605@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from smtp1.iitb.ac.in ([203.78.217.177]:44029 "HELO smtp1.iitb.ac.in" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756184AbYFFOT5 (ORCPT ); Fri, 6 Jun 2008 10:19:57 -0400 Received: from [10.105.41.67] (unknown [10.105.41.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.iitb.ac.in (Postfix) with ESMTP id 540D9138E5 for ; Fri, 6 Jun 2008 19:49:36 +0530 (IST) In-Reply-To: <4847E205.4060605@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: Anthony Liguori wrote: > Sukanto Ghosh wrote: >> Hi all, >> >> I have two questions regarding KVM: >> >> i) Is a VCPU scheduled like a normal Linux process > > A normal process. > >> or there is some mechanism by which performance guarantees can be >> provided to the VCPUs ? > > FWIW, there are various mechanisms to do scheduler tuning in Linux. > cpusets and cgroups both provide mechanisms to ensure "performance > guarantees". are any of these mechanisms currently being used in kvm ? >> ii) Who does the allocation of host physical memory to the guest, is >> it KVM module or the associated QEmu process ? > > The QEMU process allocates the memory via malloc(). Doesn't the QEMU process and the guest have different address-spaces ? So, how can it malloc for the guest ? I thought the QEMU process requests for the memory allocation to the kvm module via the /dev/kvm device node. Thanks and regards Sukanto