From: George Dunlap Subject: Re: Credit scheduler vs SEDF scheduler Date: Tue, 5 May 2009 11:47:18 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: gaurav somani Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org A couple of comments: * Why did you pin the vcpus to pcpus? AIUI, pings will always be handled by vcpu 0. So if you pin the vcpus to pcpu0, and pcpu0 is busy, it can't migrate over to pcpu1 if it's not busy. Try unpinning the cpus and see if that changes anything. * The Credit scheduler is known to have some issues with latency-sensitive workloads. Workloads like pass-though video are becoming more important, so there's been a lot of discussion about this subject. I'm working on a new scheduler, credit2, that will hopefully address a lot of these issues. * "Ping" is not an application that people find it important to virtualize. :-) Remember that end-to-end application performance and fairness are the high-level goals, so although "ping" may be a useful test to isolate certain aspects of a scheduler, it should never be used to evaluate the "goodness" of one scheduler over another. * That said, it's not clear to me (given what I know of sched_credit and ping) why you'd see these results. -George On Tue, May 5, 2009 at 10:25 AM, gaurav somani w= rote: > Hi list, > > I am evaluating the scheduler behavior in xen. > > I am using Xen 3.3.0 > Dom0 and Dom1,2,3 and 4 all are opensuse 11. > I have one CPU Intensive TEST which has no. of arithmatic instruction in = an > infinite while() loop. > i am pinging domain1 with an external machine. and noting the RTT values. > > i have below experiments > time (s) =A0=A0=A0=A0=A0=A0=A0=A0 domain state > 0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0=A0 dom0,1,2,3,4 all idle > 50 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dom2 TEST started > 100=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dom3 TEST started > 150=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dom4 TEST started > 200=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dom0 TEST started > 250=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dom2 TEST stopped > 300=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dom3 TEST stopped > 350=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dom4 TEST stopped > 400 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 dom0 TEST stopped > > For these 400 seconds time, i have performed experiments with Credit and > SEDF sceduler. > the configuration is > > > Credit configuration - weight 256, cap 0 > Domain=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 VCPU > 0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > 1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > 2=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > 3=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > 4=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > all vcpu0s are pinned to pcpu0 and vcpu1s to pcpu1. > > > SEDF configuration - Period 10ms slice - 1.9ms > Domain=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 VCPU > 0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > 1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > 2=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > 3=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > 4=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 2 > all vcpu0s are pinned to pcpu0 and vcpu1s to pcpu1. > > the results of RTT values are attached herewith. the performance of Credi= t > is very bad in comparison to SEDF in this scenario. > Please provide me some thought on it. > > > Thanks and Regards > > Gaurav somani > M.Tech (ICT) > Dhribhai Ambani Institute of ICT, > INDIA > > http://dcomp.daiict.ac.in/~gaurav > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >