From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0063.outbound.protection.outlook.com [104.47.33.63]) by dpdk.org (Postfix) with ESMTP id 95D431B7BF for ; Wed, 11 Apr 2018 04:49:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jOdXYV0MIPReCJfjf4JdB2MWBltKQvZr6xugO7kRGeM=; b=V7xZTtQV+p94jVYFtKQN0u6BKI/otLm9Z8hj6RI6/l/pMl/QwtHMIYyIxr/tld4EJC+zr3YZtJJVTgsHW0AzChRT8EwmhzET8Hws68ykcL4ANcluudn0OiAl2bad5LoY59G9HUrABr9NnfgXXgYz8pATdnE5dEUyiV3DQRfihJ8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (106.208.152.116) by SN2PR07MB2528.namprd07.prod.outlook.com (2603:10b6:804:7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Wed, 11 Apr 2018 02:49:12 +0000 Date: Wed, 11 Apr 2018 08:18:54 +0530 From: Jerin Jacob To: "Ananyev, Konstantin" Cc: Olivier Matz , "dev@dpdk.org" , "Richardson, Bruce" Message-ID: <20180411024845.GA5049@jerin> References: <20180403150722.GB15937@jerin> <20180403152517.hsjghkj5z6mauze7@platinum> <20180403153703.GA19072@jerin> <20180403155601.rqb7fhu6vggzrh7e@platinum> <20180403163254.GB19072@jerin> <2601191342CEEE43887BDE71AB977258A0AB90E3@irsmsx105.ger.corp.intel.com> <20180405080134.GA2674@jerin> <2601191342CEEE43887BDE71AB977258A0AB9930@irsmsx105.ger.corp.intel.com> <20180406012624.GA12155@jerin> <2601191342CEEE43887BDE71AB977258AE913464@IRSMSX102.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2601191342CEEE43887BDE71AB977258AE913464@IRSMSX102.ger.corp.intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [106.208.152.116] X-ClientProxiedBy: PN1PR0101CA0030.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:c::16) To SN2PR07MB2528.namprd07.prod.outlook.com (2603:10b6:804:7::6) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN2PR07MB2528; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 3:+a2V2PxKfeneCnKiu1fJHRIMHoparPwfmxyLezIV5IAGfXKJkG1n5iqW0BEVS1pQYJu4Ukah7CLpnn/pw7XXaYd9TWrTmeKXeSrhqbhSaOhqIfXNu2fkvttLjrt25USJy730hXdf2q7d+KctLkeu8MRl2TmLxlNdGYcXdE7EGD6PxWnGOxl7G7I+fPlYsX37P4SsFycvB3cxfYXIkCsCFnQ4R8o6yHosTRn0Bb8iUkOh61uJTxgluB22XqFMbits; 25:pc96/86Oyy/puX02JXYUyNzXwLECmZOmaq4PEYvwxA6I8jX1kQu9huZ1KGB81n2KEQLciP9lANOZPIHyYm3EJni/tPqs/3bPveoxTgB0oKU40IxQR8ZZBd+jPkQFoatgp1fA7xny3ipwprYA5CI5ygG5p18I2/JS25/PKDcc9DKpDmWKWNdOqijrSV82xlqR5ExQkYg+mb/3kOVYblIqqHgMzigBWyGFNDQto4AltFMChVUqd4G1j4HNi0Kv7U7MuzIENjPnuxshBczkMRbBUf3uSevrnlZj+WMylcgAEnZ0VQcilSYC21kWguwWVOgf9dbYQp3AaHhehrSU61+H5g==; 31:wWWJV+NPf51AVaYMT5YXuBeLw7cF8zD0EmKWYHTpw5Z9fWHfPzm/NjTYrB1TwD7sl35XQSjAx53TWOxLOSocEmKbqOF7ptXlh003PkdDFdFtxscqM80iYLkey8ouafr95djhk6DWdKMtByuKOjBOH0v/Y8JWlA6epneawcFLA/PdWGujW9+a2fQhpa3zuCnljj8pK7dNlk2jVnS3/kjsGbNAzhyK+4Zn5C0yorprknU= X-MS-TrafficTypeDiagnostic: SN2PR07MB2528: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 20:jIjNXlRRAj4T8r39ihtQ9V8f1vezKqemggPuUB8BcN5TkC2L+HHpXVS/sNmnZmmYg8KU8ccLTIoZu+Fc8KAG8UHMBfKJmDI/nP7GOj6AXjQWNNG+6UqJTUkQ6rsI9qldmDB3vP2DoX7WZv1ahOhwz5dtFN7F/iIe5/NXvDMJDoqz+hQ8n+LcoY+9TWP9fH2RrTNkaCLgEFMSrao3w7JbVDmRrPndiR/Q0Yn+tmPR3L80qJdyX0TpEw0Z3Z6aZphJEAfmGYnVg1lJYOPEYzAIN/xMFXUAnGwv0bu9xogMQnRv51pnOVoxzVDm2aV+yLJdkMSW+WYDdqKsyZGSF84Dk3B9t3HTrAdDKcgxfnx3VVUz0nGAsNxXNQxxBYnpezoQrRxkhjkBIk2BJbhP3v5KyuYLPn/kpq+X4Q+THfAz7NJcbybuuizRL+4s3q86SH+8JzeQ8jXZhYErfRmkbn/aMZxPguI8Gk4zLkQh54z2q9TmjWD6SM619ejzii7YL4Wa3rikp1xwZULSqBGR2j5dXtkf9oZpWVPeJlDXcPPvfMN1Ytph97vPXtzHovdsQe+OYHDSFwRXJ/n9orYOrpIDqOxOlcmx5c2yGpP5FuWjqd0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231221)(944501327)(52105095)(93006095)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:SN2PR07MB2528; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2528; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 4:SQ43/JLH5fEqvBRBWgR+xKCLCjd6NYuKeNzOSAY3eqP97SFCL+ttDnyX96Y/J/uCNBwLOcnIrbaJ9xWbbLfwlfJNjQl0E9MOoVjLY8cfdxbY3ZEDWKNUCxoBCifSL0KGg8+J2zPNJ/cwoWgb0HPH7lJMMaeyF57OnpVycHyT6U1txs1bGzqBCYjUaqujqT9/j3x85lHRt2Zt21akKA8A0Moadhz3E5r/7dKumPumaJRX5O2Jbd92ZsstFmc+rqI/EYfMc2YDn4swAYqG3GHZH6JbquMQ55dReUWmd5PzMcj9F5aoIuVHCOUJhreapAxo6oGnjMURFoAXk2yFZZAc0vfG71bFZ6pagdvOb5OfHy4= X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(396003)(39380400002)(366004)(199004)(13464003)(189003)(59450400001)(486006)(956004)(93886005)(42882007)(446003)(11346002)(26005)(81156014)(81166006)(54906003)(316002)(476003)(186003)(8676002)(68736007)(8936002)(58126008)(4326008)(16586007)(52116002)(3846002)(53546011)(386003)(16526019)(33896004)(5009440100003)(6916009)(53936002)(33716001)(305945005)(33656002)(55016002)(66066001)(229853002)(2906002)(106356001)(6116002)(72206003)(97736004)(9686003)(6246003)(1076002)(7736002)(23726003)(50466002)(478600001)(47776003)(105586002)(5660300001)(25786009)(575784001)(76176011)(6496006)(6666003)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2528; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2528; 23:dcR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N3DOo+oJ3yqx5fg2oqVRx/aK2g8uTvRnrNWTR2agTViH0XOzfyHgjBtDqF6MmN6AKD8W2c1e0M/v/4nOExmGpuhfyI5GHAySKeq1D/0Q5HkTVBiTg/MJX/Nonx9KunAECqp4zyUheBIhMdxuain0foOZ4HHmu/aUh3Ln9tieXw7L4o4W3YovucH1G5Al++KkMaayPrFJ1T18IkRlIdxzWbp76FBpsbZAxjy6fEi6Ex223p6ZbfI13N4txisNOJ+e0VxzsVMjCRgZw2K4/HtyE8WwSothnW6rLX748ytwjpSNosJqhX/ap9eX88gTu5ftGxHDXLUUrEwr69PCV2V8nymE/YCC2UCFa/hQm2m5t6z4Rjf42zv/3H8HA==; 5:NwbmR6Z7adO4KPoG0Spxwciu3jTRlD4fAkXUZMAlQyU8p97O/2DU80Nc/g7fw9fZzseSllj0sKVvQRf7AR3KktAA5BBwLEitGEwZrcZpA8yjHYa/Mi7mwwIPVxvnUgi5c3UXqbuAhEQp1HaaA8MPDxFMX5sBUstPoa1K7N7eVKc=; 24:d0xuixB/4BaiIUsdJVnvczIWMO7v63i4i2dpUi6Zfmh7XwaNV2KJDYVpOIs1b209QgnrJ8bQk66YvYgSXb6ppOkahI9e5qZdwOlLhS7pxGU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 7:WiBw+4Hk7Kxd4ApaW1ZlSd7zNifAibITD48OzFauYoeFHZEyJHu0ZpkMwVvAoByLuqOQ8gXWwM98IZVW25UwP4J9st88HRTfBDUloZTSkvDz6OQt6TzZYKquaP8gNm1Sw8AWVehi4cI6hV5EIEDDb+OVT06nXaO00kJxJw+5RefhMWFzYTsmUVJSNHRvAYgWcXuCEjIPMbMAvEaaX9vtXOOF9CSdkAvgbDih9lAEIYHAPTnU8C07MUwTclGlwzHM X-MS-Office365-Filtering-Correlation-Id: 91ce0d86-5bb3-4891-1dcd-08d59f56d089 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 02:49:12.7600 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91ce0d86-5bb3-4891-1dcd-08d59f56d089 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2528 Subject: Re: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring structure 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, 11 Apr 2018 02:49:18 -0000 -----Original Message----- > Date: Wed, 11 Apr 2018 00:33:14 +0000 > From: "Ananyev, Konstantin" > To: Jerin Jacob > CC: Olivier Matz , "dev@dpdk.org" , > "Richardson, Bruce" > Subject: RE: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring > structure > Hi Konstantin, > > > -----Original Message----- > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Friday, April 6, 2018 2:26 AM > > To: Ananyev, Konstantin > > Cc: Olivier Matz ; dev@dpdk.org; Richardson, Bruce > > Subject: Re: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring structure > > > > -----Original Message----- > > > > Hi Konstantin, > > > > > > > > > -----Original Message----- > > > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > > > Sent: Thursday, April 5, 2018 9:02 AM > > > > To: Ananyev, Konstantin > > > > Cc: Olivier Matz ; dev@dpdk.org; Richardson, Bruce > > > > Subject: Re: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring structure > > > > > > > > -----Original Message----- > > > > > Date: Wed, 4 Apr 2018 23:38:41 +0000 > > > > > From: "Ananyev, Konstantin" > > > > > To: Jerin Jacob , Olivier Matz > > > > > > > > > > CC: "dev@dpdk.org" , "Richardson, Bruce" > > > > > > > > > > Subject: RE: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring > > > > > structure > > > > > > > > > > Hi lads, > > > > > > > > > > > -----Original Message----- > > > > > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > > > > > Sent: Tuesday, April 3, 2018 5:43 PM > > > > > > To: Olivier Matz > > > > > > Cc: dev@dpdk.org; Ananyev, Konstantin ; Richardson, Bruce > > > > > > Subject: Re: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring structure > > > > > > > > > > > > -----Original Message----- > > > > > > > Date: Tue, 3 Apr 2018 17:56:01 +0200 > > > > > > > From: Olivier Matz > > > > > > > To: Jerin Jacob > > > > > > > CC: dev@dpdk.org, konstantin.ananyev@intel.com, bruce.richardson@intel.com > > > > > > > Subject: Re: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring > > > > > > > structure > > > > > > > User-Agent: NeoMutt/20170113 (1.7.2) > > > > > > > > > > > > > > On Tue, Apr 03, 2018 at 09:07:04PM +0530, Jerin Jacob wrote: > > > > > > > > -----Original Message----- > > > > > > > > > Date: Tue, 3 Apr 2018 17:25:17 +0200 > > > > > > > > > From: Olivier Matz > > > > > > > > > To: Jerin Jacob > > > > > > > > > CC: dev@dpdk.org, konstantin.ananyev@intel.com, bruce.richardson@intel.com > > > > > > > > > Subject: Re: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring > > > > > > > > > structure > > > > > > > > > User-Agent: NeoMutt/20170113 (1.7.2) > > > > > > > > > > > > > > > > > > On Tue, Apr 03, 2018 at 08:37:23PM +0530, Jerin Jacob wrote: > > > > > > > > > > -----Original Message----- > > > > > > > > > > > Date: Tue, 3 Apr 2018 15:26:44 +0200 > > > > > > > > > > > From: Olivier Matz > > > > > > > > > > > To: dev@dpdk.org > > > > > > > > > > > Subject: [dpdk-dev] [PATCH] ring: relax alignment constraint on ring > > > > > > > > > > > structure > > > > > > > > > > > X-Mailer: git-send-email 2.11.0 > > > > > > > > > > > > > > > > > > > > > > The initial objective of > > > > > > > > > > > commit d9f0d3a1ffd4 ("ring: remove split cacheline build setting") > > > > > > > > > > > was to add an empty cache line betwee, the producer and consumer > > > > > > > > > > > data (on platform with cache line size = 64B), preventing from > > > > > > > > > > > having them on adjacent cache lines. > > > > > > > > > > > > > > > > > > > > > > Following discussion on the mailing list, it appears that this > > > > > > > > > > > also imposes an alignment constraint that is not required. > > > > > > > > > > > > > > > > > > > > > > This patch removes the extra alignment constraint and adds the > > > > > > > > > > > empty cache lines using padding fields in the structure. The > > > > > > > > > > > size of rte_ring structure and the offset of the fields remain > > > > > > > > > > > the same on platforms with cache line size = 64B: > > > > > > > > > > > > > > > > > > > > > > rte_ring = 384 > > > > > > > > > > > rte_ring.name = 0 > > > > > > > > > > > rte_ring.flags = 32 > > > > > > > > > > > rte_ring.memzone = 40 > > > > > > > > > > > rte_ring.size = 48 > > > > > > > > > > > rte_ring.mask = 52 > > > > > > > > > > > rte_ring.prod = 128 > > > > > > > > > > > rte_ring.cons = 256 > > > > > > > > > > > > > > > > > > > > > > But it has an impact on platform where cache line size is 128B: > > > > > > > > > > > > > > > > > > > > > > rte_ring = 384 -> 768 > > > > > > > > > > > rte_ring.name = 0 > > > > > > > > > > > rte_ring.flags = 32 > > > > > > > > > > > rte_ring.memzone = 40 > > > > > > > > > > > rte_ring.size = 48 > > > > > > > > > > > rte_ring.mask = 52 > > > > > > > > > > > rte_ring.prod = 128 -> 256 > > > > > > > > > > > rte_ring.cons = 256 -> 512 > > > > > > > > > > > > > > > > > > > > Are we leaving TWO cacheline to make sure, HW prefetch don't load > > > > > > > > > > the adjust cacheline(consumer)? > > > > > > > > > > > > > > > > > > > > If so, Will it have impact on those machine where it is 128B Cache line > > > > > > > > > > and the HW prefetcher is not loading the next caching explicitly. Right? > > > > > > > > > > > > > > > > > > The impact on machines that have a 128B cache line is that an unused > > > > > > > > > cache line will be added between the producer and consumer data. I > > > > > > > > > expect that the impact is positive in case there is a hw prefetcher, and > > > > > > > > > null in case there is no such prefetcher. > > > > > > > > > > > > > > > > It is not NULL, Right? You are loosing 256B for each ring. > > > > > > > > > > > > > > Is it really that important? > > > > > > > > > > > > Pipeline or eventdev SW cases there could more rings in the system. > > > > > > I don't see any downside of having config option which is enabled > > > > > > default. > > > > > > > > > > > > In my view, such config options are good, as in embedded usecases, customers > > > > > > can really fine tune the target for the need. In server usecases, let the default > > > > > > of option be enabled, no harm. > > > > > > > > > > But that would mean we have to maintain two layouts for the rte_ring structure. > > > > > > > > Is there any downside of having two configurable layout? meaning, we are not > > > > transferring rte_ring structure over network etc(ie no interoperability > > > > issue). Does it really matter? May I am missing something here. > > > > > > My concern about potential compatibility problems we are introducing - > > > library build with 'y', while app wit 'n', or visa-versa. > > > > Got it. > > > > > I wonder are there really a lot of users who would be interested in such savings? > > > Could it happen that this new option would sit here unused and untested? > > > > OK. Fair enough. I have no objections for Olivier patch. > > > > As a suggestion, may be we can move "char name[RTE_MEMZONE_NAMESIZE]" in the > > struct rte_ring in place of " empty cacheline" to save 32B. No strong option > > though. > > That sounds like a good idea to me... > But I suppose in that case we need to move to that empty cacheline all fields that precede prod? Even though those fields are read only in fastpath,I suppose moving all the fields(used in fast path) after prod, prefetch _cons_ cache line in cross CPU case. I think, following comment can be addressed in code as it is an ABI change. /* * Note: this field kept the RTE_MEMZONE_NAMESIZE size due to * ABI * compatibility requirements, it could be changed to * RTE_RING_NAMESIZE * next time the ABI changes */ char name[RTE_MEMZONE_NAMESIZE] __rte_cache_aligned; /**< Name of the ring. */ > Otherwise there will be not much advantage in such move. > >