From: Julian Chesterfield Subject: Re: [PATCH] Blktap: Userspace file-based image support. (RFC) Date: Fri, 30 Jun 2006 15:17:54 +0100 Message-ID: <1c110308ad84971eb42e54a0ad3bb920@cl.cam.ac.uk> References: <1151552130.14360.10.camel@localhost.localdomain> <1151562666.14360.27.camel@localhost.localdomain> <1151674553.7893.2.camel@sisko.sctweedie.blueyonder.co.uk> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: multipart/mixed; boundary="===============0668230185==" Return-path: In-Reply-To: <1151674553.7893.2.camel@sisko.sctweedie.blueyonder.co.uk> 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: "Stephen C. Tweedie" Cc: Andrew Warfield , Jeff Moyer , Rusty Russell , "xen-devel@lists.xensource.com" , Julian Chesterfield List-Id: xen-devel@lists.xenproject.org --===============0668230185== Content-Type: multipart/alternative; boundary=Apple-Mail-1--576301274 --Apple-Mail-1--576301274 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 30 Jun 2006, at 14:35, Stephen C. Tweedie wrote: > Hi, > > On Thu, 2006-06-29 at 07:34 -0700, Andrew Warfield wrote: > >> The linux libaio stuff is pretty good actually. Requests map rather >> directly down onto the kernel bio interface, so with aio the userland >> block back code is doing a very similar thing to the in-kernel driver. > > Yep. I noticed that the blktap patch includes adding EPOLL to kernel > aio, though, and that has not (yet) been accepted upstream; is that > something that is absolutely necessary for blktap, or could you live > without it? Without the completion event poll an alternative was to block on io_getevents for the batch to complete, or to periodically test for queued responses. This approach was definitely preferable since it fit very nicely into the asynch architecture we were working towards for the userspace drivers. Without the completion poll, the performance would most likely degrade, although we haven't done any tests to measure by how much. > > Is there any movement towards getting that upstream, since otherwise > we're introducing dependencies on core kernel infrastructure that is > not > guaranteed to persist upstream? It looks like the sort of thing that > would be entirely reasonable upstream: EPOLL for aio seems to make a > ton > of sense. Agreed. We'd like to see the EPOLL facility adopted in the mainstream AIO architecture. The current patch was submitted on the linux-aio list in repsonse to a query we sent about a month ago, however I don't believe there has been any movement to officially add it. It's on our agenda to follow-up with the AIO folks since it definitely should belong in the mainstream kernel rather than as a xen patch. - Julian --Apple-Mail-1--576301274 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII On 30 Jun 2006, at 14:35, Stephen C. Tweedie wrote: Hi, On Thu, 2006-06-29 at 07:34 -0700, Andrew Warfield wrote: The linux libaio stuff is pretty good actually. Requests map rather directly down onto the kernel bio interface, so with aio the userland block back code is doing a very similar thing to the in-kernel driver. Yep. I noticed that the blktap patch includes adding EPOLL to kernel aio, though, and that has not (yet) been accepted upstream; is that something that is absolutely necessary for blktap, or could you live without it? Without the completion event poll an alternative was to block on io_getevents for the batch to complete, or to periodically test for queued responses. This approach was definitely preferable since it fit very nicely into the asynch architecture we were working towards for the userspace drivers. Without the completion poll, the performance would most likely degrade, although we haven't done any tests to measure by how much. Is there any movement towards getting that upstream, since otherwise we're introducing dependencies on core kernel infrastructure that is not guaranteed to persist upstream? It looks like the sort of thing that would be entirely reasonable upstream: EPOLL for aio seems to make a ton of sense. Agreed. We'd like to see the EPOLL facility adopted in the mainstream AIO architecture. The current patch was submitted on the linux-aio list in repsonse to a query we sent about a month ago, however I don't believe there has been any movement to officially add it. It's on our agenda to follow-up with the AIO folks since it definitely should belong in the mainstream kernel rather than as a xen patch. - Julian --Apple-Mail-1--576301274-- --===============0668230185== 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 --===============0668230185==--