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 1CDD445A6C for ; Mon, 30 Sep 2024 19:31:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E430D4027C; Mon, 30 Sep 2024 19:31:10 +0200 (CEST) Received: from sonic319-20.consmr.mail.ne1.yahoo.com (sonic319-20.consmr.mail.ne1.yahoo.com [66.163.188.82]) by mails.dpdk.org (Postfix) with ESMTP id EA1124026C for ; Mon, 30 Sep 2024 19:31:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1727717468; bh=SygGWW+sKskosohL6TorrZVHiydIu6aMSeQJmgzsyk8=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=YGO56qrCllMpBzkEXW0hhlNYmPRW8oI4zVnzhv+iSFdV3uLUcL8UjjmQpnerMc4MzGKJyxopX6IzjN5ItDYPNm4E7iP3GcoOD4dCBYTY3WMEdTT4xLGYyvY4IFjQSvLDfvzRqAsxXCwR6ogjbL//O0d8/+pUQ36lhdh9oUETWVMEjOmmQAFtDXQH87LmbuPqR0KK31a2qGTHrzGqt90NA0xbAuLWj9xuBn45hAZja/gOcxP+dIuC7vLCqKs2UfCYQtotIqPx8R1LBGv9prCZd3BhnhKnm50XdiJJQoeWXJXKbWGhbVga9vj7JU7UWO7HV7luHoS1myF5HAhA/Drnww== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1727717468; bh=Fjb3S7sieucLHg3N5PG2ZK7zupmxpBUqCsBoaI7ycmw=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=qXOBXQvGelu4lgr4V+tH9W/qHKLvtqMLeIfqJEo0Y7y1kvn+96usZFjmMUSrcqyen5xeXieErWu0TrCVh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xj1HTENvzodZ9FTLxr2_72l8Mj6xi2niB12Vw17uMya4sEFl7GNO5_..h.WTnK_LqBbgU2sN2Vzc PV_n2uhPRESgP8Ada_1ED9Dkcv9QXVQoGjl8F3LUToWaFXyyESOiSYboRVa8jVMLEZhgWovbOxpB aPmCHNCu2mS2U6OeU4vhrbPQppevP2Ki15JfnDxrEhcZW1Fi8gyi6EEpoeKVxBzTlC.pLWaG9F1V 1iZ6PhuznBm_bfToXSCe9ihg2cOXduT0XozuDTdQ73IdWdF90amQ.22Bpw6.MgHzfXfSUBBRd_EK sKWFt8C4o6Z63.umHVYilKB_UaTyhrTZs0sz.gsqtCFxG6gtdwPjyakyMYZskTenKaTXj9oWc8Fl e7ucb6NggD8eYsEBUUie3auBaTOaMyW5_MI.g4TYmSI.KrXenkmkApdTXGTTtf.KU6JkGQJHx X-Sonic-MF: X-Sonic-ID: 38b3e384-6887-4c7c-92b5-dcdd4bdb51ba Received: from sonic.gate.mail.ne1.yahoo.com by sonic319.consmr.mail.ne1.yahoo.com with HTTP; Mon, 30 Sep 2024 17:31:08 +0000 Date: Mon, 30 Sep 2024 17:31:05 +0000 (UTC) From: amit sehas To: Stephen Hemminger Cc: "users@dpdk.org" Message-ID: <544804736.14425422.1727717465275@mail.yahoo.com> In-Reply-To: <20240930102752.5ccc5c9f@hermes.local> References: <595544330.11681349.1727123476579.ref@mail.yahoo.com> <595544330.11681349.1727123476579@mail.yahoo.com> <20240930085726.6df70a01@hermes.local> <20240930102752.5ccc5c9f@hermes.local> Subject: Re: core performance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.22645 YMailNorrin X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Thanks so much for the suggestions, i will definitely look at them,=C2=A0 regards On Monday, September 30, 2024 at 10:27:58 AM PDT, Stephen Hemminger wrote:=20 On Mon, 30 Sep 2024 08:57:26 -0700 Stephen Hemminger wrote: > > After placing counters all over the code, we realize that some threads = are uniformly slow, in other words there is no application level issue that= is throttling one thread over the other. We come to the conculsion that ei= ther the Cores on which they are running are not at the same frequency whic= h seems doubtful or the threads are not getting a chance to execute on the = cores uniformly. > >=20 > > It seems that isolcpus has been deprecated in recent versions of linux. > >=20 > > What is the recommended approach to prevent the kernel from utilizing s= ome CPU threads, for anything other than the threads that are launched on t= hem.=C2=A0=20 >=20 > On modern Linux systems, CPU isolation can be achieved with cgroups. Did you checkout the links in the section in the docs on core isolation. =C2=A0 https://doc.dpdk.org/guides/linux_gsg/enable_func.html =C2=A0 https://www.suse.com/c/cpu-isolation-practical-example-part-5/ =C2=A0 https://www.rcannings.com/systemd-core-isolation/ There is also a much more complex and detailed script which is part of the open source project DanOs here: =C2=A0 https://github.com/danos/vyatta-cpu-shield/blob/master/usr/bin/cpu_s= hield If you really want isolated CPU's you have to some more complex stuff to ma= ke sure interrupts etc don't run on that CPU. Also never use CPU 0