All of lore.kernel.org
 help / color / mirror / Atom feed
* Host/Guest SMP: Looking for answers
@ 2007-07-24 13:36 Peter Meier
       [not found] ` <c354edc90707240636m33417598qb541125784ffb55f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Meier @ 2007-07-24 13:36 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello,

I've heard that KVM-33 now supports SMP hosts and SMP guests,
which is cool. However I do have some newbie-level questions
about this one.

- I assume this is implemented by using n threads for n CPUs/CPU
  cores and letting the host OS schedule accordingly? Or does the
  VM somehow automagically bind each of its virtual CPU threads
  to one of the host CPUs/cores?

- I'd be interested to learn how to actually use SMP ;-). What
  options do I need to enable inside the guest kernel's menucon-
  fig beyond the basic SMP one, specifically what SMP sub-archi-
  tecture type?

- For that matter, which Processor Family option is appropriate
  inside KVM? I've been using "Pentium III" so far. Should I be
  using the family of the host system?

- How do I tell the VM to use multiple CPUs/cores? Some command
  line arguments to qemu-system-x86_64, or another way?


Thanks for reading,
Peter

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Host/Guest SMP: Looking for answers
       [not found] ` <c354edc90707240636m33417598qb541125784ffb55f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-07-24 13:59   ` Avi Kivity
       [not found]     ` <46A605AA.8030809-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2007-07-24 13:59 UTC (permalink / raw)
  To: Peter Meier; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Peter Meier wrote:
> Hello,
>
> I've heard that KVM-33 now supports SMP hosts and SMP guests,
> which is cool. However I do have some newbie-level questions
> about this one.
>
> - I assume this is implemented by using n threads for n CPUs/CPU
>   cores and letting the host OS schedule accordingly? Or does the
>   VM somehow automagically bind each of its virtual CPU threads
>   to one of the host CPUs/cores?
>   

Every virtual cpu (vcpu) is mapped to a thread.  The scheduler maps 
threads to cores.  It's no different than running a normal multithreaded 
application.

> - I'd be interested to learn how to actually use SMP ;-). What
>   options do I need to enable inside the guest kernel's menucon-
>   fig beyond the basic SMP one, specifically what SMP sub-archi-
>   tecture type?
>   

Er, whichever you like.  At present, NUMA won't buy you anything, but 
that will change one day.  In general any smp-enabled kernel should 
work, and there's no reason to enable any fancy features.

> - For that matter, which Processor Family option is appropriate
>   inside KVM? I've been using "Pentium III" so far. Should I be
>   using the family of the host system?
>   

P3 is a good choice, and so is using the host system.  I doubt it makes 
any measurable difference.

> - How do I tell the VM to use multiple CPUs/cores? Some command
>   line arguments to qemu-system-x86_64, or another way?
>   

Use the -smp N option as documented in the qemu help.


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Host/Guest SMP: Looking for answers
       [not found]     ` <46A605AA.8030809-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-07-24 14:05       ` Peter Meier
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Meier @ 2007-07-24 14:05 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Thanks Avi :). Off to try it out ...


Regards,
Peter

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-24 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-24 13:36 Host/Guest SMP: Looking for answers Peter Meier
     [not found] ` <c354edc90707240636m33417598qb541125784ffb55f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-24 13:59   ` Avi Kivity
     [not found]     ` <46A605AA.8030809-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-24 14:05       ` Peter Meier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.