From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B1423A0561; Sun, 19 Apr 2020 04:32:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0091D1D522; Sun, 19 Apr 2020 04:31:43 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40068.outbound.protection.outlook.com [40.107.4.68]) by dpdk.org (Postfix) with ESMTP id C97561D441 for ; Sun, 19 Apr 2020 04:31:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QO/9Bv3WUo/OmsYdZvrdhXsJX8MMUpf+KSrFK5DHoNA=; b=XFqInR57IXaqPcPz6xNX93oVI3audQqlowoieXtyeDYxUcBeZTMaqg9A7G1aYOJkGiKRx7V4K6GdxjK0Q+ZwIcol1rc5RdWDUnVPBbs5iiBOEN0MvxSQsx6x1oPRTWPGLBJTmfpbNO5lavNLcm9RLMjZIlPvseFmXX4LOwlPPO4= Received: from DB6PR07CA0080.eurprd07.prod.outlook.com (2603:10a6:6:2b::18) by AM5PR0801MB1809.eurprd08.prod.outlook.com (2603:10a6:203:3a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Sun, 19 Apr 2020 02:31:35 +0000 Received: from DB5EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2b:cafe::16) by DB6PR07CA0080.outlook.office365.com (2603:10a6:6:2b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.9 via Frontend Transport; Sun, 19 Apr 2020 02:31:35 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT004.mail.protection.outlook.com (10.152.20.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15 via Frontend Transport; Sun, 19 Apr 2020 02:31:35 +0000 Received: ("Tessian outbound 3a3e6dcbad0e:v53"); Sun, 19 Apr 2020 02:31:35 +0000 X-CR-MTA-TID: 64aa7808 Received: from a28b603c2c6f.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CAB6590D-6416-4BCB-B258-7FD94AF06F85.1; Sun, 19 Apr 2020 02:31:30 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a28b603c2c6f.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sun, 19 Apr 2020 02:31:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DmN4rJNBKeQLGmuNz7Ga7pUYle+g+tFsn299SqVtXvbLTK5R7BF0C0r54ghQehvvqw+tp93m3KRyYtjLdOBmSzl0Ij7EtyWzAWYkJq3hUVA2e7JPHck9BzYJ0BQAxuHCUKJqSz9tBY7Kiyuhhnxh/ZIrL7Ma6rz2ZJpo79r25vRCBIshDPxZ6g8I/TBY+UYQ3BT3JC7hbT06jxEnbia2S8iK/WJZ5037p+NOzc1klJtjP/QPfGw9ZX2wndOTOkjNomgUusq2jknVqQuYTwRd8rOjj78duCq8Wj32IzMFnp8rdyz8H+KO1XViFMB9J4i5ynkhYwO8Z1LWnExDwzo07Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QO/9Bv3WUo/OmsYdZvrdhXsJX8MMUpf+KSrFK5DHoNA=; b=j+plRcjqYu6ijXPwmZUWH1qTJkuihx3XPqK1Lkfc1Po/GsQUvPNl/9a2hSn57XwOteghmMqxhsODDLamytabr1uZ5QH1XS3PM4D9wI+GZRigRGjtYA1GmkbMTvVrDqpCIV8m4KYcj/B9qzquStTO0LeDpAHb4+PPbJy0z5iFL5q/dLwR/TXP+nFCTnGSpFk8LfnVFy+971xqRV+20vrv6gy9tm9arU1shejVu3Z9N4nzCjJMhvYX5+Qewo34QeBjKSD67VtH2e25n6ggr4TrMdiHXhboBD/ldSSWvaBNkW/s8PIyRXoeBkxA61DAtRMfisSyFwibDtrCo9103hiwsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QO/9Bv3WUo/OmsYdZvrdhXsJX8MMUpf+KSrFK5DHoNA=; b=XFqInR57IXaqPcPz6xNX93oVI3audQqlowoieXtyeDYxUcBeZTMaqg9A7G1aYOJkGiKRx7V4K6GdxjK0Q+ZwIcol1rc5RdWDUnVPBbs5iiBOEN0MvxSQsx6x1oPRTWPGLBJTmfpbNO5lavNLcm9RLMjZIlPvseFmXX4LOwlPPO4= Received: from DBBPR08MB4646.eurprd08.prod.outlook.com (2603:10a6:10:f5::16) by DBBPR08MB4902.eurprd08.prod.outlook.com (2603:10a6:10:db::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Sun, 19 Apr 2020 02:31:29 +0000 Received: from DBBPR08MB4646.eurprd08.prod.outlook.com ([fe80::1870:afc4:b90f:609d]) by DBBPR08MB4646.eurprd08.prod.outlook.com ([fe80::1870:afc4:b90f:609d%5]) with mapi id 15.20.2921.027; Sun, 19 Apr 2020 02:31:29 +0000 From: Honnappa Nagarahalli To: Konstantin Ananyev , "dev@dpdk.org" CC: "david.marchand@redhat.com" , "jielong.zjl@antfin.com" , nd , Honnappa Nagarahalli , nd Thread-Topic: [PATCH v5 5/9] ring: introduce HTS ring mode Thread-Index: AQHWFZ8FJMEYjGDs1kuNcAOakfZFSKh/hBNQ Date: Sun, 19 Apr 2020 02:31:29 +0000 Message-ID: References: <20200417133639.14019-1-konstantin.ananyev@intel.com> <20200418163225.17635-1-konstantin.ananyev@intel.com> <20200418163225.17635-6-konstantin.ananyev@intel.com> In-Reply-To: <20200418163225.17635-6-konstantin.ananyev@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: b4e48a77-b439-47ea-b084-bbd8815638cc.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [70.113.25.165] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cef19655-ef91-41d3-431a-08d7e409c7ab x-ms-traffictypediagnostic: DBBPR08MB4902:|DBBPR08MB4902:|AM5PR0801MB1809: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:2887;OLM:2887; x-forefront-prvs: 0378F1E47A X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB4646.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(376002)(396003)(366004)(346002)(39850400004)(316002)(9686003)(66556008)(66446008)(64756008)(66476007)(66946007)(76116006)(26005)(186003)(52536014)(478600001)(6506007)(7696005)(54906003)(110136005)(81156014)(8676002)(33656002)(8936002)(5660300002)(71200400001)(55016002)(4744005)(4326008)(2906002)(86362001); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: cF0Av3iyc7pY35sysbHjkaWTJ/xj2eY388gD4vVo86gBrLf3KO+6t4mUIUH45V6orYbTwCNnf0NY7tgH6onI4rzmoiqw9NE5Um0Th7MTRLFBxUFx2pTaLZ05jN7JCqMRjQxlcfKrPn9kOpAXeYkNlMM8YzqNfNcGlBlkEcujwC/TE8wt444vX92jr2G8VEQUb5fxKygaUCAhu2KQVwSR6jCvT4HJabauJ3B2LViHwSvnL7mjgOohVl4B3Nn81jPSICtuapONRXZhJfZfjoQ8x/ABywZFUEipo2tCF0FLC5+n2cVmBHXJ7Cft6xcKk0hoC6U6hsvLvmiP7aoittJAmoGjRPagoSrltTZPJx5IK9UPEYq9YNkCa59CLiYj8kWVae1HOxlNprfD3sgpcbxSrFVFMnFE8mv7fIrkcXesH6GoDPLe4ighM4ahJu7qdcgx x-ms-exchange-antispam-messagedata: WpM4QJ5a0dp7kGVGpZRbGfDVhEJuGm1Cu0qRYuT3xqXvP3qlY9EZOPFvsQ7W24hr9a2qNzl4XT52EcFFH2yTN72iFk+pYs5BoBh17AHzBV+es+CJPu0yDrSuZSevUbMRj+cMRBPB2Y+ClL8tJ/Qq8A== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4902 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(346002)(376002)(396003)(39850400004)(46966005)(70586007)(8936002)(5660300002)(70206006)(8676002)(52536014)(478600001)(4744005)(55016002)(81156014)(2906002)(33656002)(7696005)(54906003)(81166007)(316002)(26005)(47076004)(4326008)(82740400003)(110136005)(356005)(6506007)(336012)(86362001)(186003)(9686003); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: bf13c3e9-740f-4f8a-5258-08d7e409c450 X-Forefront-PRVS: 0378F1E47A X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RJzcJlPkZ0CG0/tU7GdB1jILk2LvthBIljr8ZL7551ydIrIHfAJ5slAr1e5kzjFvrZAfLb3an/nTp9fFDTrbjMxRwmYhUx1PXFr9cqyfmwvTsbSd9gFRZdLMU1JhzA0DgXeELs25A98BT7EYuxXbDaXeuMmzHin0W31NMoLiHuCueQHJhYHh8dE7YD3zwUSVGOE8QqqTtvhSoD/4JQSZcfLu4d72PgDFC+mk+BAStBcHANMOkZcg4BhlU+DWPu4xYRRCDJmGgQBkSPa20pY7UnHVw4p1Qqm4YR/3Y+nsVz0hPD61vpccvapaBADiikcsgehLWXrAh6FMKgWAn9VIF4PqIJiqFzNhOnR4QIHxUpZt7eK4Pn0/JKYrqt5aTStYtBikaDN3dYLbrVCLP8Vq6iNMe2cU9b6cQ3bPYsJIpPluqhY72dHIQp4CBivr9ABXFGsDKSMq92SEhKxeYR5PtpawxWTQBRQKpha+8l5aVtX1Jt7dLuvdAagxtvtYYkTkzDaGgdU5jTsJTGJdaZpIMw== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2020 02:31:35.1872 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cef19655-ef91-41d3-431a-08d7e409c7ab X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1809 Subject: Re: [dpdk-dev] [PATCH v5 5/9] ring: introduce HTS ring mode 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > Subject: [PATCH v5 5/9] ring: introduce HTS ring mode >=20 > Introduce head/tail sync mode for MT ring synchronization. > In that mode enqueue/dequeue operation is fully serialized: > only one thread at a time is allowed to perform given op. > Suppose to reduce stall times in case when ring is used on overcommitted > cpus (multiple active threads on the same cpu). >=20 > Signed-off-by: Konstantin Ananyev Acked-by: Honnappa Nagarahalli