From: Hongyang Yang <yanghy@cn.fujitsu.com>
To: rshriram@cs.ubc.ca, Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "Lai Jiangshan" <laijs@cn.fujitsu.com>,
"Wen Congyang" <wency@cn.fujitsu.com>,
"Stefano Stabellini" <stefano.stabellini@eu.citrix.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Jiang Yunhong" <yunhong.jiang@intel.com>,
"Dong Eddie" <eddie.dong@intel.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
"Ian Campbell" <ian.campbell@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH v10 4/5] remus: implement remus network buffering for nic devices
Date: Fri, 6 Jun 2014 10:08:49 +0800 [thread overview]
Message-ID: <539122B1.60708@cn.fujitsu.com> (raw)
In-Reply-To: <CAP8mzPM_2ZP63MhDrPj0x7CwxJTAewN2bFUp1rEzXZt52Y0JGg@mail.gmail.com>
On 06/06/2014 01:56 AM, Shriram Rajagopalan wrote:
>
> On Jun 5, 2014 11:14 PM, "Ian Jackson" <Ian.Jackson@eu.citrix.com
> <mailto:Ian.Jackson@eu.citrix.com>> wrote:
> >
> > Ian Jackson writes ("Re: [PATCH v10 4/5] remus: implement remus network
> buffering for nic devices"):
> > > Shriram Rajagopalan writes ("Re: [PATCH v10 4/5] remus: implement remus
> network buffering for nic devices"):
> > > ...
> > > > The async execution for each netlink call is an overkill. These
> > > > rtnl calls complete in a matter of few microseconds utmost. On the
> > > > other hand, this code structure, fork/execs a new process for every
> > > > checkpoint just to execute a single library call (netbuf_epoch_op),
> > > > which in turn issues just a syscall.
> > >
> > > I haven't read the code to check whether this criticism is accurate,
> > > but if it is I think it would be justified.
> > >
> > > There is no need to use the async machinery for fast system calls.
> >
> > Having read Shriram's other mail, I feel the need to emphasise the
> > qualification "fast".
> >
> > "Fast" means "cannot ever, even in error conditions, take a
> > significant amount of time". In particular anything that waits for
> > incoming network traffic is not "fast".
> >
> > But AFAICT by looking at the code we are talking only about these
> > calls:
> > rtnl_qdisc_plug_buffer
> > rtnl_qdisc_plug_release_one
> > rtnl_qdisc_add
> > Surely these always complete immediately.
> >
>
> Yes. They boil down to a netlink syscall that simply communicates with qdisc
> manipulation routines in the kernel. They have nothing to do with waiting for
> network traffic.
The question is whether these checkpoints need to be async ops. for netbuffer
and drbd calls, may not necessary since they are quick. but we do not sure other
remus device type's ops(which we do not implemented currently) are quick
enough.So for the interface, make it an async op is a good choice for now?
>
> Shriram
>
--
Thanks,
Yang.
next prev parent reply other threads:[~2014-06-06 2:08 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 1:34 [PATCH v10 0/5] Remus netbuffer: Network buffering support Yang Hongyang
2014-06-05 1:34 ` [PATCH v10 1/5] libxl: introduce asynchronous execution API Yang Hongyang
2014-06-05 16:01 ` Ian Jackson
2014-06-05 1:34 ` [PATCH v10 2/5] remus: add libnl3 dependency for network buffering support Yang Hongyang
2014-06-05 16:18 ` Ian Jackson
2014-06-06 1:48 ` Hongyang Yang
2014-06-06 6:45 ` Shriram Rajagopalan
2014-06-06 10:07 ` Ian Campbell
2014-06-06 11:04 ` Ian Jackson
2014-06-05 1:34 ` [PATCH v10 3/5] remus: introduce remus device Yang Hongyang
2014-06-05 17:06 ` Ian Jackson
2014-06-06 1:54 ` Hongyang Yang
2014-06-09 2:08 ` Hongyang Yang
2014-06-05 1:34 ` [PATCH v10 4/5] remus: implement remus network buffering for nic devices Yang Hongyang
2014-06-05 16:50 ` Shriram Rajagopalan
2014-06-05 17:37 ` Ian Jackson
2014-06-05 17:44 ` Ian Jackson
2014-06-05 17:56 ` Shriram Rajagopalan
2014-06-06 2:08 ` Hongyang Yang [this message]
2014-06-06 1:59 ` Hongyang Yang
2014-06-05 17:24 ` Ian Jackson
2014-06-10 7:33 ` Hongyang Yang
2014-07-09 23:15 ` Ian Jackson
2014-07-10 1:38 ` Hongyang Yang
2014-06-05 1:34 ` [PATCH v10 5/5] libxl: network buffering cmdline switch Yang Hongyang
2014-06-05 1:39 ` [PATCH v10] remus drbd: Implement remus drbd replicated disk Yang Hongyang
2014-06-05 16:25 ` Shriram Rajagopalan
2014-06-05 17:41 ` Ian Jackson
2014-06-05 18:14 ` Shriram Rajagopalan
2014-06-05 18:26 ` Ian Jackson
2014-06-06 11:23 ` Ian Jackson
2014-06-06 5:38 ` Hongyang Yang
2014-06-06 7:12 ` Shriram Rajagopalan
2014-06-06 11:18 ` Ian Jackson
2014-06-06 2:21 ` Hongyang Yang
2014-06-05 17:30 ` [PATCH v10 5/5] libxl: network buffering cmdline switch Ian Jackson
2014-06-06 6:34 ` Hongyang Yang
2014-06-06 7:26 ` Shriram Rajagopalan
2014-06-06 11:13 ` Ian Jackson
2014-06-05 10:47 ` [PATCH v10 0/5] Remus netbuffer: Network buffering support George Dunlap
2014-06-06 2:17 ` Hongyang Yang
2014-06-05 16:01 ` Ian Jackson
2014-06-05 16:12 ` Ian Jackson
2014-06-06 2:26 ` Hongyang Yang
-- strict thread matches above, loose matches on Subject: below --
2014-05-21 10:14 [PATCH v10 0/5] Remus/Libxl: " Yang Hongyang
2014-05-21 10:14 ` [PATCH v10 4/5] remus: implement remus network buffering for nic devices Yang Hongyang
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=539122B1.60708@cn.fujitsu.com \
--to=yanghy@cn.fujitsu.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=eddie.dong@intel.com \
--cc=ian.campbell@citrix.com \
--cc=laijs@cn.fujitsu.com \
--cc=roger.pau@citrix.com \
--cc=rshriram@cs.ubc.ca \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wency@cn.fujitsu.com \
--cc=xen-devel@lists.xen.org \
--cc=yunhong.jiang@intel.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.