From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140083.outbound.protection.outlook.com [40.107.14.83]) by dpdk.org (Postfix) with ESMTP id 4099DDE3 for ; Fri, 18 Jan 2019 08:04:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ehFo6ecJFfyaNyQE+kWu5JgNjCI48BM1Q4JuwHWkfPQ=; b=K0sbH/r4o+/d8A0mIDFlUD62x/d4+7VvEyfL0eGPaf45III/eVMbD1rt833VkDZrZTwpm+/z2572jq5jVgDKY2sP3s0IfmeEghZxPilHdP1L8kct/3AQmaRL3974QKzejuhheBmD3nhHvLK2GavUMiO2BmwmdKgBxetJoR02uUw= Received: from AM6PR08MB3672.eurprd08.prod.outlook.com (20.177.115.76) by AM6PR08MB3621.eurprd08.prod.outlook.com (20.177.114.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.27; Fri, 18 Jan 2019 07:04:31 +0000 Received: from AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::25ec:2db7:d268:2b7b]) by AM6PR08MB3672.eurprd08.prod.outlook.com ([fe80::25ec:2db7:d268:2b7b%2]) with mapi id 15.20.1537.018; Fri, 18 Jan 2019 07:04:31 +0000 From: Honnappa Nagarahalli To: "paulmck@linux.ibm.com" , Stephen Hemminger CC: "dev@dpdk.org" , "konstantin.ananyev@intel.com" , "Gavin Hu (Arm Technology China)" , Dharmik Thakkar , nd , Malvika Gupta , Honnappa Nagarahalli , nd Thread-Topic: [RFC v2 2/2] test/rcu_qsbr: add API and functional tests Thread-Index: AQHUmpF+Nn9lWerd6kKBL/ZNW7PfraWMgzkAgCg7lMA= Date: Fri, 18 Jan 2019 07:04:30 +0000 Message-ID: References: <20181122033055.3431-1-honnappa.nagarahalli@arm.com> <20181222021420.5114-1-honnappa.nagarahalli@arm.com> <20181222021420.5114-3-honnappa.nagarahalli@arm.com> <20181222233051.0a930102@xeon-e3> <20181223162556.GS4170@linux.ibm.com> In-Reply-To: <20181223162556.GS4170@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.103.75] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR08MB3621; 6:3g4LCdfiqhqViMsUVhMMGzn5xv3h8lUil6XVHVk0CDgic1PD+CtHCcezzWqDTQtXFNixABHvVdYZumEcgQWojjO1ECmN+1+NfUwDdHLQ7CWFZeoSIklX+2W97UZ0LwiohTOTAwhj3TNym4eB9ayygsxzpEx1I/VxQgpfHlNPLtzfgLIshPlzMWEjhMGIAN1M3D0riLzNU9WjsuPf/DIyp6hSPz30DkxOrjn6IQAiR8PNDsAf9f8p9LDB1E0Ik5zgkOs8EiyDwa2vWmU6rpZdLeUfJtoo1M9Fg9KwJ7XL1enhrMnP1pWZwMs9f8+UuS4BkMnV81Woi7BXcccT23bPU/GoZAwtdh2mQ58qhb+AxD8Umh5KLNxacJUwvSXFlO1o0SfEDylePYCnsF2k1vP3MlJ4eBA3J+Tvvx53jcP+IhV7SAFnamvQqCafTege/SFlzUlnRA8/QoUKZ3l0bQrQWg==; 5:BLbUdo3xjHvBPRvzxvniRLJJuunOInkn2NHJkbbi/rAi6xkWAhoJQ/BPs0dLNxLTkOUEX/c2CQcO0MMb5A+nPQSmWe+cUpNA2OrLAI2Id06ud92UFp30REN7pGprXdj+mwzCEB3HuBE7ejdWYVVPvRuBzP6BR/oxIi1/XF5hGGdrdJr+uOwNXgf2sd2FH6LGeCxQzcZo+lN1OmdmcbJwMQ==; 7:J5cckBdAVfb+0gmgeswK+1ChzQlzk4Gzxe23iDh6YlnryK/5CcLOsG7EBLnUu0n+UVnYyuKo5gmtXhMGuZ1H9/5H1OS82sSvhHDq01pm3vCLNmZ70ZFJQM+ca8J6YoLLf6NasnMXpoxqMVPLB1GIOQ== x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: 89ff4ae4-ac9d-40ed-a4b5-08d67d1331b0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM6PR08MB3621; x-ms-traffictypediagnostic: AM6PR08MB3621: nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 0921D55E4F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(346002)(376002)(366004)(136003)(199004)(189003)(76094002)(72206003)(55016002)(9686003)(74316002)(54906003)(14454004)(110136005)(66066001)(99286004)(102836004)(105586002)(26005)(316002)(6436002)(6506007)(966005)(7696005)(6306002)(76176011)(305945005)(229853002)(8936002)(8676002)(81166006)(81156014)(446003)(11346002)(7736002)(5660300001)(106356001)(33656002)(53936002)(476003)(186003)(256004)(97736004)(86362001)(486006)(71190400001)(2501003)(2906002)(6116002)(3846002)(93886005)(478600001)(6246003)(68736007)(25786009)(4326008)(71200400001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR08MB3621; H:AM6PR08MB3672.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: gS0TXe294T21CbUxkNbPjw+kDU4PHNt/ajEX0DwMDj7CAAoyK1H6qF1uq1jk4eStnO7Zi4FAHs5juseG01Dy8AjiLKhuEyiIRyU6T8BJPshl93G0nsZdByJsvIDhuB6WfkJwA21g7QFUtMrHE3NGJkdQusRV1ImZRtdScwhsI9n/OXjpLUnWgdAKPw03oKQzD2fTHV0TaVklVZrILtafT3OW2du+kBFLHtar7ChT6ipjPL5jWiLM4YN2ylJNf4Yf+dt740fC5I93ntdzY1QUzsNI7rK1NyOz4CxxSv7CYYjuUudk53peoTBEj9wuBbFr5ydQW7iu+SWgP6eONdSbs7nvcQxDyFiccX/94tKqA9XD7ZbP4DUi+3wXciMnFSMWKf71+u9+bVulwocck18SigMqf0DCj9V7ymh55QI+rZY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89ff4ae4-ac9d-40ed-a4b5-08d67d1331b0 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2019 07:04:30.9893 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3621 Subject: Re: [dpdk-dev] [RFC v2 2/2] test/rcu_qsbr: add API and functional tests 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: Fri, 18 Jan 2019 07:04:32 -0000 >=20 > On Sat, Dec 22, 2018 at 11:30:51PM -0800, Stephen Hemminger wrote: > > On Fri, 21 Dec 2018 20:14:20 -0600 > > Honnappa Nagarahalli wrote: > > > > > From: Dharmik Thakkar > > > > > > Add API positive/negative test cases and functional tests. > > > > > > Signed-off-by: Malvika Gupta > > > Signed-off-by: Dharmik Thakkar > > > Signed-off-by: Honnappa Nagarahalli > > > Reviewed-by: Gavin Hu > > > > Just a thought, could you build stress tests like the kernel RCU tests? > > One worry is that RCU does not play well with blocking threads (and > sometimes preemption). Handling blocking threads is supported right now through register_thread/un= register_thread APIs. If a thread has to make a call to a blocking API, it = is expected to unregister itself first. It will be improved further in V3. However, I am not sure what needs to be done for preemption. I would imagin= e that the threads will be scheduled back at some point (depending on the s= cheduling policy). If they were using the data structure the updater has to= wait. >=20 > There are similar tests in the userspace RCU library, as well, which can = be > found at http://liburcu. I looked at these tests. There is perftest/rperftest(reader only)/uperftest= (updater only)/stresstest/benchmark. Currently, we have covered perftest/st= resstest/benchmark pretty well (perf numbers need to be added). We will add= rperftest and uperftest. >=20 > Thanx, Paul