* [Query] VM CPU scheduling
@ 2020-05-03 11:34 Ramesh B
2020-05-04 13:52 ` Stefan Hajnoczi
2020-05-04 13:53 ` Lukas Straub
0 siblings, 2 replies; 3+ messages in thread
From: Ramesh B @ 2020-05-03 11:34 UTC (permalink / raw)
To: qemu-discuss; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 378 bytes --]
Hi All,
I started recently using QEMU for OS virtualization.
Want to know/understand about scheduling.
Environment:
Host OS: Ubuntu 18.4 + KVM enable
QEMU: 4.2
Workstation/Desktop: x86_64
Would like to understand,
1. How CPU scheduling works.
2. Tools/commands to monitor.
3. Tuning parameter/API
Could you please suggest good reference or books or pointers.
Thanks,
Babu
[-- Attachment #2: Type: text/html, Size: 624 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Query] VM CPU scheduling
2020-05-03 11:34 [Query] VM CPU scheduling Ramesh B
@ 2020-05-04 13:52 ` Stefan Hajnoczi
2020-05-04 13:53 ` Lukas Straub
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2020-05-04 13:52 UTC (permalink / raw)
To: Ramesh B; +Cc: qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 922 bytes --]
On Sun, May 03, 2020 at 05:04:10PM +0530, Ramesh B wrote:
> Hi All,
>
> I started recently using QEMU for OS virtualization.
> Want to know/understand about scheduling.
>
> Environment:
> Host OS: Ubuntu 18.4 + KVM enable
> QEMU: 4.2
> Workstation/Desktop: x86_64
>
> Would like to understand,
>
> 1. How CPU scheduling works.
> 2. Tools/commands to monitor.
> 3. Tuning parameter/API
>
> Could you please suggest good reference or books or pointers.
Each guest CPU (vCPU) is a QEMU thread. The host scheduler decides when
and where it runs.
You can various features that influence scheduling like cgroups, CPU
affinity, etc to control vCPU scheduling. But the main thing to
understand is that vCPUs are just threads running on the host Linux
scheduler. All the usual tools are at your disposal.
Libvirt also provides support for configuring CPU scheduling/resource
control.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Query] VM CPU scheduling
2020-05-03 11:34 [Query] VM CPU scheduling Ramesh B
2020-05-04 13:52 ` Stefan Hajnoczi
@ 2020-05-04 13:53 ` Lukas Straub
1 sibling, 0 replies; 3+ messages in thread
From: Lukas Straub @ 2020-05-04 13:53 UTC (permalink / raw)
To: Ramesh B; +Cc: qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]
On Sun, 3 May 2020 17:04:10 +0530
Ramesh B <rmsh.b4@gmail.com> wrote:
> Hi All,
>
> I started recently using QEMU for OS virtualization.
> Want to know/understand about scheduling.
>
> Environment:
> Host OS: Ubuntu 18.4 + KVM enable
> QEMU: 4.2
> Workstation/Desktop: x86_64
>
> Would like to understand,
>
> 1. How CPU scheduling works.
> 2. Tools/commands to monitor.
> 3. Tuning parameter/API
>
> Could you please suggest good reference or books or pointers.
>
> Thanks,
> Babu
Hi,
With qemu/KVM the VM just runs as a normal process under linux, so you can use all the tools and interfaces to manage processes for qemu as well.
Keywords: top, nice, cgroups, cpuset, numactl
Regards,
Lukas Straub
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-04 13:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-03 11:34 [Query] VM CPU scheduling Ramesh B
2020-05-04 13:52 ` Stefan Hajnoczi
2020-05-04 13:53 ` Lukas Straub
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).