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 6B147A058A; Tue, 24 Mar 2020 16:54:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 45BF42C15; Tue, 24 Mar 2020 16:54:28 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2063.outbound.protection.outlook.com [40.107.22.63]) by dpdk.org (Postfix) with ESMTP id BF0BF2BCE for ; Tue, 24 Mar 2020 16:54:27 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rnjnc7jMPnz5MHQpbnAYaVLoPPt+Wf0tbUmB1gnWbjrB/7yIbChjgMxFzwhPaCG7o5jvA3h4BR5AHJaNiMUEzTuRARblebSg12KzkD50XW9hzh4+A7DmIcbLGO0OqPbVRW+74vHcelZWfb7gkyqSCuFjIGVbz512mKv/xCl+BvwNxirhtRg1qJUOiyo8DP7Ml+i25OzTmfQ6awgWz96RmnZWMtAaqibRJkMbtn2NCPlvBHpqHWoFE2mgVH8qos7K6gsffy5qTjHmu+f4j9c1lHPisnNxEXfXNv8zM5+G1QyI+IBGhyJ1bYmMrMaWIfTJ0kyhObsicDxMWmQ+PO4RLw== 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=DclXyEASJCTlHQvG2e7ROh3XeomNdd+BndM7VGsdHIU=; b=RML50dObO1SfUbZGK7NcCBNAtcbUPOgCb/uLlsjcKqAd+GX8OyGZhCTQRyV5FPnkrvBWP7ThLlmR9pm7wTQUoJO0EOwy9fXN69ripCXbq57m0VbrRCCcnICZnueGwSTkfVGpENMmtsvFNY8UKzJWz6QGvv3NFUMcitHlxiTSHZVH0WqOWp7Y6yYdUuTm21bPzoE9Flc0YuZ0eJHf4bZW3L3AZ1gyKqDzrIGoNdqWrP1rq1oEQQQ/MrzFG6HLM+oJTrog4hs30UgPJIo6WZORFOMxNHT+NtfkNTnNJ9mABkYq4YHSM0ueua/HLMzEJP71pPDjiYwsZZ2b2prf9ITgHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DclXyEASJCTlHQvG2e7ROh3XeomNdd+BndM7VGsdHIU=; b=hmQyNZ1RRrjhHbh5IU8NqdL0z9fn2xZ3GfLcMlpP3l7pHNZmW3ydX/9Z0f9wMe55qSajfipYehJW3RnKYm85LXIkRUEq3kRlPA4qdas7gKOd1Jn0ZK6BPwNaEru4CXDaKDfN8DC4AhGENjdsTESfFxMFgjrTkLydm9KYU/0C7/U= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3937.eurprd05.prod.outlook.com (52.133.36.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.18; Tue, 24 Mar 2020 15:54:25 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a564:a117:9022:1fee]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a564:a117:9022:1fee%7]) with mapi id 15.20.2835.021; Tue, 24 Mar 2020 15:54:25 +0000 From: Matan Azrad To: Alexander Kozyrev , "dev@dpdk.org" CC: Raslan Darawsheh , Slava Ovsiienko Thread-Topic: [PATCH] net/mlx5: prefetch CQEs for a faster decompression Thread-Index: AQHWAesI3RG63XQNcEmxgbY2uwtQ8KhX5QJg Date: Tue, 24 Mar 2020 15:54:25 +0000 Message-ID: References: <20200324144530.25426-1-akozyrev@mellanox.com> In-Reply-To: <20200324144530.25426-1-akozyrev@mellanox.com> Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [77.125.94.232] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a85f2fc0-7a3c-4496-fda1-08d7d00ba0c4 x-ms-traffictypediagnostic: AM0PR0502MB3937:|AM0PR0502MB3937: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 03524FBD26 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(346002)(366004)(396003)(136003)(7696005)(9686003)(4326008)(110136005)(55016002)(186003)(5660300002)(52536014)(33656002)(478600001)(71200400001)(316002)(107886003)(4744005)(6506007)(66446008)(54906003)(64756008)(26005)(66946007)(66556008)(66476007)(76116006)(8676002)(81166006)(81156014)(8936002)(2906002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3937; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: P5TJBeZ8icTNVCtDkoJ5ialap+QSkRHiSXQvkdUQvhqxLLZyAL7rXs/y9H4cvxmXjfap3W++vFOXC8ldcUYr9Ig3YCT4/YGNcuxPMKOc5aziL08x548cqfVUyNyhTP9zP6rJYc0rJPY/WoADhzElyO9jaCYlrb+QO92wC3LKVgNboJ47dmgVxcOOH4FMuuEYEsvEG43c5IoDwlOz2vzfXoimQYpaGgbOAwUlzkkGgt3fXATneX5r9hWPfDRjiT0yaOFCmJ5SJ/cAOEQUR1vIMKgTfh2HcF5GoCoALUsMNZpuvKg9KruajNvoPBEUmk+Ar1i8UPTKogSN4uRzbHYv7Mj3nBKQi60aDbAEYSOnrKKIbLHlogCugTtFbskv/3XY2iFH1+baoI3HiUT/EtZ/tR6KyytUd8aMweCA8l0+0s037XL73LZEL8odki2RfIFF x-ms-exchange-antispam-messagedata: A2xOB3pjYt7roxdopfBxRqQSrtTpt+9F9Yp+qxJHQQH2deoRFvklABQxGcmO7nR4tX1glMS3mghnM5uw3AP6VYFfwWwQRVfKHJ3ZQBviT6+st5cBs6MT8QuQDMIA5GDRv6gBwJZ3h8//1LmkTw0wog== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: a85f2fc0-7a3c-4496-fda1-08d7d00ba0c4 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2020 15:54:25.5667 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NNoo9dtTbJdqmu6RbUt2DLlxEZcCUyyZcYLWu2Dy+mQeABV4aMOIHrg6ultSwFe4GsrCCbaJJPdTNx3VnjVbgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3937 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: prefetch CQEs for a faster decompression 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" From: Alexander Kozyrev > Invalidation of consumed CQEs incurs a performance penalty due to many > cache misses caused by a non-sequential CQEs access. > Prefetch CQEs to get a better data locality and speed up the decompressio= n > of CQEs. Prefetching reduces CPI rate of the > rxq_cq_decompress_v() function from 1 to 0.85 in my environment, resultin= g > in 2% boost in mpps for 64B frames single core test. >=20 > Signed-off-by: Alexander Kozyrev > Acked-by: Viacheslav Ovsiienko Acked-by: Matan Azrad