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 76C42A0512; Wed, 3 Jun 2020 13:35:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D44021C1E9; Wed, 3 Jun 2020 13:35:25 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140049.outbound.protection.outlook.com [40.107.14.49]) by dpdk.org (Postfix) with ESMTP id 8665E1C1C7 for ; Wed, 3 Jun 2020 13:35:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mzt4CZPkC+dSrcjJdv5vUgXVFkE3D2I42ziyRZ2AK1f6DNcp4mKpieCyiPQsGlRJf/a7hqtZ3xZGFd3LOsrSewIMGqKgS/hmoThtM5oeluQpcE+YButBgn37SI3MCv2wpayZWQhcrdfvwn8cClMNa4BrqkBmJ79KfaCcG813HgAtzl6smRFo6JCptjJ69iyja2/ARM2SU0f4CY3QYA6LIr5Dh63O1KDFZjX7+MFfejR/MeBbzBJLhi/c1sY8d6iyyEnLEKY/N3gT46g1TT+Fh8R2hodXtnf/vyjI13VEMJbIHEz6kbXb0wL4DXJXn2BdgdTSs5Q5HQc3szmFj2nzAw== 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=psLMX5rNwbq7D8/pbyOq0154V0BxehAKbC5WTNnhqGg=; b=WLLGVChwPiMmyabzSALAXm8R3Go5bkQ9GTt1IYtrBP0Pb/ES9bih3GTCv0MScGF2OTcK/rjIJn2HbK9h6252TjZIOxJivcH65iivPlAYgyGJUhJjirIf94AbHQXF40SMypjSCu6MbjnUwlx1wDRYhc14nE1lK2SfLyhpVtKT6AKgHg8SJU67LnlTTxXMWqn9BuKa/S0BbrCRdENcVyo+sqR4qZenv+J8+VMw2oU/dCLB5kC1uHOsKOHX65iWbLlYAmEzKKpnz8WgMBjAD3bPlAFFG1ohLprPaBkHlICBwCK+olksWL28NUG0LUM8GxIDpZXJ0qYtRTZ8yaNs5sEaYg== 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=psLMX5rNwbq7D8/pbyOq0154V0BxehAKbC5WTNnhqGg=; b=o7UCGFdi6B8ZQlG72nXErAqJj4B6DyOmbU6PzBrNHPDvdWNE9cIYSIdGxdbxmiPKEGN+6oQ0fZCz2aBf1aROTqXjxYJphfN1VNvwiwa4uu4g4XVQRBlB+GphV5eSrjbEkgluwYqx/0R140fUf12MIz4YtjMNzI3x8JhGG3sAGsA= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) by AM0PR05MB4291.eurprd05.prod.outlook.com (2603:10a6:208:59::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.21; Wed, 3 Jun 2020 11:35:23 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e%5]) with mapi id 15.20.3066.018; Wed, 3 Jun 2020 11:35:23 +0000 From: Raslan Darawsheh To: Suanming Mou , Slava Ovsiienko , Matan Azrad CC: "dev@dpdk.org" Thread-Topic: [PATCH 0/2] net/mlx5: add reclaim memory mode devarg Thread-Index: AQHWN9tCQlntaIBz/U2g5dQQa2frpajGxT3w Date: Wed, 3 Jun 2020 11:35:22 +0000 Message-ID: References: <1590991783-326932-1-git-send-email-suanmingm@mellanox.com> In-Reply-To: <1590991783-326932-1-git-send-email-suanmingm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [84.242.49.134] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d50d01a1-42f8-4a0b-b1bf-08d807b233fd x-ms-traffictypediagnostic: AM0PR05MB4291: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-forefront-prvs: 04238CD941 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2RDdJjK2wTn+VS5NtJUivG88U7574KCnFC+bPlq9KaeMcJ34KHDRZDHZ0fdZtXYDN2tEhriN2V2xOzyCZOS8lYdwFd61Rrjjnxe0x4cw4SIYj0A+HfMDZeFutm1H9Q9144H4GtxA9pCe3jEL2fNOA+lL1ewx953AOewxD1AwMkVCcf8v9zGcANwywYKKBN2V057pCmM5V7mgOmu0qE0cim1WpE8tx7pgutNMOjcju+20sDIwkgi/gK1PPP/SaM9eVHMXG2y9hJaVdd2LsBk64zpGcA+Ks5lryjAz3ig6UC+72U13hnbz9q0xuFIYj4bDhYtb46bAw2zyPdi4gueLqQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6707.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(396003)(366004)(136003)(376002)(346002)(55016002)(33656002)(7696005)(6636002)(86362001)(9686003)(8936002)(66556008)(66946007)(52536014)(5660300002)(110136005)(66446008)(64756008)(478600001)(186003)(2906002)(66476007)(53546011)(6506007)(76116006)(4326008)(8676002)(26005)(316002)(83380400001)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: p4OIc/CC7KphpVUEkO5oWZde5Fb+w8ckiYHScctSxW8tiNplY1XGJ8DzQIwWzOtCQ5aQ/2pZsYBmLF0snljju+jj67zUHpf0OzgvBdtjbUkd6wBc56oiVKr9pSbj9c+x9aXWzqvEyTz/KnJ0aOGZs9THK9PMLOE7Y9KNIDMN966xeV0ZXfl+ufimz43obWTvVrntSC6NVm+LSwCzf/437Op/OH9kf5f3TdEY8YXV/fmkXAiJM2VbyqE7wcQn1ZR5FaNSBJfpDxikz5Mt2d3hBxE2PKeA0XTUN8YFJ2Y2doIc6fv/tCFk56xHmaGGskW146Xyr3gUkN2XAB+GgogewZYLhu9oq5K7F+IwE3+luATtZPo9B8rbb8eWJVkBH6d5cDHO51fdU2HvPPWYFT8w6sOI2jTiqe22/1Z0SP0vLbJhwOK0GLSnJM8buXI8cgNj+LbSLlCZGRp+4zfTNQprXuOCC4TcJvPCwzoG/MzRlUU= 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: d50d01a1-42f8-4a0b-b1bf-08d807b233fd X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2020 11:35:22.9468 (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: h4+ekzOAMTOSAj4JpXfJ46lyLhuzpakf0rv2M8SEo2L46dMip3rDFKlW97qve0uNEAproGAhTfKAo0tKP4Cu/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4291 Subject: Re: [dpdk-dev] [PATCH 0/2] net/mlx5: add reclaim memory mode devarg 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" Hi, > -----Original Message----- > From: Suanming Mou > Sent: Monday, June 1, 2020 9:10 AM > To: Slava Ovsiienko ; Matan Azrad > > Cc: Raslan Darawsheh ; dev@dpdk.org > Subject: [PATCH 0/2] net/mlx5: add reclaim memory mode devarg >=20 > Currently, when flow destroyed, some memory resources may still be kept > as cached to help next time create flow more efficiently. >=20 > Some system may need the resources to be more flexible with flow create > and destroy. After peak time, with millions of flows destroyed, the > system would prefer the resources to be reclaimed completely, no cache > is needed. Then the resources can be allocated and used by other > components. The system is not so sensitive about the flow insertion > rate, but more care about the resources. >=20 > Both DPDK mlx5 PMD driver and the low level component rdma-core have > provided the flow resources to be configured cached or not, but there is > no APIs or parameters exposed to user to configure the flow resources > cache mode. In this case, introduce a new PMD devarg to let user > configure the flow resources cache mode will be helpful. >=20 > This commit is to add a new "reclaim_mem_mode" to help user configure if > the destroyed flows' cache resources should be kept or not. >=20 > Their will be three mode can be chosen: > 1. 0(none). It means the flow resources will be cached as usual. The > resources will be cached, helpful with flow insertion rate. > 2. 1(light). It will only enable the DPDK PMD level resources reclaim. > 3. 2(aggressive). Both DPDK PMD level and rdma-core low level will be > configured as reclaimed mode. >=20 > With these three mode, user can configure the resources cache mode with > different levels. >=20 > Suanming Mou (2): > common/mlx5: add memory reclaim glue function > net/mlx5: add reclaim memory mode devarg >=20 > doc/guides/nics/mlx5.rst | 20 ++++++++++++++++++++ > doc/guides/rel_notes/release_20_08.rst | 6 ++++++ > drivers/common/mlx5/Makefile | 5 +++++ > drivers/common/mlx5/meson.build | 2 ++ > drivers/common/mlx5/mlx5_glue.c | 13 +++++++++++++ > drivers/common/mlx5/mlx5_glue.h | 1 + > drivers/net/mlx5/mlx5.c | 24 +++++++++++++++++++++++- > drivers/net/mlx5/mlx5.h | 13 +++++++++++++ > 8 files changed, 83 insertions(+), 1 deletion(-) >=20 > -- > 1.8.3.1 Series rebased and applied to next-net-mlx, Kindest regards, Raslan Darawsheh