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 B99EF42850; Thu, 30 Mar 2023 11:20:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4975F410D3; Thu, 30 Mar 2023 11:20:55 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id E324940E25 for ; Thu, 30 Mar 2023 11:20:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680168054; x=1711704054; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=qCXEQHMY3pMN0cLlcRUh4B90XmsdjEZPlkgbvHRWUJ0=; b=Hf5hf9Fu+J8C8knKEBEC1Mfju+4SVl9HtOG2zGR1pUa5aWrmT8M6X/9O cyGN27n8lpX1wbR29r93hkF6V08h7UMyUPL2goKQR3conjWK0ZIqNI3EE r3VBKSPav/CAk3Xu1wubilxkhZ4MZSahR1loUxlo4ptV5JRPH1sNvlDH3 yn9NcoT6Jvq46xVWTqsdrr7V0lpSTpItvDtb/3c3kso7zFAbSoDAhIPJ4 0DES2jDHlLWi+UciOdjUUTdshAW+mAq6OGhThc6Zja8OfCV/5erm12Ckw IjFw8UbqKiMLiCsF8ullDJr5SU5+nVa8oud7EcUg23Zqz8YRMKV2Tr8Iy Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="343568965" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="343568965" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 02:20:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="753926576" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="753926576" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga004.fm.intel.com with ESMTP; 30 Mar 2023 02:20:50 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 30 Mar 2023 02:20:50 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 30 Mar 2023 02:20:50 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.45) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Thu, 30 Mar 2023 02:20:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nHFYyz7BKcxWJLqIprJfYk+OlcJyjywfQZKJ4kpdCGAT7gQBBryd+4HCrXw62UgR0P9HMNxgBTywWum09+VoRntKS/3kakuztQjXsyy62Ht5JUXBTu5SN9BxqIYmVp2nvSVDKtN+U6LQy+8Wnaz+4hwhfoAjU1YxUwKXyk87Mjbd9db+oyJRDR2HcGu6XTNREhQQSFl4pZZesLIpeOYZoZwVqQzR8Oyy3p9WvE440Qseg4XICQeOgpuAuDbBPipF7qmSizWeiqRHlYc1zW7aqCuwFyEZ12bNbt+Wn4T5jq3TYrB/1fCxXY1iklEdK+V8fI2DdKFhlEtIm1PsKbb8kQ== 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=SMubkV2D/BqWfsCdmumQoktN47maFAw2BsU6zZseeLY=; b=HcuBRq3wV2yQbswnWnGYE1hG2/zqKvM6WP8X62PxdY8Qk7Hbn3TzOGNrfgcwf7Fh5Asu+3W5Av5tM2XBpklhDuy00wWgW8PMw0S4nrLOQr42g/k93TstFk8iSfHz3YMTNM8SZZXkhgSiddU5AqqkDWSVQ/UkDmnO474Ct1vUPJKcbwGVrXpXyCsp/Weeo+8wAnbwoqbTdq/mbLx6+o70XzcAr0X6sRqwp+ojvZRrfvRfxhEgCwIDQea5EfRXBFTHhrz8NF4aJi0D0Ovd1ppKILBuuSHfanS6LvmSagOQiH7rf5lW12CqCbdJ8F22xnt1ZgD9XxpTqJLwVLPfRLNaYg== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by IA1PR11MB7342.namprd11.prod.outlook.com (2603:10b6:208:425::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.41; Thu, 30 Mar 2023 09:20:47 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::18d0:ac53:aa1d:d19c]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::18d0:ac53:aa1d:d19c%8]) with mapi id 15.20.6222.035; Thu, 30 Mar 2023 09:20:47 +0000 Date: Thu, 30 Mar 2023 10:20:40 +0100 From: Bruce Richardson To: Prashant Upadhyaya CC: Subject: Re: Regarding DPDK API's like rte_timer_subsystem_init/rte_hash_create etc. in VPP Message-ID: References: Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: LO2P123CA0079.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:138::12) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|IA1PR11MB7342:EE_ X-MS-Office365-Filtering-Correlation-Id: 6321f13e-4d4d-4957-54b4-08db31000b89 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zUPzBL5+edSPBbWG37Ydm8BX7BAjlOib2dek/GGmSSKD6g95z2dJATeYK8NfjCnLrafz3zfFIozz3ncg2/s2BPzCHHpNixoTxtZ3NkTM9dC3U3eMXDGZ5SPPUbIIQdARuGim4/xVooUdVaj10G6Ku3Qtv0HP3LDac9WGJogY4LJ8iUe6on7IDAPblLe2fGIS3cq8a3ydzKu4Vn6/0UcpriMI5XF3ActnebTxkLv6VxakhQZVSYuYZH/tRO5mSlUaFPPizcDjoMdADUxCb4vD7MefYTzgzRbw3/y9qbvmoMOFQQOlkYjpVBi+lGbxfH+rOd4QKsAIMUbXh6fSkP/sOprzaThR6wpx9Bh2O6aUg6T9KztN+7UUD4XmhZH5U+RoTx+DUW6OnJoMEVmZluF+olMQw2Dq5lJMlU1GMNcrMEfnFJeW3NpYEUxzuhz5eT9rrbJnj8N5YtloW/+ltbWwXM1QsOTAlZ8VUcYT9YoDF/eA4xOJgNccB8fFdwoWQ0AdIvUrHuuG51BDImsJWccgnh7wvfPVNuZuNxG74Dy9D4AQGF9VN97J4UfVbz13dIzH X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(366004)(346002)(136003)(39860400002)(376002)(451199021)(2906002)(86362001)(44832011)(66556008)(186003)(26005)(4326008)(6666004)(8676002)(6486002)(83380400001)(6916009)(478600001)(66946007)(66476007)(82960400001)(6512007)(5660300002)(8936002)(316002)(38100700002)(53546011)(6506007)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R2l1dmhNKzBrbHNJQ3k3UzJlTVpzVUE2MWRab1lidVNXR2J2dCt1QlhzYVFx?= =?utf-8?B?a09TZGgralFneHNPbW4ybU1TS2NPMXI5dHY1V1RGVjc4S3ZQTGFnWG92OUpY?= =?utf-8?B?T2FFQVAwY2ZkWk1RbHRJK2ZkQm1xRkxJK0s1Z2FrWGJMb3J1Tlo1YklBRTBq?= =?utf-8?B?Q2s3Ny81eGxiRTlNSDBGayt5VUJQbjkrbVRRQUFDbjR4NjhZT3Bwb0ZBeXpW?= =?utf-8?B?eHBIU0FsbkFDSnRZZ2g3ZmwwRXpDN21aa3Q2b3BnMGFFSDZZd2NYdGhVQmp2?= =?utf-8?B?emVDenltV0xJTTNFaElQUlRORmFpTW1USVJLandLZTFSUGg0bGhVVUs0WEdT?= =?utf-8?B?RmhtRTBnVkN2TkFPTkd3OUlWakl1YWQ0aVlHQWRaNGE2cFNKOHkyNkJqay9i?= =?utf-8?B?TXJ1Vjdja1lyK1RmUzFuK1l3d2lpK0UrSkw3RmZ6N3Q0RmNQK1VOb3A1NWor?= =?utf-8?B?b1JYUS9VU3l4MU96c2k2QTBMU2FIZkUzT3lidWp3Wm1GdHhjL3FVNUxRdHRE?= =?utf-8?B?OTJMY3VsYjdWT1pwL2tGOTNvZ3kzMzVubVdXYlhHVUx6YzRZdTdKRHg2YU1S?= =?utf-8?B?V1dPM3FpSGt4THBPazlmOVloOW5leTlRTkxNTFV1VDZRUTNiTjIyekN5YlR6?= =?utf-8?B?eDc0bjNlUmJtaX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U0eWRwajQ5blV6bzlvdVR2bVpyenRNejBabXhralpxTVZ2ZDBSS3B4?= =?utf-8?B?NWpvMFN5NWpDTE0yY2ZQM0tCbktzY3BTMGNzMFJsTHo4UHFPQU5sNWxZTzFj?= =?utf-8?B?anRlOVpEYlJ5d0VXS1U3Vzk5T3RwT04weXlIdlBYekVOMFhTRm9ScE1paWJK?= =?utf-8?B?dVU1emppRjRIeXZPNTlTOWdjclEzNkQrZ2JZeEtUQy92bDl0bzRjNEFVbFZq?= =?utf-8?B?eS81S09vNWdnc2tCUldXU1NYUHZCajkrMlh5ZEE1QjZyWFFlMTdOQk1FNkpv?= =?utf-8?B?ZEs1eHdtMWZyc1Y3ZzlDWkw4TWF1MUlXc05BWGVNbE5YWU1ZekRUVFRHcVZj?= =?utf-8?B?S3d1b3ZNeE1FaWcya01zYXZMZXNxZ2VMd3VJemxmbk0zU3haa1FxUWdlN2d4?= =?utf-8?B?ODFVa3N0MHdYcldhKzRsM3EzZEJ4Mis0ZzR5TEtmNTk2Qlk2aGdBS01YSkpY?= =?utf-8?B?WFRuVnBsbDdiVDdRRTRUbUhpdWd0Rm9RU1ZmV3BCNzF2Y01kRjFtdW1DUzFz?= =?utf-8?B?R3dkMkF2djZ3WXpOSjllaXcyMEkzWnZRS1QrKzlMbGVRODZQRGVpNmh1ZFNW?= =?utf-8?B?OFE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 6321f13e-4d4d-4957-54b4-08db31000b89 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2023 09:20:46.9071 (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: 8E+RWWycG8mysLV9X6SnTHWk4zQqlq8cHcon/pn3MRUz8MGmG02FTmvcHhGVfWffE+DvUJsDuXiBJmbJXmBONZbftldX8s+OuF6eeWQu5f8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7342 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 On Thu, Mar 30, 2023 at 01:57:52PM +0530, Prashant Upadhyaya wrote: > Hi, > FYI, when replying on list, it's best not to top-post, but put your replies below the email snippet you are replying to. > The hash creation API throws the following error -- > RING: Cannot reserve memory for tailq > HASH: memory allocation failed > > The timer subsystem init api throws this error -- > EAL: memzone_reserve_aligned_thread_unsafe(): Number of requested > memzone segments exceeds RTE_MAX_MEMZONE > Can you try increasing RTE_MAX_MEMZONE. It' defined in DPDK's rte_config.h file, so edit that and then rebuild DPDK. [If you are using the built-in DPDK from VPP, you may need to do a patch for this, add it into the VPP patches direction and then do a VPP rebuild.] Let's see if we can get rid of at least one of the error messages. :-) /Bruce > I did check the code and apparently the memzone and rte zmalloc > related api's are not being able to allocate memory. > > Regards > -Prashant > > On Thu, Mar 30, 2023 at 1:30 PM Bruce Richardson > wrote: > > > > On Thu, Mar 30, 2023 at 10:30:24AM +0530, Prashant Upadhyaya wrote: > > > Hi, > > > > > > While trying to port some code to VPP (which uses DPDK as the backend > > > driver), I am running into a problem that calls to API's like > > > rte_timer_subsystem_init, rte_hash_create are failing while allocation > > > of memory. > > > > > > This is presumably because VPP inits the EAL with the following arguments -- > > > > > > -in-memory --no-telemetry --file-prefix vpp > > > > > > Is there is something that can be done eg. passing some more parms in > > > the EAL initialization which hopefully wouldn't break VPP but will > > > also be friendly to the RTE timer and hash functions too, that would > > > be great, so requesting some advice here. > > > > > Hi, > > > > can you provide some more details on what the errors are that you are > > receiving? Have you been able to dig a little deeper into what might be > > causing the memory failures? The above flags alone are unlikely to cause > > issues with hash or timer libraries, for example. > > > > /Bruce