From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2622A034C; Mon, 2 May 2022 22:17:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E06740C35; Mon, 2 May 2022 22:17:29 +0200 (CEST) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mails.dpdk.org (Postfix) with ESMTP id 48D404069D for ; Mon, 2 May 2022 22:17:28 +0200 (CEST) Received: by mail-pj1-f42.google.com with SMTP id iq2-20020a17090afb4200b001d93cf33ae9so337391pjb.5 for ; Mon, 02 May 2022 13:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=u6gQP23OthCO9GffkQmZmZ82fGRz0dSA6XgQXsdiJi4=; b=1JiiGS3qNVXJIpalNBz8XcKp4GUxhjyLOju2Q6LpG5uXaAvU3xMWEUeDRDz5oJHF/W +UTq4Ur9WlKSo8WR7W7BKXv119CZp2UH9qWrxiJYti7RpSHn/NUbd7HELU15boPuyuQu vBWmvL5m43U5EZMzvsMxfOYsVdx2MyzAD2en9u2xgixpvNxuMgaij/F0FpyqS0mTIhv7 MEN5078nKvoNrQG8x6msM56ZAJw7Cx8ufYKAmGS7wZHop+oumeGHMNQjdIM0OHkWZyc+ P80KK+lWSJN/NmawmoBHe11eDv1Wo8V38P7okgYe0+DazaWglcwSGNIlfyUs9PoROpI/ aw8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=u6gQP23OthCO9GffkQmZmZ82fGRz0dSA6XgQXsdiJi4=; b=aHpgV01riqqSynIOfGxwodSqifXnQnGQY4HeemqrOewDPH2t9CneaUiBa2KCMXAGQc qliqK9O29QkWC9OTIt2bD2Xh5SaYC0JSANQdkLsUZ4cqs244TnBGwL2IcZ/oySA7dZL7 0S+RjycY0LP1Io0EybDkGx5gR7T7p3/8ETutvhjwtSfDE+W9A7OL05dlF2gFJO0V+yHT RJLFJ4VIzTBfclObFs4o3m1FHAu2RWU7borBaSfbFpvswlpRC0QO637BCk20Wf3LuWml DIrEPc18cBCJqj/dJ1+v12aizUYdZ0DMqQAqLldHVwg9Hc6X+M8NgRjWhr9gmx+BYcQi BHtg== X-Gm-Message-State: AOAM530Hj4IT5KOb/3g4vXA//+AGhFW0SZ4zAHKMJ/hQ0nqSAei44TPL DJyZvN9WVT1g162GdFSus3Q4HA== X-Google-Smtp-Source: ABdhPJzACAj5kvnoIWEtUY1BW4EL+HQ0tUdnF++HoCCGhPTFw4i3WY5ugkuFw/uTOxWRvCTt3g1Q1w== X-Received: by 2002:a17:90b:1809:b0:1dc:153e:5f66 with SMTP id lw9-20020a17090b180900b001dc153e5f66mr940949pjb.7.1651522646759; Mon, 02 May 2022 13:17:26 -0700 (PDT) Received: from shemminger-XPS-13-9360 ([131.107.9.48]) by smtp.gmail.com with ESMTPSA id c136-20020a63358e000000b003c14af5063bsm12043225pga.83.2022.05.02.13.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 13:17:26 -0700 (PDT) Date: Mon, 2 May 2022 10:17:09 -1000 From: Stephen Hemminger To: Pavan Nikhilesh Cc: , Subject: Re: [PATCH] doc: update Linux core isolation guide Message-ID: <20220502101709.54541a00@shemminger-XPS-13-9360> In-Reply-To: <20220502072414.4643-1-pbhagavatula@marvell.com> References: <20220502072414.4643-1-pbhagavatula@marvell.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 2 May 2022 12:54:14 +0530 Pavan Nikhilesh wrote: > Update Linux core isolation guide to include isolation from > timers, rcu processing and IRQs. > > Signed-off-by: Pavan Nikhilesh > --- > doc/guides/linux_gsg/enable_func.rst | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/doc/guides/linux_gsg/enable_func.rst > b/doc/guides/linux_gsg/enable_func.rst index 1df3ab0255..f567c713e6 > 100644 --- a/doc/guides/linux_gsg/enable_func.rst > +++ b/doc/guides/linux_gsg/enable_func.rst > @@ -90,16 +90,16 @@ Using Linux Core Isolation to Reduce Context > Switches ----------------------------------------------------- > > While the threads used by a DPDK application are pinned to logical > cores on the system, -it is possible for the Linux scheduler to run > other tasks on those cores also. -To help prevent additional > workloads from running on those cores, -it is possible to use the > ``isolcpus`` Linux kernel parameter to isolate them from the general > Linux scheduler. +it is possible for the Linux scheduler to run other > tasks on those cores. +To help prevent additional workloads, timers, > rcu processing and IRQs from running on those cores, it is possible > to use +the Linux kernel parameters ``isolcpus``, ``nohz_full``, > ``irqaffinity`` to isolate them from the general Linux scheduler > tasks. -For example, if DPDK applications are to run on logical cores > 2, 4 and 6, +For example, if a given CPU has 0-7 cores and DPDK > applications are to run on logical cores 2, 4 and 6, the following > should be added to the kernel parameter list: .. code-block:: console > - isolcpus=2,4,6 > + isolcpus=2,4,6 nohz_full=2,4,6 irqaffinity=0,1,3,5,7 > > .. _High_Precision_Event_Timer: > Also cgroups is often a better solution than the kernel command line. There are also caveats around some of these settings so worth reading the kernel documentation.