From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) by dpdk.org (Postfix) with ESMTP id 9D94668AE for ; Wed, 23 Oct 2013 16:30:05 +0200 (CEST) Received: by mail-lb0-f169.google.com with SMTP id o14so817436lbi.0 for ; Wed, 23 Oct 2013 07:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Qf/pQXlG/rz/0djwX5oaTbCRm8kdC/sCvH2zs5WOQTo=; b=SAOmr8dbrcAkE54N6EgIJRYrFUrIoDSpMGvsKbTRQZMxdr784c8xURD3AbIjaTCl1n E5j0bGoRhuqC94NyeI8xn2qxJAoPj9+qlRLhOXXCzqhtqlLE5JM0tW2RrIg9ZrTC5TbX p1Ku7d2vBqfc6doFPyNG//X76zLdxN31oXr3DWqam/ujxaJOciLf+9NszsrH2cOQqd9z j3NTFIyix0gzLh3B91gDGtBwxTsnFVBgnZEAsMMRsbV5HqKloglMnksTRjhTIr322Z9l d0u6WLc6lsugZ5mjsVikVGPyK+aQJWG4ULDknikCGpS4CJ2cvNQvKw2vgn5ekNPLX5br erlg== MIME-Version: 1.0 X-Received: by 10.112.13.72 with SMTP id f8mr2377085lbc.40.1382538654508; Wed, 23 Oct 2013 07:30:54 -0700 (PDT) Received: by 10.112.12.231 with HTTP; Wed, 23 Oct 2013 07:30:54 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 Oct 2013 20:00:54 +0530 Message-ID: From: Jyotiswarup Raiturkar To: Prashant Upadhyaya 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] query about rte_eal_mp_remote_launch() 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, 23 Oct 2013 14:30:06 -0000 Hi Prashant Thanks for the reply. I understand what you said. But my query was can i use pthread_create() to create the 'tight loop' threads on demand, rather than spawing the threads at start with rte_eal_mp_remote_launch(). Does anything in the dpdk core preclude using pthread_create() calls directly? -Jyoti On Wed, Oct 23, 2013 at 7:46 PM, Prashant Upadhyaya < prashant.upadhyaya@aricent.com> wrote: > Hi Jyoti, > > You must carefully analyse your usecase. > Typically each core must run a tight loop (and therefore one thread > spawned by remote launch) which does a while 1 { get packet, service packet > } > You should try to build your application around the above paradigm. > > One of your cores can service the slow path using traditional linux with a > tap interface. > > Regards > -Prashant > > > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jyotiswarup Raiturkar > Sent: Wednesday, October 23, 2013 5:11 PM > To: dev@dpdk.org > Subject: [dpdk-dev] query about rte_eal_mp_remote_launch() > > Hello Devs > I'm new to DPDK and trying to understand the basics.. > I want to write a DPDK app where I want to configure shm rings on the fly, > and I want one thread(per core) to service the ring. > In some of the examples I saw rte_eal_mp_remote_launch() being used, but > this is a one time launch. Can I use pthread_create() on-the-fly (taking > care of CPU core allocation), after doing an initial threads launch using > rte_eal_mp_remote_launch()? > Thanks > Jyotiswarup Raiturkar > > > > > > =============================================================================== > Please refer to http://www.aricent.com/legal/email_disclaimer.html > for important disclosures regarding this electronic communication. > > =============================================================================== >