From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx00.mlp.com (mx00.mlp.com [204.212.175.136]) by dpdk.org (Postfix) with ESMTP id 0855C2C57 for ; Wed, 1 Feb 2017 17:54:59 +0100 (CET) IronPort-PHdr: =?us-ascii?q?9a23=3AxVmSRRxA/z1rCJHXCy+O+j09IxM/srCxBDY+r6Qd?= =?us-ascii?q?2+IfIJqq85mqBkHD//Il1AaPBtSHrawbwLuP+4nbGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1?= =?us-ascii?q?Ov71GonPhMiryuy+4ZPebgFHiTanYL5/Lhq6oAHMusILnYZsN6E9xwfTrHBVYe?= =?us-ascii?q?pW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ7NWCjQmKH0169bwtRbf?= =?us-ascii?q?VwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8qFmQwLqhi?= =?us-ascii?q?gaLT406GHZhNJtgqJHrhyvpB1/zJLbb4yOLvVyYqfQcMkGSWZdQMpcUTFKDIOm?= =?us-ascii?q?b4sICuoMJehUoY/nqFoPtxS+HxejBOXsyj9PnnP9wKI10+A7Hg7bwQcsG9IBsH?= =?us-ascii?q?POrNXxKagcSv21w7POzTXfav9a1yr25Y/HfRAlu/6DQKh8f8zLxkguDQzFlEuf?= =?us-ascii?q?qYrmPzOSzekMvW+b7/BkVe2ykm4ntht+oj6zxss2lobJgYcVx0nC+C5kw4g1Pc?= =?us-ascii?q?W1RFNnbdK+FJZcqzuWOoVoTs84TWxlvD42xqAatZKhfCUG0pYqyh7FZ/Cab4SE?= =?us-ascii?q?/wrvVOiPLjp7mH5ofbeyihex/EWuxODxU8a53VhJoyZYl9TMuHEA2wHQ58WCRP?= =?us-ascii?q?tw/F2u1SuJ2gvO8O9LO1o0mrDeK5M5x74wkYccvlrbEy/tnUX2kLeWdkI5+ui0?= =?us-ascii?q?8+jnYqvpppubN4JshQ/xM6ohlNG9D+omLAUCQ3aX9f6g2bPt50H3R7NEgOcsnq?= =?us-ascii?q?bFt5DaINwXpq+/AwBLzoYu8wuzAyu83NkcgXULNlxIdAydg4XnP1zCOPX4Au2+?= =?us-ascii?q?g1Sonjdr3ffGPrj5D5rCKnjMiqrucax75UFGyQs818pf6IxSCrECJ/L+QUHwtN?= =?us-ascii?q?vCDh89LgO02vvnB8971oMCQ26AHqiZMKbKvV+S+u0vO/WMZJMSuDvlNvgl/ODh?= =?us-ascii?q?jWUimVIGYKapxYYYaHOiEvRhOUWZbimkvtBUWygXpQckV8TmkFGBFzlJaDn4F/?= =?us-ascii?q?Yh/TwhE6qqFYvAAIe3j+rS8j28G8gcQmlUA0qBF3TvM826X/4AIGKtJdVlngUZ?= =?us-ascii?q?XL69CsVpgS+qvQO877N1J/DZ/C4fnY3kztx5/vDakw10/jtxWZfOm1qRRn15yz?= =?us-ascii?q?tbDwQ927py9BRw?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FnBgATEpJY/ycgWgpdHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBgkSBNRCBEKJ+jGyHOBqGCAKCfxQBAQEBAQEBAQEBAQKBB4IzGYJ?= =?us-ascii?q?RXgEMCRVWJgEEG7kGJosIAQEIAiaGTIk9gzKCMQWJDJJQAYFMlAmGfIYukwE2g?= =?us-ascii?q?W2FSIFIiAaBDAEBAQ?= X-IPAS-Result: =?us-ascii?q?A2FnBgATEpJY/ycgWgpdHAEBBAEBCgEBFwEBBAEBCgEBgkS?= =?us-ascii?q?BNRCBEKJ+jGyHOBqGCAKCfxQBAQEBAQEBAQEBAQKBB4IzGYJRXgEMCRVWJgEEG?= =?us-ascii?q?7kGJosIAQEIAiaGTIk9gzKCMQWJDJJQAYFMlAmGfIYukwE2gW2FSIFIiAaBDAE?= =?us-ascii?q?BAQ?= X-IronPort-AV: E=Sophos;i="5.33,320,1477972800"; d="scan'208,217";a="17764964" X-IronPort-Outbreak-Status: No, level 0, Unknown - Unknown Received: from unknown (HELO EXUSHTC02.AD.MLP.com) ([10.90.32.39]) by smtprfp0.mlp.com with ESMTP; 01 Feb 2017 11:54:58 -0500 Received: from EXUSMBX02.AD.MLP.com ([fe80::6833:4381:f618:f7a1]) by EXUSHTC02.AD.MLP.com ([::1]) with mapi id 14.03.0248.002; Wed, 1 Feb 2017 11:54:58 -0500 From: "Lazarenko, Vlad (WorldQuant)" To: "'users@dpdk.org'" Thread-Topic: Optimal number of elements in mempool n = (2^q - 1) vs examples, what is the right thing to do? Thread-Index: AdJ8q+g7GjzPNkKmTUuE9ZoepKmSJg== Date: Wed, 1 Feb 2017 16:54:57 +0000 Message-ID: <790E2AC11206AC46B8F4BB82078E34F8062736DF@EXUSMBX02.AD.MLP.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.5.75.101] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Optimal number of elements in mempool n = (2^q - 1) vs examples, what is the right thing to do? 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: , X-List-Received-Date: Wed, 01 Feb 2017 16:55:00 -0000 Hello, I'm new to DPDK and have noticed that documentation for rte_mempool_create = states that the optimal size for a number of elements in the pool is n =3D = (2^q-1). But in many examples it is simply set to 2^q (multi_process/simple= _mp/main.c uses 2014, for example). This is a bit confusing. Is 2^q - 1 rea= lly the optimal number but examples don't use it, or maybe the documentatio= n for the mempool is wrong, or...? If anyone could shed some light on this = that'd be helpful. Thanks, Vlad ###########################################################################= ######## The information contained in this communication is confidential, may be subject to legal privilege, and is intended only for the individual named. If you are not the named addressee, please notify the sender immediately and delete this email from your system. The views expressed in this email are the views of the sender only. Outgoing and incoming electronic communicati= ons to this address are electronically archived and subject to review and/or di= sclosure to someone other than the recipient. ###########################################################################= ########