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 60E50A0542; Fri, 18 Nov 2022 09:23:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5C5B4067B; Fri, 18 Nov 2022 09:23:00 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 0C36C4021F; Fri, 18 Nov 2022 09:22:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668759779; x=1700295779; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=CSlo2maCccqyWR9+qIDg7QqfdV4A8pDAq3+sOfhG0jw=; b=IV7l2ux9UYxr/zEUgIEdMU8ftOuXjHjwtRQjWog+1QKIUUzVMoEksdTO CRORAIgvzquqI4oAekJpQEhy/qneLXUlo4LMXF6XR+R97+AoySbMZRdoZ +/7190easKal8X5l5V+XAeo+OpV0GYboL9mkcfMAihv33ySxn4KgVqv3P o+qi5HkuG7BIla2izdcgv3SGR/KSgLn1+8vBk53Bl/etu7maWQ9cI+wih F0IBiev0JzGOpgl9cLbe3v3Mrcs9Ke/92+ZjSKTOI+Un9ga+9VxecwwJ0 5HIDCI9l171bYFoSyZ04tmiwgmPCVvd1eBHcsKSnaSLel82N+NdtL9ljH w==; X-IronPort-AV: E=McAfee;i="6500,9779,10534"; a="314236410" X-IronPort-AV: E=Sophos;i="5.96,173,1665471600"; d="scan'208";a="314236410" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2022 00:22:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10534"; a="671244192" X-IronPort-AV: E=Sophos;i="5.96,173,1665471600"; d="scan'208";a="671244192" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga008.jf.intel.com with ESMTP; 18 Nov 2022 00:22:58 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 18 Nov 2022 00:22:57 -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.2375.31 via Frontend Transport; Fri, 18 Nov 2022 00:22:57 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.171) 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.2375.31; Fri, 18 Nov 2022 00:22:57 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZmHnI1tweQE2QOZJRyK/rJHTqh8/6pT8feep31/5k/0oc0SuPJZC4uZ6us2SO/uYnsogXGurh/k77eBVOoPY2LDOuhl2BD3PflUoMoxg6hUIkjbgeoE5Hb/9yfR6IDdV+kU3YGcUbnkI5D8CetUjpdMnl5fFU086DSs3RG8HmTfnwA3bsuolvsSxBfuhL6WCokex/n7sw8SzW7WbvXPdpqNw2HiayDOrtD6g2QmQpmTolbMbZUuxEN5DsGc3/PK0Op2HEdc234Qgv9RhWatz7cdEKBj5wOVTYWAFM2aSSA82uiwIUNjUwLGBk6gctwjCrMS7OyBqtSQrHO12WRQcQQ== 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=CSlo2maCccqyWR9+qIDg7QqfdV4A8pDAq3+sOfhG0jw=; b=MvQXhJRqlfZ6MaIU5goDtO9I3BUUkvwZxjUAMkA8olJUdEn5SX1XzwO7BgikGeYeXWYt4w0RVWZ7ezB0TPTktMSTsm9jkqksaUT35XAiNIp2r4jiR7MgLvyDvu05Pd8hR0+IwtY2afoSGeqU5cV6ZhnCGZAFDzPMWlv8lIc1AHi5cZK5Cb1/RAwi1zb4fNF/CWFHjoATkkmnb8a37e3d3kbEKyRupKVP62vMP59eaRVcMcNWu0PzaWbhWvNnyfsBVVT/ZsFn2b6ZqdLTUZCvdOXAHK3L+3F3d4vObWbPfIwIhJ0EzsThIBEUkhg5zCTnkU7SIFLxmip7/0GfL2c0UQ== 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 BN0PR11MB5743.namprd11.prod.outlook.com (2603:10b6:408:165::5) by BL1PR11MB5349.namprd11.prod.outlook.com (2603:10b6:208:308::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.9; Fri, 18 Nov 2022 08:22:56 +0000 Received: from BN0PR11MB5743.namprd11.prod.outlook.com ([fe80::b97c:2534:9acd:7ac3]) by BN0PR11MB5743.namprd11.prod.outlook.com ([fe80::b97c:2534:9acd:7ac3%4]) with mapi id 15.20.5834.009; Fri, 18 Nov 2022 08:22:56 +0000 From: "Jiale, SongX" To: "You, KaisenX" , "dev@dpdk.org" CC: "stable@dpdk.org" , "Yang, Qiming" , "Zhou, YidingX" , "You, KaisenX" , "Wu, Jingjing" , "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+loPnvGVnz4odEaISPfel4EDGq5EWPzg Date: Fri, 18 Nov 2022 08:22:55 +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: BN0PR11MB5743:EE_|BL1PR11MB5349:EE_ x-ms-office365-filtering-correlation-id: 96114bec-d506-4742-f484-08dac93e1853 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PZo7goyFDwdaItipe3juc9C2E9RFwo5KsdCFDPjsPAYDmYrIdk4oJsTFhYsdfmT6C9COByHBxpU2WKFCiM+gig1UF9u1NlgTMwYDig0M62M6Yx2CoZ8eOrqGl11PpDT0vCH0wfjuCBrPJnSOhku0sexJQcZGfJAejRIbrZDQ/MAJP7iBtTyuhm9RXedUzMfGzForOQrjAHwezwHcqiaxM6yz3IFhkHEgClftdREsOGLhrc3062rRhfnRageV7fbekf7FAiC3JFAjRZ86Fl8OApvBp5iBa3cB+bhs2W7BPDfKShWj6+pZutAu1ZxI27YrUJx01R5AJHc8yYXnwePEie7f+MVJlJ9ZGW5xz7Sw0vin9U6GxLomaMgKl1fl6NPiXRQehzIEC6Z4k4HmqYHdZQoVc/XgsdbaNEuMS0DdrkN7FlBp02C1a7E253fXcQRi4DZmRn42NyXU+FrbdLG0D2YXaboEWwjM6nK/oHnG0iKLwkgeSVFQB95VNwqmsJ+EHxY4r+qWwywkXKjnSRmo2Ft+gOiFLFEQbDS88anj2TYUM1CwPeXw+eqtumoOxgaBCTsNHUeRlgAAOng3VnPoZqMkwRd/G3BlyghP4IeoQvkhmncWhM0GZ7iOFbj1nCXDTEvJZCMuu7BSTyQntdKu7eohdVYV4juPHcDg3pZK9MYmo/liwQKwiiO7aUZSQl/q6IllFuWwQSwCqiJuCAuuLuvzUhPCGlaOGs9rJ7XHUANnHBhwc3rzzz398+c1E1h2 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN0PR11MB5743.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(136003)(376002)(366004)(346002)(396003)(451199015)(33656002)(122000001)(38100700002)(86362001)(2906002)(8676002)(52536014)(8936002)(38070700005)(82960400001)(4744005)(4326008)(83380400001)(110136005)(54906003)(186003)(450100002)(478600001)(66446008)(66476007)(76116006)(64756008)(66946007)(66556008)(5660300002)(316002)(41300700001)(107886003)(53546011)(26005)(9686003)(6506007)(71200400001)(55016003)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8srBYFtsqJncmHH2SDBGcxqSYHZ7bKshN4ioyoLtOqaJtv8CMQP5mm/FC4oh?= =?us-ascii?Q?8c4tzjcbMIYAgb/1h9E1b8Q+J6urZj8LjrRSw7DQyFqYEWpQhxqrsRUkDban?= =?us-ascii?Q?MZMJMsyKhiPLyf7BEAzAJB1DxHXDcs/uuSOerOo+1qejlEnARyqJbPY8edHH?= =?us-ascii?Q?i0Nw7g7DKmG6pqNlj+HoYCt2mxOpV0Oa3vzKowwVacXifx9Y9VgoqJeGWWKE?= =?us-ascii?Q?jD5AUXitm03U0eHVbnGeX+4l6cBsfK34Z7ZRK5lUFHO8pmXb8dh/GJGGjiuN?= =?us-ascii?Q?VwRlMkVE2RsBZdlDYaMpYREHTeylofxqm66KKaWxc25UTguwDL75g4FiPh4D?= =?us-ascii?Q?MRWS3ResBoJqPS+UlBY+hWWZRQ1NMWvkO+ly0JIVik2hqj1gmMK0B3a2YoQQ?= =?us-ascii?Q?0Bqt0bsg/JLXNZa1k8X2NRSgEaq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ascii?Q?DdmaiVAsrkxJQPpw4e5jnr55+VMJVXfkZwBIEHzb9FihKtvn6jqlyT3fqcxd?= =?us-ascii?Q?NaollY6TzJW7AuxaR/M9BgyKiPx7W7/9nYfb3ALWHH0/jXDeBh13X66zR6B5?= =?us-ascii?Q?tkh5j+HXpxGhoAmpsfND61yAG2lHm0I4pNbiCPOyNG6MCx+ZOVDsJZXblNyD?= =?us-ascii?Q?SkfDVcxbKquCdbxR3zVkMi8IKvKC+hOqb+9FJcghVjbr/ck/cjBA0ptnMkKO?= =?us-ascii?Q?tUbCl8XtFR2aH0MDb4MEEMqRy28sVZ2IkNlsygPs?= 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: BN0PR11MB5743.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96114bec-d506-4742-f484-08dac93e1853 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Nov 2022 08:22:55.9188 (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: booyr8txoMG51NbRFbIrAjN4ZulgAO1HaKp3LtDoA5TMTEyGqtQTtBfUBNiOW4zYqedqRFeK4xlZVsP1kJLRzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5349 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: Kaisen You > Sent: Thursday, November 17, 2022 2:57 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Yang, Qiming ; Zhou, YidingX > ; You, KaisenX ; Wu, > Jingjing ; Xing, Beilei ; Z= hang, > 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 n= o > memory). > When the interrupt thread runs on the corresponding core of this socket, > each allocation/release will execute a whole set of heap allocation/relea= se > operations,resulting in poor performance. > Instead we call malloc() to get memory from the system's heap space to fi= x > this problem. >=20 > Fixes: cb5c1b91f76f ("net/iavf: add thread for event callbacks") > Cc: stable@dpdk.org >=20 > Signed-off-by: Kaisen You > --- Tested-by: Song Jiale