From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CDCF6A00C2; Thu, 8 Dec 2022 09:46:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72DBF40E28; Thu, 8 Dec 2022 09:46:43 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id B008440DDC; Thu, 8 Dec 2022 09:46:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670489201; x=1702025201; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=0Y863KDTP5Jf3NvB9DBnMhbsKQAIPV9wT5CzlmIutcU=; b=iBz9qZIeCkkDOPqxw6HkFH5I/OMb5BXASFh3v3uNbXGo22mk3m/BLaKG P1mO4EGI3R0k0lX7VChfgfZmKCnL0g1RbVGih1Rb2YVg1JIc1mcm3ygag wam6ikz+iYHWzcyFjfvYKEOF/4uViqCCBJU/S+fCa8Z009M98+vhY6dbu OJ3iZ+qLWJDkTbtEF3gp4G1l0WYavNc+YZk1atSwfNLILwigDPtZQ4f1R q0ptAnrjihQ05jxfd9MSWgzyJPRaXLHVBHmX0HbUhMOwn2VE21XDF8B7+ YoMnsbX0fx2v3JJkxtn4F2c2PCCLnVnhk6WttXgZuNzRfsAfY0p9UYiBB g==; X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="403383067" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="403383067" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 00:46:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="597272797" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="597272797" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga003.jf.intel.com with ESMTP; 08 Dec 2022 00:46:39 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 8 Dec 2022 00:46:38 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Thu, 8 Dec 2022 00:46:38 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Thu, 8 Dec 2022 00:46:38 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CVGCZnFkv6xD20K2gWcv4l323FyEi30zKkYy06OaujpjOBExbapGlwuwoMSRk0+ibbxTANOIYdcj7B/ndjNetUX3v9ZdUgFGzDKIN/zmC0P7+m3l1Z2n/H6PuG1CEf3D1iuv3CDjCLfeg/NEa4HwzUJYKJMYS4a+eZQ6DEJEn6pnCi6rxDvb2iXEIPolEvyHdtiK40pFTtR37YcOMY9HQsZ7Jf2/AfWL1rmlt3ixF+aPR5WECTuRZf3x2pCcA4UtD1Y94tqnmSMtxtRaTOR5uTbKr0/sgobcd6IftH0CBzeCPQ31ax3ajCWkD4ihAX1Dd/t7u8bd5Qvvi7PwpVL3xg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0Y863KDTP5Jf3NvB9DBnMhbsKQAIPV9wT5CzlmIutcU=; b=Ml9GWrTEesb2wgvcoh/kHJOghH3RQXIiAw9Z6oowmB7qtaoGTqjppr7zoDtPRdHS9Rs+6yEywpz6aSGhTtAQIfXI58snv/PGrAAIyUMvaB3yhUKnYYi0SvynM7mrwTfDZljOe8E9gDUa3VRQ5o5OlxvByiF7CyUgcu6X3kQQpxRCGywWzIDYo6DpRguuS8dooA9fn06cbRpdPymodR6I+IqL4Qpe32cCC1G7P3u4BWglGLkhqtCcIwha1AkE3v3vqeNACkrRQK5nAhriyESxuXMn/a2zr5sCb20BLCX4VkPuCy6S50zq55Y+os73apA0Rywjw5fjj1wDrsI7xjwDZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW3PR11MB4587.namprd11.prod.outlook.com (2603:10b6:303:58::7) by SN7PR11MB7418.namprd11.prod.outlook.com (2603:10b6:806:344::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Thu, 8 Dec 2022 08:46:36 +0000 Received: from MW3PR11MB4587.namprd11.prod.outlook.com ([fe80::b260:d114:37df:64d9]) by MW3PR11MB4587.namprd11.prod.outlook.com ([fe80::b260:d114:37df:64d9%9]) with mapi id 15.20.5880.014; Thu, 8 Dec 2022 08:46:36 +0000 From: "Wu, Jingjing" To: "You, KaisenX" , "dev@dpdk.org" CC: "stable@dpdk.org" , "Yang, Qiming" , "Zhou, YidingX" , "Xing, Beilei" , "Zhang, Qi Z" Subject: RE: [PATCH] net/iavf:fix slow memory allocation Thread-Topic: [PATCH] net/iavf:fix slow memory allocation Thread-Index: AQHY+loFgtwpcOjaiEeVcxYy+J+1bq5jzjzA Date: Thu, 8 Dec 2022 08:46:36 +0000 Message-ID: References: <20221117065726.277672-1-kaisenx.you@intel.com> In-Reply-To: <20221117065726.277672-1-kaisenx.you@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW3PR11MB4587:EE_|SN7PR11MB7418:EE_ x-ms-office365-filtering-correlation-id: 526a4039-5df5-4990-83e2-08dad8f8b732 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: l29gB+lSfLDi1rXAesbWzwtfbaJqcFHJUWGWH0BD032USifyU2qUvNn7YILMn0Y6aQQ60mT1oNqR/Vjp6bMGX4dsdaZSWKQpZYWMJjMbeGQDpOGBwKzQzuOswTlP7MBY1wHZwX8MD1DxmiZPrJJrYrFqcZP/9wTB2S6SH1+y26DFHPZ06QY5rh6EZKW86KsCHXglqC8Xesqqa1tcjrlVE/6pTHo+MUqEVPeBMGcqzPSGOuA2spx73Y1zkHUxE8AGm4mIfT2nQ3/4hE3t6HcZFdHscnGmT9SJWqgGl4QNaeVYuQJuZbR+yuyQrpYVqMqnRWEEGvIuqnDAjqVShsioqtXriBfExCV4ArgNMPAyklmVsn1HTT1rcM9K7QrRtQM4X5adQAcQg6JhY2pZs6VC6n9+HxIJoUsuOaElOUpGXsvXdIvPGAkhUQ8j/KM5tRPTJzcSfaxen8RZDXHfecnGFYec+1tjr3VpawWZZ+O7wizUMTgwy/N9u0frCrMRFOm6fRmInacZcI3YH1GzVO18ve9zFMtCgeIRsup/HtOJsvTvsLq/RF2M0HZ9hoGtSuopNCyjxtx7mvwSRUB+RFIHb78pV0/aLt+emFNO9T5sfTNqkwoE+dvZsgO8sQ5VRP2UOe0Wss1aRiisSW5mZLke4PX0nj5tvDfe9wKbaCoOyRYatnRped8wl2MFesERTbUB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW3PR11MB4587.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(376002)(396003)(366004)(346002)(39860400002)(451199015)(71200400001)(6506007)(7696005)(53546011)(38070700005)(26005)(9686003)(107886003)(86362001)(478600001)(5660300002)(8676002)(110136005)(450100002)(66556008)(4326008)(54906003)(66476007)(76116006)(64756008)(186003)(66446008)(52536014)(41300700001)(8936002)(66946007)(4744005)(2906002)(82960400001)(83380400001)(316002)(122000001)(38100700002)(33656002)(55016003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?m6qukWVvALaveoG+xEpqcKGhh9NmNJkWARjn4iqK1HGxgtGCoRrxKMbilUlc?= =?us-ascii?Q?qa5/+TLdpsnY1nhy3skkkXfTG4NCIQQK9iaz1nZVhkkr5zhNtxQJtqFlFTGQ?= =?us-ascii?Q?t1s0W9w6CQTOnkhCg3Rxuccn3trYo3PDXRI3SI+82HV7a6DtEbr4i48ebfao?= =?us-ascii?Q?SauQG+Yuc7gJsaIZidhc2TnUdtpFTT82YdF7z3fKgLPbciQTZu/o+aj+mQcB?= =?us-ascii?Q?1RLezLJCakj9IPk7hs4TxOPNv/r6SV5WwPzIuGKCvn9ab+mnqE+mMsyUmyTw?= =?us-ascii?Q?zs5Sqf21HlfY9v8REnxYvgSeluU5ENBAzd4apzMIhDCH+vJNWaIlhRy6AFyH?= =?us-ascii?Q?pXZcN26/8bDNym0hUCuO7TpwT2fP98sGrOg0YN6WvVu2ewHsldMiAI+PvZZt?= =?us-ascii?Q?qXzXKzlrRuPXDM+UzPH5e8H9c7Bc3Aw3EwqoKAt6wdYI1srubnGySmAc0EvM?= =?us-ascii?Q?Lqe1VsXIx0O+MtqphJsrDsBNWooq1iY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UhfD8knnCqrPLTjuCu4TZlsxg2fAhbGbeWam0Xu8/cFvTcDBLKof6?= =?us-ascii?Q?VoH2EkdvM31/87HmrUtIGogmLjRV+HeMhN2ShNeIB7qddCMMHX/XlLorkuk4?= =?us-ascii?Q?7Q7KNUypKsRMZW4sKzR3t2wpXmJhM1hQ83IXtVtB9Z21GOkH1BGQEqYH7hXZ?= =?us-ascii?Q?Y5sW4RMxZaBsoe8Dr9w9WknSF2XZJbkaR/bth/Dx?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW3PR11MB4587.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 526a4039-5df5-4990-83e2-08dad8f8b732 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Dec 2022 08:46:36.2907 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GyZPouZDpdXm5uCvTJX9nd91tYAVnTD8jFLheI03jD75iYEET665O/LPjTXRrEwuiXZzdDrJZkQNJKgZH6AC3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7418 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: You, KaisenX > Sent: Thursday, November 17, 2022 2:57 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Yang, Qiming ; Zhou, YidingX > ; You, KaisenX ; Wu, Jingj= ing > ; Xing, Beilei ; Zhang, Qi = Z > > Subject: [PATCH] net/iavf:fix slow memory allocation >=20 > In some cases, the DPDK does not allocate hugepage heap memory to > some sockets due to the user setting parameters > (e.g. -l 40-79, SOCKET 0 has no memory). > When the interrupt thread runs on the corresponding core of this > socket, each allocation/release will execute a whole set of heap > allocation/release operations,resulting in poor performance. > Instead we call malloc() to get memory from the system's > heap space to fix this problem. >=20 > Fixes: cb5c1b91f76f ("net/iavf: add thread for event callbacks") > Cc: stable@dpdk.org >=20 > Signed-off-by: Kaisen You Acked-by: Jingjing Wu