From: Ian Jackson Subject: Re: [PATCH v10 4/5] remus: implement remus network buffering for nic devices Date: Thu, 5 Jun 2014 18:44:36 +0100 Message-ID: <21392.44164.148365.871801@mariner.uk.xensource.com> References: <1401932069-16460-1-git-send-email-yanghy@cn.fujitsu.com> <1401932069-16460-5-git-send-email-yanghy@cn.fujitsu.com> <21392.43765.139382.576863@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21392.43765.139382.576863@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: rshriram@cs.ubc.ca, Yang Hongyang , "xen-devel@lists.xen.org" , Ian Campbell , Wen Congyang , Stefano Stabellini , Andrew Cooper , Jiang Yunhong , Lai Jiangshan , Dong Eddie , Roger Pau =?utf-8?Q?Monn=C3=A9?= List-Id: xen-devel@lists.xenproject.org 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. Ian.