From: Sukanto Ghosh <sukanto@cse.iitb.ac.in>
To: kvm@vger.kernel.org
Subject: Re: Scheduling of VCPUs and allocation of Guest Physical Memory
Date: Fri, 06 Jun 2008 19:52:50 +0530 [thread overview]
Message-ID: <4849483A.3030709@cse.iitb.ac.in> (raw)
In-Reply-To: <4847E205.4060605@codemonkey.ws>
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
next prev parent reply other threads:[~2008-06-06 14:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-05 7:29 Scheduling of VCPUs and allocation of Guest Physical Memory Sukanto Ghosh
2008-06-05 12:54 ` Anthony Liguori
2008-06-06 14:22 ` Sukanto Ghosh [this message]
2008-06-06 14:40 ` Anthony Liguori
2008-06-09 11:10 ` Sukanto Ghosh
2008-06-09 16:19 ` Avi Kivity
2008-06-16 14:23 ` Sukanto Ghosh
2008-06-18 14:12 ` Avi Kivity
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=4849483A.3030709@cse.iitb.ac.in \
--to=sukanto@cse.iitb.ac.in \
--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