All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: 马磊 <aware.why@gmail.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [Problem] about src/xen/include/public/io/ring.h
Date: Fri, 12 Apr 2013 09:45:04 -0400	[thread overview]
Message-ID: <20130412134504.GC19408@phenom.dumpdata.com> (raw)
In-Reply-To: <CA+ePHTCeG1MOoUmmhDhgceQEy4Kg5TzVeFotUzdAF__6_nm1Pg@mail.gmail.com>

On Fri, Apr 12, 2013 at 07:24:52PM +0800, 马磊 wrote:
> >
> > This stuff is quite difficult to describe in words. Perhaps you would
> > find it helpful to draw the ring and the 4 pointers and to consider what
> > happens when each pointer catches up to (but doesn't pass) the one in
> > front, and what this tells you about the number of requests/responses
> > which are on the ring at that time.
> >
> >
> Could you show me a rough figure for describing unconsumed requests in a
> specific scene.

It would be easier if you just instrumented the code in question to see
how it works.
> 
> 
> > Then remember that the ring is actually represented as a single page of
> > memory, with the pointers logically wrapping from +4096 (==PAGE_SIZE)
> > back to +0.
> >
> > Ian.
> >
> >
> You mean the ring is a circle buffer except for the ring header.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-04-12 13:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08  8:10 [Problem] about src/xen/include/public/io/ring.h 马磊
2013-04-08 13:32 ` Konrad Rzeszutek Wilk
2013-04-09  3:05   ` 马磊
2013-04-10 13:15     ` Konrad Rzeszutek Wilk
2013-04-11  7:46       ` 马磊
2013-04-11 13:20         ` Konrad Rzeszutek Wilk
2013-04-12  2:21           ` 马磊
2013-04-12  7:49             ` Ian Campbell
2013-04-12 10:35               ` 马磊
2013-04-12 11:14                 ` Ian Campbell
2013-04-12 11:24                   ` 马磊
2013-04-12 13:45                     ` Konrad Rzeszutek Wilk [this message]
2013-04-15  2:52                       ` 马磊
2013-04-10  6:20   ` 马磊
2013-04-10 13:15     ` Konrad Rzeszutek Wilk

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=20130412134504.GC19408@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=aware.why@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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.