Hello, Can the runq_insert function in the xen-scheduler be called by two processors at the same time? I would like to modify some functionality for testing and want to know if I need to protect the variables I declare. I do not see a spinlock in when calling this function. Another question. What is the domain_id is7fff. I print the domain id in runq_insert and I see that sometimes the domain id is 7fff Thanks = Padma _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi, Padma 7fff means idle domain. anyway what do you mean "at the same time" ? I suggest you to use xentrace to see the scheduler behavior. like xentrace | xentrace_format tools/xentrace/formats Thanks Atsushi SAKAI "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> wrote:> Hello, > > > > Can the runq_insert function in the xen-scheduler be called by two > processors at the same time? I would like to modify some functionality > for testing and want to know if I need to protect the variables I > declare. I do not see a spinlock in when calling this function. > > > > Another question. What is the domain_id is7fff. I print the domain id > in runq_insert and I see that sometimes the domain id is 7fff > > > > Thanks > > = Padma > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Thanks for the clarification. I am still not sure what the idle domain is. I have dom0 and two other domains in my system. So they are numbered 0,1,2. Does the idle domain mean that none of these domains are in a runnable state? Or ..... Thanks - Padma -----Original Message----- From: Atsushi SAKAI [mailto:sakaia@jp.fujitsu.com] Sent: Friday, April 27, 2007 10:56 PM To: Apparao, Padmashree K Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] xen-scheduler: runq_insert? Hi, Padma 7fff means idle domain. anyway what do you mean "at the same time" ? I suggest you to use xentrace to see the scheduler behavior. like xentrace | xentrace_format tools/xentrace/formats Thanks Atsushi SAKAI "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> wrote:> Hello, > > > > Can the runq_insert function in the xen-scheduler be called by two > processors at the same time? I would like to modify some functionality > for testing and want to know if I need to protect the variables I > declare. I do not see a spinlock in when calling this function. > > > > Another question. What is the domain_id is7fff. I print the domain id > in runq_insert and I see that sometimes the domain id is 7fff > > > > Thanks > > = Padma > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi, "Apparao, Padmashree K" <padmashree.k.apparao@intel.com> wrote:> Does the idle domain mean that none of these domains are in a runnable > state? Or .....Yes You can see this behavior on scheduler by adding TRACE_xD to the code. Thanks Atsushi SAKAI _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel