From: Mark Williamson Subject: Re: Scheduling questions for I/O activity on Dom0 Date: Mon, 27 Mar 2006 17:01:42 +0000 Message-ID: <200603271801.43240.mark.williamson@cl.cam.ac.uk> References: <5f74ce410603270857g5eb36dffw6c0c99d2c6f83d78@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5f74ce410603270857g5eb36dffw6c0c99d2c6f83d78@mail.gmail.com> Content-Disposition: inline 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 Cc: Amitayu Das List-Id: xen-devel@lists.xenproject.org > a. DomU sends 1 packet *ONLY*, waits for Dom0 to serve him. Later > whenever, Dom0 is scheduled, it transmits that single packet; an > inefficient way of doing the things. > > b. DomU sends one/multiple packets (>=1) and waits for Dom0 to serve > him. Later Dom0 serves for him whenever Dom0 is scheduled; a more > efficient way of doing the things. > > I think (b) is adopted by Xen, but am not sure. Can you guys kindly tell > me? Yes, that's right. The packets (or rather, descriptors for the packets) are queued in a shared memory ringbuffer for dom0 to find them. Event channels are used for dom0/domU to notify each other of changes in the ring. Events are not generated for each packet for reasons of efficiency - batching makes virtualisation less painful (in terms of performance) for network devices. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!