Hi, I think pick_cpu function in schedule.c can be a good starting point, am i 
right?

________________________________________
From: tutu sky <ooohoo...@hotmail.com>
Sent: Sunday, April 17, 2016 6:18 PM
To: Xen-devel@lists.xen.org
Subject: xen cpu scheduler internals

Hi,
I know that scheduling is done via two main functions and their effective 
interaction:
one 'schedule()' in schedule.c and another 'do_schedule(...)', which is 
specific for every scheduling policy.
my question is that (although it may seem clear and very common for kernel 
developers, but not as mush for me):
when a vcpu is selected to run on a specific cpu, what is the policy for 
choosing cpu (pcpu)?
I see smp_processor_id() very frequent, and in my suppose, the current cpu is 
the cpu which is used for scheduling (i just think so).

if i need to choose and find more than one cpu for running my tasks on, what 
should i do in scheduler context?

Thanks and regards.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to