From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f174.google.com (mail-wj0-f174.google.com [209.85.210.174]) by dpdk.org (Postfix) with ESMTP id 042D8F968 for ; Wed, 21 Dec 2016 15:31:41 +0100 (CET) Received: by mail-wj0-f174.google.com with SMTP id xy5so203682483wjc.0 for ; Wed, 21 Dec 2016 06:31:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=Kr69mcf1peQaS3ZCNmI6/bWq9B6GQX1AOAKc5DAixOI=; b=S4gbASpdDRF171P4y+gcfuB79XEO3vNuWMhqGyHQFx93vxpHVbIp6WEqaUL/rgeDED WbfxVhxrAwrOapEpLtSGeb5ruryPEIq3LjxzbNuPemMjtnpOaLmD957pX2fh2tTJJwBf jOM6Iwml0i5LkcPmQ/2Te71kMxQijphH/Ifqahmq2mOQFyVzw5OTY2K6nHn6c3xHE+EN ejfcTzWQ4Ry9BvZFxsR6diCRSglTgbhCm4FO67Wt5urRejFx9w4zYt/3+B8hNte/FRJ+ DQO7x7GebE+bvLtuvHEqte6h1j+4UzwRad87vN0TwINR8aS0RqwfAE/UICa+IHwM7J1y 1xGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=Kr69mcf1peQaS3ZCNmI6/bWq9B6GQX1AOAKc5DAixOI=; b=T4qgpUod7OCmPcwWvxB7aEI/FmTgZmcjEaEQeLxSNssdctACwk/Fi3oktY5oF4iuKl sqJtvxXJ5+lfgw3UOjfcEo3W2ppq0Mv+S5EqI6y4iy7BpMBlfoXL11NaTbKoP2UZuXUs 6O9D9btIqeRfh1O+I/xosx8u6Vwo+FAEQ5nQ6VQTR8lKtPBYnKLuVMFb5/I/0Bw0Y1SR Ft4OSpHVQfuwuNb5O0tihcvPc8++G7Km+ShZ1mxMYMYxx2/8y4Y5lWGGUIjBkT5TAVnd 3rgMBEnqrn7kZnal4PAn+IJD5NYou16uZ5wHdmygX0/9lixCLVq9xdELlpwVmbx3qsRu oGug== X-Gm-Message-State: AIkVDXJvhiZwKK57VFxzpJJTqpfE/15PgHwWBz7MrcUGXXZgLT8QHyz2dE8sg20DwST8DFWt X-Received: by 10.194.148.4 with SMTP id to4mr4642300wjb.194.1482330700751; Wed, 21 Dec 2016 06:31:40 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id g197sm27417250wmd.15.2016.12.21.06.31.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 06:31:40 -0800 (PST) From: Thomas Monjalon To: Jianfeng Tan Cc: Bruce Richardson , dev@dpdk.org, david.marchand@6wind.com, pmatilai@redhat.com Date: Wed, 21 Dec 2016 15:31:39 +0100 Message-ID: <22155206.MX3x2ThXoG@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20161209151451.GB14536@bricha3-MOBL3.ger.corp.intel.com> References: <1472693507-11369-1-git-send-email-jianfeng.tan@intel.com> <1697449.uzq8KWsvfF@xps13> <20161209151451.GB14536@bricha3-MOBL3.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v4] eal: restrict cores auto detection X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 14:31:41 -0000 2016-12-09 15:14, Bruce Richardson: > On Thu, Dec 08, 2016 at 07:19:41PM +0100, Thomas Monjalon wrote: > > 2016-12-02 17:48, Jianfeng Tan: > > > This patch uses pthread_getaffinity_np() to narrow down used > > > cores when none of below options is specified: > > > * coremask (-c) > > > * corelist (-l) > > > * and coremap (--lcores) > > > > > > The purpose of this patch is to leave out these core related options > > > when DPDK applications are deployed under container env, so that > > > users do not need decide the core related parameters when developing > > > applications. Instead, when applications are deployed in containers, > > > use cpu-set to constrain which cores can be used inside this container > > > instance. And DPDK application inside containers just rely on this > > > auto detect mechanism to start polling threads. > > > > > > Note: previously, some users are using isolated CPUs, which could > > > be excluded by default. Please add commands like taskset to use > > > those cores. > > > > > > Test example: > > > $ taskset 0xc0000 ./examples/helloworld/build/helloworld -m 1024 > > > > Bruce, what do you think of this version? > > It requires taskset only if -c, -l and --lcores are not used. > > > I'm fine with that since it maintains backward compatibilty for those > options. > > Acked-by: Bruce Richardson Applied with "s/specified/parsed/", thanks