From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by dpdk.org (Postfix) with ESMTP id 3A0A15926 for ; Wed, 4 Dec 2013 22:24:50 +0100 (CET) Received: by mail-pd0-f170.google.com with SMTP id g10so23233221pdj.15 for ; Wed, 04 Dec 2013 13:25:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=/y4eBAAoNiz8MKE+4i7rcaN5PjaO1w7MpTOR+Ji4I4U=; b=cbpGCzqMFehoBk/u2+oIuKoe7EEqFC9PWAT62WWN6NVL9GWOJmmYGn5HEXeIsxgJcq hJek24MWcSOrajB4A4Zn7DK6hGK68Jsw5bQCHHSeF5ujMMepb0IFC0yfGC7KZq+dUJ/q plZncH7Bwn58SGkq9sSax7d5lDDmoexbNc71CSZWHt0qijCa2PsnstPxfkzQwOQcxEFk ouOoxXyqOT6SNn8RxRmcllWZdc2+IKY1HZgAPeZMmkxo1plZQ96s5xTEvahKoWd2BaE3 YB6tp2GrC5xmKCGXPLYlEso19Uyn1zN+RMFUGvz45IyHMakPaiJg4tV0+hzlsQa6JEuc O8Mw== X-Gm-Message-State: ALoCoQngp5WrYMc70d9PTulimC2QMrOS4FctFQ8b+i1MmuymiuxOr9dsNk8dNu6w6/ILXzSPlqKG X-Received: by 10.68.217.226 with SMTP id pb2mr20287730pbc.165.1386192352246; Wed, 04 Dec 2013 13:25:52 -0800 (PST) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id gg10sm139596115pbc.46.2013.12.04.13.25.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 04 Dec 2013 13:25:51 -0800 (PST) Date: Wed, 4 Dec 2013 13:25:48 -0800 From: Stephen Hemminger To: Sambath Kumar Balasubramanian Message-ID: <20131204132548.05a151fe@nehalam.linuxnetplumber.net> In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:24:50 -0000 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