From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 621C7A046B for ; Fri, 26 Jul 2019 16:56:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 438771C48E; Fri, 26 Jul 2019 16:56:19 +0200 (CEST) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 8994E1C48D for ; Fri, 26 Jul 2019 16:56:16 +0200 (CEST) Received: by mail-pf1-f195.google.com with SMTP id g2so24651921pfq.0 for ; Fri, 26 Jul 2019 07:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZSSlcjaUPGHhTbkOYBPxGSK/z1RdnURv3iAPI1xORFE=; b=mt5jy1FOrumVmoeIf/FFiwtA6Q1VB6BSD/xb/EossZbVUOYESv81VTx4LpJHle/dDP G4gPUaavpy9ZSJZUEGMTMDyhcOEBUXHKG4Y1CIvQNDdNseyxUVazpK92ZbaqFKqp5iDE EDuLJGh/Ql9LUROt0J+nuN4+0vMxgB1WOE16SMb1mky73K3gqWwAJp37UjOgto7Ys/y8 IIKK+F/Ukj+zo4cIzWWuAEvWuwpIn/uV7ZQGctIgkti2mS9WIkx/LVk2quQvwDIVTtNK t35TlSguKt5/jI0qZ3UPN1h8hm7QnD1VhOaUln3KZqF0JrCnqqmcU/y32w+I09Lg2Zm3 gtag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZSSlcjaUPGHhTbkOYBPxGSK/z1RdnURv3iAPI1xORFE=; b=VgtbNwdf1VqDqE75pKh+Sh1O0z5HfcGZEr/hRNuFv0tDagmP00+2IhBLkNcWTntzry l3ZF/Ko+816XA5mjbBaD/LWtc78DYY1TCCJiU4Z3oELWj2rNtWf+sh39jDgW9iLKRP31 jb4MK1Fukh+I8/i1X52dVQY6z1pi6hsbq3cysmL07UoJw+MhkMJ52ua+xJsck+fCCfFr YHxWfEyF3nOuOrljhexvIAkrsDJvvql1fLGcDqHmGoDl6kfjDLrNpxislnXdX+Rb4Bgu 8OTn3nvWnnOSXHjfyO3lmgrqoce5k/3GA2tp3Xpe71+oag6l37bBrekSzz8qh6LTUYBp WwFA== X-Gm-Message-State: APjAAAUScADHzXEsGvPGrDOH0eZEENECk9f8eOglcva7rxTVMsVrkV47 nyvtrf7+eEDodi9dbZXXD0agMvVj X-Google-Smtp-Source: APXvYqxlfYyBjRqPEjOWQ9ueYF2ORqDSmbEbneG98NwRXgMzYMwEmBqDQ/rtXVdij9889ZD3FeAqGA== X-Received: by 2002:a63:4e60:: with SMTP id o32mr93313868pgl.68.1564152976016; Fri, 26 Jul 2019 07:56:16 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id r75sm72565844pfc.18.2019.07.26.07.56.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 07:56:15 -0700 (PDT) Date: Fri, 26 Jul 2019 07:56:09 -0700 From: Stephen Hemminger To: =?UTF-8?B?5pu+5oe35oGp?= Cc: users@dpdk.org Message-ID: <20190726075609.4730000a@hermes.lan> In-Reply-To: <202CB4D5-3F29-44C1-AC0F-BD5AD8C91782@csie.io> References: <202CB4D5-3F29-44C1-AC0F-BD5AD8C91782@csie.io> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-users] DPDK and isolcpus X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Fri, 26 Jul 2019 22:50:47 +0800 =E6=9B=BE=E6=87=B7=E6=81=A9 wrote: > Hi Filip, >=20 > Do you use Mellanox NIC? >=20 > In my experience, rte_lcore_count only counts those lcores that are not i= solated when using mlx5 driver. >=20 > And Intel ixgbe counts lcores correctly even I use isolcpus flag >=20 > BR,=20 >=20 > Sent from my iPhone >=20 > > From: Filip Janiszewski > > To: "users@dpdk.org" > > Subject: [dpdk-users] DPDK and isolcpus > > Message-ID: > > > > Content-Type: text/plain; charset=3Diso-8859-15 > >=20 > > Hi, > >=20 > > I've configured a bunch of my box cores with isolcpus and nohz_full in > > the attempt to squeeze a little more performance out of them, but, > > apparently I can't use those core in DPDK anymore as it seems that > > rte_lcore_count reports only core which are not isolated, also I can't > > launch any thread (rte_eal_remote_launch) on those cores. > >=20 > > In my understanding > > (http://doc.dpdk.org/spp-18.02/setup/performance_opt.html) I should be > > able to "Use the isolcpus Linux kernel parameter to isolate them from > > Linux scheduler to reduce context switches. It prevents workloads of > > other processes than DPDK running on reserved cores with isolcpus > > parameter." but can't make it work. > >=20 > > Which is the correct way to bind DPDK threads to isolated cpus? > >=20 > > Thanks > >=20 > > --=20 > > BR, Filip > > +48 666 369 823 > >=20 > >=20 > > End of users Digest, Vol 196, Issue 5 > > ************************************* =20 The default behavior of DPDK is to use all CPU's it finds. To use isolated CPU's you need to pass the cpu's to use on the command line. dpdk-XXX -l 4-7 ...