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 71E14A0564 for ; Tue, 24 Mar 2020 11:54:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CCE621C0C4; Tue, 24 Mar 2020 11:54:35 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 61CF81C0AB for ; Tue, 24 Mar 2020 11:54:33 +0100 (CET) IronPort-SDR: nP7BB8HlT/NCHPq2FQUNXyNMBVsauFATeoGu+UgIOyprJTNJNcm6ZXov05DE9ZtR69juCYyryf Y6dXjMAuntpQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2020 03:54:32 -0700 IronPort-SDR: XQ0VnC3v/zXlOnsOK4gjcn1yQ7hvfG8N2gpoPxW9OzOHnbOAPXn6797dLZ+0FW2pEQQNTlb9Cl LXqElVk1L7tg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,300,1580803200"; d="scan'208,217";a="250005244" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by orsmga006.jf.intel.com with ESMTP; 24 Mar 2020 03:54:32 -0700 Received: from orsmsx123.amr.corp.intel.com (10.22.240.116) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 24 Mar 2020 03:54:32 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX123.amr.corp.intel.com (10.22.240.116) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 24 Mar 2020 03:54:32 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 24 Mar 2020 03:54:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KXcX96RS6Zp1Az9bjsuWNDDAUw7t3hQyyWgo5fkUkykgMFZElUOK4s9u/M4sNrdf28rTb8Ao4APfUtmWXR9dpwFsrFfkGhBGDOEXWTwdhFHCChDkFhPkU2qlN6lV6cU3U+D6/6NQoTCSqfBvB0V0FSSVYz0Q6DYFPb4aRn4ByFq/YLFEW9bwSpwnk+v+jP3icLlkqJIPqRXOImKuohJFswk/B0idPScF5BRoDA4rAVxTw+No6eSBiMSoFjGZ+EwobE99sKFwvEVb4S8nQXk2UrhGCPwrrUEAPFEj7MdC/jEZxtEnMTBCbnvnU6XfabAm35VE+TFH7164MDm6o3y7Jg== 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=4qgWHCZGlOLKKIwPP9pYM5AJLHTD+cYEXXG5ZBmqAAk=; b=JRO0quyuy56wsLuRNVnUgmD1Jr29hKXrCULXfKjvQRyOqlvdbgq6AqPQix/80RHg0LPTGygEv39zPf/mlWpSSbZd2wG20NeALRAlBPmr5VK0yTR50+B1DHlkFn0ZJqF4XNStAWmdVLrtqUd/ePBmrjqLLL+7qpbSXIjWsge+IXHE9e0wdSndHvj1DUhx7KhoygADp/NTQSICFDf7lDlU4KibZkjH321rVSN4h8YkLR01mujqKOt9DBrpBu0Bri0HkV4SzclNXWFrW99bwSJIh3en5qjqzC8EtRGNxdZ14S/AErHPVppBnnPHf4cPuBxyWjFL9oAwS7f78W+NZT4JnA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4qgWHCZGlOLKKIwPP9pYM5AJLHTD+cYEXXG5ZBmqAAk=; b=WPJv3U06qOr83MptaGKFP0TBZ3TIEWxLMhM9J2vKChhfk8C1kf/3u++I40CrbzJUMeFZg9vVzdjTCtZhS0vFuTgOMvWLRyUBGToiZnkuFIpEvlEDlAtnnZHZFPREyDVd8nx6P4FZRH4xcyxZJtwq86ak1oPd1NEYyGFi+hIFWEY= Received: from BYAPR11MB3143.namprd11.prod.outlook.com (2603:10b6:a03:92::32) by BYAPR11MB3685.namprd11.prod.outlook.com (2603:10b6:a03:fa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20; Tue, 24 Mar 2020 10:54:30 +0000 Received: from BYAPR11MB3143.namprd11.prod.outlook.com ([fe80::2c49:cfd1:b7a5:a915]) by BYAPR11MB3143.namprd11.prod.outlook.com ([fe80::2c49:cfd1:b7a5:a915%3]) with mapi id 15.20.2835.021; Tue, 24 Mar 2020 10:54:30 +0000 From: "Van Haaren, Harry" To: =?iso-2022-jp?B?GyRCQVc+ORsoQg==?= , 'users' , 'Stephen Hemminger' Thread-Topic: ojectes from the mempool are disorderd by rte_mempool_generic_get Thread-Index: AdYBmj5xRgN9nW3CTRuxhpkTUmRYYgAL77Lw Date: Tue, 24 Mar 2020 10:54:30 +0000 Message-ID: References: <000001d6019b$519bec20$f4d3c460$@zctt.com>+C7981C25CE3229DA In-Reply-To: <000001d6019b$519bec20$f4d3c460$@zctt.com>+C7981C25CE3229DA Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: spf=none (sender IP is ) smtp.mailfrom=harry.van.haaren@intel.com; x-originating-ip: [192.198.151.185] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 732651f3-c7f2-45a6-b258-08d7cfe1bab7 x-ms-traffictypediagnostic: BYAPR11MB3685: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 03524FBD26 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(136003)(39860400002)(376002)(396003)(346002)(81156014)(81166006)(316002)(86362001)(478600001)(9686003)(8936002)(66476007)(55016002)(2906002)(33656002)(110136005)(76116006)(64756008)(8676002)(66446008)(66946007)(52536014)(186003)(66556008)(71200400001)(26005)(5660300002)(7696005)(9326002)(6506007)(53546011)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR11MB3685; H:BYAPR11MB3143.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yFg0kPynrXLmpgSCdgwowNl124iRhffdRukb1JQmXzbdBYRmPLnQLfLDtHJrDyE7RI9jzf1IqMYymqicll8TjJGeVg8lxwlbEUHmNznsaG1fP2b4FeYatrL/CjQkLHfge2nBs7Ky+SoUoVxVvR1d2XYRF6YTm1C5RxqediVxpf/tmpuidz9ul1N8PwQq35Tcx1qPQQDZXu6anU+q0zg41f3idRs/Myu2iexvKuwvdI7OSMo9otpNA4NcVitJ7nKyv1S12OmA2EzaYfpAUPWUheOXp1bayi+6TPXciElyvlzJLFXuKWhRpA/4qLU4QQyOS5wVeOAv33fz7CKn3VLrIhRn86T9ZaKqJlsGhghtkj2Y2Vtfca9Z0xSwMCp1O+N8fN/KFX5v8WHBPLqKdN1oXHMV/hMPgpMUICt0I99+euxkSEdXHxNxPVWOobUnizmNXZT16xsAcLZzyRAnTvBoh+E5M2rBkh+ZLVimGvWDlK3IdJ8/dQ+9aQEhguZk13/X x-ms-exchange-antispam-messagedata: FKJgM4cDEvU2mGTBtl1/ClhIgviZjmI+oXSaIgnaL47TkV7Cj08caW5y+ZqgE6NNP/taiO18V5VrRTLv6qNaLaPYia1NZuJt6/mTZtT/FiYRU6d4KgnbFk+OzFUtSUdOWEAvsPwQ2pOYk7ddkENLGg== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 732651f3-c7f2-45a6-b258-08d7cfe1bab7 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2020 10:54:30.2157 (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: KHXpAlTCQ9nH6Trvr5RbByBLZlgqHsbUvKFF/1qK1ksmuGVh2B8c8risW1rTvLYnYQVvM2vz3VGRVpYEdVJDkAznWOE29a0wTHZXsnvWV1c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3685 X-OriginatorOrg: intel.com Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] ojectes from the mempool are disorderd by rte_mempool_generic_get X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi Jie, Mempools don't provide any promise of dequeuing objects in a specific order= . The mempool data-structure actually has a per-lcore cache which allows re= cycling buffers on a per-lcore basis, providing better performance (and cer= tainly breaking your ordering hopes). If you need strict I/O ordering from a datastructure, I suggest using a rte= _ring. The ring datastructure is a FIFO, so the first packets you enqueue w= ill be the first to dequeue too. Regardless of the rte_ring_dequeue_burst()= size parameter, calling 1x 10 times, or 10x calls with 1 packet, the mbufs= returned will be in the same order. Hope that helps, -Harry From: =1B$BAW>9=1B(B Sent: Tuesday, March 24, 2020 5:16 AM To: 'users' ; 'Stephen Hemminger' ; Van Haaren, Harry Subject: ojectes from the mempool are disorderd by rte_mempool_generic_get Hi all, I created a packet mbuf pool (rte_pktmbuf_pool_create) for saving some pack= ets, And using rte_mempool_obj_iter for put hundreds of packets (from a pca= p file) into the packet pool. Finally I need to get ten packets from the packet pool. If I call rte_mempool_generic_get for one packet each time, and try 10 time= s, then I can get ten packets in correct order; But if call rte_mempool_generic_get for ten packets one time, then these te= n packets are disordered. So using rte_mempool_generic_get for getting multi objects, it will return = disorder objects from the mbuf pool? If there=1B$B!G=1B(Bs any other way for can get objects from the mempool or= derly I used DPDK18.05 Thanks Jie