9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Eric Van Hensbergen" <ericvh@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] Bay Area Plan 9 Users Group Meeting (August '07)
Date: Wed,  8 Aug 2007 16:14:27 -0500	[thread overview]
Message-ID: <a4e6962a0708081414y688aa7a7g4aa85bb25311c17e@mail.gmail.com> (raw)
In-Reply-To: <13426df10708081408x48559821m1be70cacf3cc62bb@mail.gmail.com>

On 8/8/07, ron minnich <rminnich@gmail.com> wrote:
> On 8/8/07, Charles Forsyth <forsyth@terzarima.net> wrote:
> > > Fix is to give it lots of dma segments so that you can stay ahead of
> > > the traffic.
> >
> > but is that then guaranteed, or just a matter of luck?
>
>
> That's a great question. I believe it is a matter of luck. But if you
> get the interrupt, and you put the new pointers in the dma struct
> "quickly", and it has not wrapped around, well, you're in luck!
>
> ron
> p.s. Actually, it does not matter, lguest is going to replace its I/O
> with the paravirt IO standard ops in the next release.
>

That really doesn't seem right, I looked more at the block and the
console code, but it seems like there should be code which "claims"
posted DMA buffers and then the guest should have to re-post them.

I have three different designs for the 9p transport on lguest.  I
think I shall do them all just so I can add a "choose your own
adventure" style to Rusty's documentation.
   a) follow the console driver style and just shuffle to named/pipe
socket to 9p server
   b) follow the libos style and just use a shared memory buffer
posted in dev->mem that is mmaped from shared memory with the server
   c) use dev->mem to store fcall slots and use the dma buffers to
shuffle payload -- this should be the optimal zero-copy case

(a) can theoretically target any 9p server, (b) will work against
inferno-tx and (c) will work against a modified spfs and will take
some pretty heavy modifications to v9fs (don't need to marshall the
fcall, just stick it in a struct in shared memory).  The idea is to
compare the performance of the three approaches and see just how much
cost (performance and complexity) is involved in each.  Should have
(a) done in a matter of hours.

                -eric


  reply	other threads:[~2007-08-08 21:14 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-29 23:02 David Hendricks
2007-07-30 20:43 ` David Leimbach
2007-07-31  6:22 ` Nick LaForge
2007-08-01  1:36 ` Gorka Guardiola
2007-08-01  1:54   ` erik quanstrom
2007-08-01  2:31     ` Gorka Guardiola
2007-08-01  2:35       ` erik quanstrom
2007-08-01  3:37         ` Paul Lalonde
2007-08-01  4:13           ` Skip Tavakkolian
2007-08-01  4:50             ` Lucio De Re
2007-08-01  8:14               ` Bruce Ellis
2007-08-01 20:55               ` Francisco J Ballesteros
2007-08-07 21:37                 ` David Hendricks
2007-08-07 22:22                   ` Kim Shrier
2007-08-07 22:35                     ` David Hendricks
2007-08-08  1:56                       ` David Leimbach
2007-08-08 11:26                         ` Bruce Ellis
2007-08-08 17:13                           ` ron minnich
2007-08-08 17:22                             ` Charles Forsyth
2007-08-08 18:33                               ` David Leimbach
2007-08-08 17:27                             ` Kris Maglione
2007-08-08 19:16                               ` Kris Maglione
2007-08-08 19:14                             ` ron minnich
2007-08-08 20:37                               ` Charles Forsyth
2007-08-08 20:41                                 ` ron minnich
2007-08-08 20:58                                   ` Charles Forsyth
2007-08-08 21:08                                     ` ron minnich
2007-08-08 21:14                                       ` Eric Van Hensbergen [this message]
2007-08-08 21:20                                         ` ron minnich
2007-08-08 19:16                         ` David Hendricks
2007-08-08 19:40                           ` David Leimbach
2007-08-08 20:35                           ` Charles Forsyth
2007-08-08 20:41                             ` ron minnich
2007-08-07 23:07                   ` Tharaneedharan Vilwanathan
2007-08-07 23:11                     ` Tharaneedharan Vilwanathan
2007-08-01 23:52   ` David Hendricks
2007-08-02  1:35     ` Gorka Guardiola
2007-08-08  1:15 ` [9fans] " David Hendricks
2007-08-10 22:45 ` [9fans] " Roman Shaposhnick
     [not found]   ` <dac0a5820708101945ud4e7fb4t6f09288cbdf54019@mail.gmail.com>
2007-08-11  4:37     ` Bruce Ellis
2007-08-11  5:13     ` Anthony Sorace

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=a4e6962a0708081414y688aa7a7g4aa85bb25311c17e@mail.gmail.com \
    --to=ericvh@gmail.com \
    --cc=9fans@cse.psu.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).