All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: "Hefty, Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "linux-rdma
	(linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"Christoph Lameter
	(christoph-zt5rKe7wo/JBDgjK7y7TUQ@public.gmane.org)"
	<christoph-zt5rKe7wo/JBDgjK7y7TUQ@public.gmane.org>,
	"Greg KH
	(gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org)"
	<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
Subject: Re: [RFC] zero-copy extensions for rsockets
Date: Tue, 31 Jul 2012 15:34:50 -0600	[thread overview]
Message-ID: <20120731213450.GA5787@obsidianresearch.com> (raw)
In-Reply-To: <1828884A29C6694DAF28B7E6B8A8237346A6E926-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>

On Tue, Jul 31, 2012 at 08:33:49PM +0000, Hefty, Sean wrote:
> > This looks very similar to the libaio interface..
> 
> I did look at aio.  It may be possible to use aio context in place
> of ioq, and I'm open to that.  I was actually modeling ioq more
> after epoll than aio.  It just seemed simpler to treat an ioq as a
> standard fd.

libaio is designed to be used along with an eventfd that provides the
epoll like semantics you are talking about. Each time you call
io_submit you can call io_set_eventfd() on the iocb and the aio engine
will trigger that eventfd when the IO completes. poll or epoll on the
eventfd fd.

> My concern is that supporting a more flexible API, like aoi, would
> effectively result in losing some desirable feature handling
> completions, such as kernel bypass or reducing interrupts.  With
> aio, I'm unsure about the impact of supporting callback
> notifications and the selection of each aio context on a per request
> basis.

I'm not sure what you are refering to here? Are you mixing up POSIX
aio with libaio? They are totally different. libaio has no callback
notification mechanism, just io_getevents.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2012-07-31 21:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 18:18 [RFC] zero-copy extensions for rsockets Hefty, Sean
     [not found] ` <1828884A29C6694DAF28B7E6B8A8237346A6E8D5-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-07-31 18:32   ` Jason Gunthorpe
     [not found]     ` <20120731183243.GA4755-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-07-31 20:33       ` Hefty, Sean
     [not found]         ` <1828884A29C6694DAF28B7E6B8A8237346A6E926-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-07-31 21:34           ` Jason Gunthorpe [this message]
     [not found]             ` <20120731213450.GA5787-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-07-31 22:46               ` Hefty, Sean
     [not found]                 ` <1828884A29C6694DAF28B7E6B8A8237346A6E9E6-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-07-31 23:15                   ` Jason Gunthorpe
     [not found]                     ` <20120731231557.GA6956-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-08-01  0:15                       ` Hefty, Sean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120731213450.GA5787@obsidianresearch.com \
    --to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
    --cc=christoph-zt5rKe7wo/JBDgjK7y7TUQ@public.gmane.org \
    --cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.