From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ve0-x22b.google.com (mail-ve0-x22b.google.com [IPv6:2607:f8b0:400c:c01::22b]) by dpdk.org (Postfix) with ESMTP id C10E29DE for ; Wed, 4 Dec 2013 22:46:07 +0100 (CET) Received: by mail-ve0-f171.google.com with SMTP id pa12so13000928veb.30 for ; Wed, 04 Dec 2013 13:47:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mo3yYLdQ7SJq36DimR8S3EIe+WfOHSaMxkYch1Er+fg=; b=t8/FX/7uYLsNrIeYDQ7rGO85/0cSXRy2YtmLJ0wuG0qV8Y44yBSnf/WZEp2mxZniqL Bdjdluxb2ZPWP6/IuFBsOtWHYX/cjXh5UOhMPAQXFt0C6z2Zf76aY1cmamqUqJxFlSLi dq7lgnMdmnTSkND4jjJoGwEQBfidnY6FuYwdj9PiaxxdcBC3jBd6e2zsQvehxmadT5br OJFAwyb3DchVa5xKUWx9tkOfV/kdHYeDhAzIKqZlsR7cpKKzE8leXTnC+GVTdBCO5drL xHUVq1Mwe0sTaFiTLvphlsXg2xm+8SoX/+QvZFa6Od3o13VReyAOQsQ1VOA6oW9+0JOk sbJQ== MIME-Version: 1.0 X-Received: by 10.52.111.200 with SMTP id ik8mr16562628vdb.2.1386193630293; Wed, 04 Dec 2013 13:47:10 -0800 (PST) Received: by 10.52.177.70 with HTTP; Wed, 4 Dec 2013 13:47:10 -0800 (PST) In-Reply-To: <20131204132548.05a151fe@nehalam.linuxnetplumber.net> References: <20131204132548.05a151fe@nehalam.linuxnetplumber.net> Date: Wed, 4 Dec 2013 13:47:10 -0800 Message-ID: From: Sambath Kumar Balasubramanian To: Stephen Hemminger Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Question on the Ring Library X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 21:46:08 -0000 Thanks Stephen. I was going to do prototype something similar (not doing the wakeup inline but using a background thread) and is it a worthwhile effort to move this as a feature of the RTE ring or is it best left at the application level. On Wed, Dec 4, 2013 at 1:25 PM, Stephen Hemminger < stephen@networkplumber.org> wrote: > On Wed, 4 Dec 2013 03:46:36 -0800 > Sambath Kumar Balasubramanian wrote: > > > Hi, > > > > The ring library seems to be an excellent IPC. But looking at one use > > case where the fast path code posts events to event thread for example, > the > > event thread will spend some cycles polling the ring rather than waiting > > for the event. One approach could be a fast path code basically posts the > > event in the ring as is today and there is a background thread that polls > > the queues and wakes up the event threads. This is similar to Linux > > SOFTIRQs.The event threads are asynchronous. Is this a fair model to > avoid > > extra polling CPU cycles by the event threads? Is there any other > > alternatives in dpdk? > > > > Regards, > > Sambath > > I have in several cases combined RTE ring with use of eventfd + poll to > get wakeup >