From: "Anand Gupta" Subject: Re: Slow guest network I/O when CPU is pegged - Looking for acknowledgement from developers Date: Thu, 20 Apr 2006 01:16:39 +0530 Message-ID: References: <4436AE88.1080200@tektonic.net> <0797add807a6e104a2f5e44a7c76f552@cl.cam.ac.uk> <443E5793.9070202@tektonic.net> <20060419171509.GF31587@edu.joroinen.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2135483044==" Return-path: In-Reply-To: <20060419171509.GF31587@edu.joroinen.fi> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: Matt Ayres , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============2135483044== Content-Type: multipart/alternative; boundary="----=_Part_14556_2142701.1145475999807" ------=_Part_14556_2142701.1145475999807 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline How does one change from SEDF -> BVT ? On 4/19/06, Pasi K=E4rkk=E4inen wrote: > > On Thu, Apr 13, 2006 at 09:52:19AM -0400, Matt Ayres wrote: > > > > > > Keir Fraser wrote: > > > > > >On 7 Apr 2006, at 19:25, Matt Ayres wrote: > > > > > >>Ok, so we all know that guest network I/O is slow when the system > > >>CPU's are being utilized extensively whether it be from dom0 or from > > >>other guests. Lots of people have written about this and I can post > > >>concrete tests if required. > > >> > > >>I'm just looking for one of the Xen developers to acknowledge that > > >>they have been able to replicate the problem and it is indeed being > > >>worked on or will be sometime in the near future. No one has > > >>acknowledged any of the previous threads on either list so I want to > > >>make sure it is an outstanding issue that is not being overlooked. > > > > > >It depends on the setup but poor scheduling is the main reason for poo= r > > >network performance, usually. SEDF seems to have some problems with > > >real-time domains (like domain0 with its default scheduling parameters= ) > > >and gives them all the CPU they want -- this is obviously going to be > > >bad if a client domain is scheduled on the same CPU. > > > > You hit it right here. I did some thinking and informal tests and came > > to a conclusion. The SEDF is the "new kid" on the block and it also th= e > > default, hence everyone is using it. In many cases (such as mine) > > people are just using SEDF with the weight. Also, extratime seems to b= e > > broken (according to Stephen in an old post) and doesn't work well with > > heavy I/O. It especially doesn't do well when dom0 does anything else > > but provide block and network device access, even when it is tuned in > > proportion to the other VM weights. > > > > Another argument is that the SEDF scheduler is just TOO good at what it > > does, in that case it needs some work done to be more flexible. Users > > should consider and test both schedulers before making a decision on > > which to use, there is no clear "winner". > > > > Why am I replying? I did my tests. BVT is nowhere near as strict as > > SEDF in it's "while 1" tests as far as allocating CPU to domains, but i= t > > seems to do a good enough job of providing a proportional share based o= n > > weight (duh) in a real world production environment. It also fixed my > > network throughput problem. > > > > Thanks, > > Matt > > > > It seems BVT was the recommended CPU scheduler in Xen 2. I think I'll hav= e > to try it too.. I hope it will fix the network throughput problems I'm > seeing in Xen 3. > > Are there any downsides in using BVT scheduler in Xen 3.0 ? Why was the > default changed from BVT -> SEDF ? > > -- Pasi > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > -- regards, Anand Gupta ------=_Part_14556_2142701.1145475999807 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline How does one change from SEDF -> BVT ?

On 4/19/06, Pasi K=E4rkk=E4inen &l= t;pasik@iki.fi> wrote: On Thu, Apr 13, 2006 at 09:52:19AM -0400, Matt Ayres wrote:
>
>=
> Keir Fraser wrote:
> >
> >On 7 Apr 2006, at 19:2= 5, Matt Ayres wrote:
> >
> >>Ok, so we all know that g= uest network I/O is slow when the system
> >>CPU's are being utilized extensively whether it be from do= m0 or from
> >>other guests.  Lots of people have wri= tten about this and I can post
> >>concrete tests if required.<= br>> >>
> >>I'm just looking for one of the Xen developers to acknowle= dge that
> >>they have been able to replicate the problem and i= t is indeed being
> >>worked on or will be sometime in the near= future.  No one has
> >>acknowledged any of the previous threads on either list so= I want to
> >>make sure it is an outstanding issue that is not= being overlooked.
> >
> >It depends on the setup but poo= r scheduling is the main reason for poor
> >network performance, usually. SEDF seems to have some problems= with
> >real-time domains (like domain0 with its default scheduli= ng parameters)
> >and gives them all the CPU they want -- this is = obviously going to be
> >bad if a client domain is scheduled on the same CPU.
>> You hit it right here.  I did some thinking and informal t= ests and came
> to a conclusion.  The SEDF is the "new= kid" on the block and it also the
> default, hence everyone is using it.  In many cases (suc= h as mine)
> people are just using SEDF with the weight.  A= lso, extratime seems to be
> broken (according to Stephen in an old p= ost) and doesn't work well with
> heavy I/O.  It especially doesn't do well when dom0 does= anything else
> but provide block and network device access, even wh= en it is tuned in
> proportion to the other VM weights.
>
&g= t; Another argument is that the SEDF scheduler is just TOO good at what it
> does, in that case it needs some work done to be more flexible.&nb= sp; Users
> should consider and test both schedulers before maki= ng a decision on
> which to use, there is no clear "winner"= .
>
> Why am I replying? I did my tests.  BVT is nowhere near = as strict as
> SEDF in it's "while 1" tests as far as alloc= ating CPU to domains, but it
> seems to do a good enough job of provi= ding a proportional share based on
> weight (duh) in a real world production environment.  It= also fixed my
> network throughput problem.
>
> Thanks,<= br>> Matt
>

It seems BVT was the recommended CPU scheduler = in Xen 2. I think I'll have
to try it too.. I hope it will fix the network throughput problems I'm<= br>seeing in Xen 3.

Are there any downsides in using BVT scheduler i= n Xen 3.0 ? Why was the
default changed from BVT -> SEDF ?

-- Pasi

_______________________________________________
Xen-devel= mailing list
Xen-devel= @lists.xensource.com
http://lists.xensource.com/xen-devel



--
regards,

Anand Gupta ------=_Part_14556_2142701.1145475999807-- --===============2135483044== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2135483044==--