From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id C321442369;
	Thu, 12 Oct 2023 00:49:13 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 903E5402BE;
	Thu, 12 Oct 2023 00:49:13 +0200 (CEST)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com
 [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 25E3F402BB
 for <dev@dpdk.org>; Thu, 12 Oct 2023 00:49:12 +0200 (CEST)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id 28CF35C03A1;
 Wed, 11 Oct 2023 18:49:09 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Wed, 11 Oct 2023 18:49:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 cc:cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm2; t=
 1697064549; x=1697150949; bh=BgNkHj4fKmicWfZIF8x0WHOtaPuT8YlL2YJ
 JTAbqirA=; b=STOrHZZnf3tpr5O7JLtxjwWwBJ3sBZNXOgxk47tgPeFVOAAwGp7
 8Q33zHbwA852JSguoXKqezwsXfX2xspKcD/VmWmb/qJWfnY+iIQgnRdu99FLQgsZ
 uBkF7lP5SQo2Hc0aXxeZJM9KnoKNu4dI2O605nJO/qCYl3+lOq+gUcTY/bgjRTch
 G900t3Z36X3huww9eXySe5igDP5Rif6XN/Lkt9dgwtCkO9dk03j0VSoFx4WpnU2J
 LlmPrlfj9CjqHOH6cV0Mwi5r7vrnkok7e1dh+wrpjcUfAMgFKeLXEqkHzo6MhMwY
 GgKosBsm2j+eXo/BD1vak9q0JTGzMUxAtqg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
 1697064549; x=1697150949; bh=BgNkHj4fKmicWfZIF8x0WHOtaPuT8YlL2YJ
 JTAbqirA=; b=MdJ7eAh4Z8nS+Io4g2DmQNOPvZ6eRpK/A6u/bl/rvQUphtlDYhS
 Q4+EqhGUplA6MiJmmAmzCtODufspM6CpajUEUkuFxas41/hLI7tjxyIhMMLlmPMo
 sJCzKs1qK+3myYCoamoXLV1o56SCGo1RB8trlwSdmjCHViipzsoTxQyvk9SbBbtg
 mnS7C8luRSCJvT6WObHjE9D/qgJTTgR14BOS9FRq/Ps+ZRziDjjrxFrfTxLG9miR
 qfYfwxml75Dpkxkyg6VcVK7pHwd45rQ04bWbp00aUS/qLfQNtRAV30kpWGOc8nhy
 VI7gI7KEabWLjI0e35mkyW8r0mmFzuxGe2w==
X-ME-Sender: <xms:ZCYnZUeEJcyzmgGwAnav-V8JMK-uH_TtM34YOTbvHwagRiBwtbIKLQ>
 <xme:ZCYnZWM4O2x_bArPc1TrNsgcNvbLTY8iMUVOjM5AQ79W4ovGIOi0imgWghGZ-AaSX
 03L7KJC_43miHhPHg>
X-ME-Received: <xmr:ZCYnZVhMhBYm2WmaM6lSHpfp-VHF1onIvT89z1e1WdapxS-I6KIEasHqUgdvbABIoLT_jSCYYU9fuIER_Z7FhIxi-Q>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheelgdduvdcutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefhvfevufffkfgjfhgggfgtsehtqhertddttddunecuhfhrohhmpefvhhhomhgr
 shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg
 ftrfgrthhtvghrnhepfefhjeeluedvvedtuddtuedtvefhieejtefhffeujefhteduudev
 tdektdeikeffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh
 homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth
X-ME-Proxy: <xmx:ZCYnZZ_97mhK-yIPhzj9wwqqk4Cy3uzxUtuXfzVCwBnHQKVLpm_pLg>
 <xmx:ZCYnZQubdlLj_OOeBUNCk4wNNtFU-WitgKHqIdFMy8U3VBhMkwkIhA>
 <xmx:ZCYnZQGC1qSnruVyJ7qV0IwSO7KUqGXAjV_EobDEjZMSYFflGD9Buw>
 <xmx:ZSYnZSLEyitfIpdZ0N0aUJrjEjBxVbHhTz9a4oBIaZVHTK_U6YtCzQ>
Feedback-ID: i47234305:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 11 Oct 2023 18:49:06 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Morten =?ISO-8859-1?Q?Br=F8rup?= <mb@smartsharesystems.com>
Cc: Mattias =?ISO-8859-1?Q?R=F6nnblom?= <hofors@lysator.liu.se>,
 Stephen Hemminger <stephen@networkplumber.org>, dev@dpdk.org,
 david.marchand@redhat.com, mattias.ronnblom@ericsson.com,
 bruce.richardson@intel.com, olivier.matz@6wind.com,
 andrew.rybchenko@oktetlabs.ru, honnappa.nagarahalli@arm.com,
 konstantin.v.ananyev@yandex.ru
Subject: Re: [PATCH] eal: add cache guard to per-lcore PRNG state
Date: Thu, 12 Oct 2023 00:49:03 +0200
Message-ID: <2624731.k3LOHGUjKi@thomas>
In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9EF2B@smartserver.smartshare.dk>
References: <20230904092632.12675-1-mb@smartsharesystems.com>
 <4539298.cEBGB3zze1@thomas>
 <98CBD80474FA8B44BF855DF32C47DC35E9EF2B@smartserver.smartshare.dk>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

11/10/2023 18:55, Morten Br=F8rup:
> > From: Thomas Monjalon [mailto:thomas@monjalon.net]
> > Sent: Wednesday, 11 October 2023 18.08
> >=20
> > TLS is an alternative solution proposed by Stephen.
> > What do you think?
>=20
> I think we went down a rabbit hole - which I admit to enjoy. :-)

There is no reply/explanation in this thread.

> My simple patch should be applied, with the description improved by Matti=
as:
>=20
> The per-lcore random state is frequently updated by their individual
> lcores, so add a cache guard to prevent false sharing in case the
> CPU employs a next-N-lines (or similar) hardware prefetcher.

OK applied