From: Kuriakose Mathew Subject: Re: doubt regarding IO scheduler and credit scheduling in netback Date: Fri, 23 Oct 2009 09:20:15 +0530 Message-ID: <9e81bde0910222050o54660e04vadfed6d426d2cc84@mail.gmail.com> References: <9e81bde0910222016r43aba71cjbd530d04afdb2afb@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1565867458==" Return-path: In-Reply-To: <9e81bde0910222016r43aba71cjbd530d04afdb2afb@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1565867458== Content-Type: multipart/alternative; boundary=001636988bab17c3ca0476921c68 --001636988bab17c3ca0476921c68 Content-Type: text/plain; charset=ISO-8859-1 Just to clarify , hope the above credit scheduling has nothing to do with the cpu credit scheduling at the hypervisor? On Fri, Oct 23, 2009 at 8:46 AM, Kuriakose Mathew wrote: > Hi, > With reference to the netback and netfront model of device driver in > Xen(specifically Xen 3.1.3 and linux 2.6.18.8-- I know it is a bit old but > please excuse), I am confused as to where the network IO scheduler fits in. > I have read that there are different types of IO schedulers in linux - > deadline ,anticipatory, complete fair queueing (cfq )etc. where cfq is the > default. Is it only being used in the context of disk IO? or the same thing > is used for network IO? > > Also (as a related doubt), in netback code(In netback.c net_tx_action ) , I > saw some credit scheduling of the network interfaces(netif_t *netif) > corresponding to guest domains. So whenever Dom 0 is scheduled ,it does a > credit scheduling of the network interfaces corresponding to different > DomUs. The credits will get refreshed when the credit_timeout happens. The > next network interface(netif) will be scheduled if the credits for the > current netif is exhausted. Is my understanding correct ? > What are the other cases when the next netif is scheduled? (one would > obviously be the case when there are no packets to send. Any other case?) > When I did some experiments, I found that the bandwidth is fairly divided > among all the domains. So there should be some mechasim to ensure this. > > In this context where does the IO scheduler fits in? > Please explain. > > Thanks > Kuriakose Mathew > > --001636988bab17c3ca0476921c68 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Just to clarify , hope the above credit scheduling has nothing to do with t= he cpu credit scheduling at the hypervisor?


On Fri, Oct 23, 2009 at 8:46 AM, Kuriakose Mathew = <kmathew123@gmail.com> wrote:
Hi,
With refer= ence to the netback and netfront model of device driver in Xen(specifically Xen 3.1.3 and linux 2.6.18.8-- I know it is a bi= t old but please excuse), I am confused as to where the network IO scheduler fits in. I have read that there are different types of IO schedulers in linux - deadline ,anticipatory, complete fair queueing (cfq )etc. where cfq is the default. Is it only being used in the context of disk IO? or the same thing is used for network IO?

Also (as a related doubt), in netback code(In netback.c net_tx_action )= , I saw some credit scheduling of the network interfaces(netif_t *netif) corresponding to guest domains. So whenever Dom 0 is scheduled ,it does a credit scheduling of the network interfaces corresponding to different DomUs. The credits will get refreshed= when the credit_timeout happens. The next network interface(netif) will be= scheduled if the credits for the current netif is exhausted. Is my underst= anding correct ?
What are the other cases when the next netif is scheduled? (one would obvio= usly be the case when there are no packets to send. Any other case?) When I= did some experiments, I found that the bandwidth is fairly divided among a= ll the domains. So there should be some mechasim to ensure this.

In this context where does the IO scheduler fits in?
Please explain.

Thanks
Kuriakose Mathew


--001636988bab17c3ca0476921c68-- --===============1565867458== 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 --===============1565867458==--