Cover Detail
Show a cover letter.
GET /api/covers/62107/?format=api
http://patchwork.dpdk.org/api/covers/62107/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/cover/20191028140122.9592-1-olivier.matz@6wind.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20191028140122.9592-1-olivier.matz@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191028140122.9592-1-olivier.matz@6wind.com", "date": "2019-10-28T14:01:17", "name": "[0/5] mempool: avoid objects allocations across pages", "submitter": { "id": 8, "url": "http://patchwork.dpdk.org/api/people/8/?format=api", "name": "Olivier Matz", "email": "olivier.matz@6wind.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/cover/20191028140122.9592-1-olivier.matz@6wind.com/mbox/", "series": [ { "id": 7108, "url": "http://patchwork.dpdk.org/api/series/7108/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=7108", "date": "2019-10-28T14:01:17", "name": "mempool: avoid objects allocations across pages", "version": 1, "mbox": "http://patchwork.dpdk.org/series/7108/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/covers/62107/comments/", "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8D7371BEC6;\n\tMon, 28 Oct 2019 15:01:52 +0100 (CET)", "from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com\n\t[62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 519321BEC5\n\tfor <dev@dpdk.org>; Mon, 28 Oct 2019 15:01:51 +0100 (CET)", "from glumotte.dev.6wind.com. (unknown [10.16.0.195])\n\tby proxy.6wind.com (Postfix) with ESMTP id 1BB473373B1;\n\tMon, 28 Oct 2019 15:01:51 +0100 (CET)" ], "From": "Olivier Matz <olivier.matz@6wind.com>", "To": "dev@dpdk.org", "Cc": "Anatoly Burakov <anatoly.burakov@intel.com>,\n\tAndrew Rybchenko <arybchenko@solarflare.com>,\n\tFerruh Yigit <ferruh.yigit@linux.intel.com>,\n\t\"Giridharan, Ganesan\" <ggiridharan@rbbn.com>,\n\tJerin Jacob Kollanukkaran <jerinj@marvell.com>,\n\t\"Kiran Kumar Kokkilagadda\" <kirankumark@marvell.com>,\n\tStephen Hemminger <sthemmin@microsoft.com>,\n\tThomas Monjalon <thomas@monjalon.net>,\n\tVamsi Krishna Attunuru <vattunuru@marvell.com>", "Date": "Mon, 28 Oct 2019 15:01:17 +0100", "Message-Id": "<20191028140122.9592-1-olivier.matz@6wind.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20190719133845.32432-1-olivier.matz@6wind.com>", "References": "<20190719133845.32432-1-olivier.matz@6wind.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 0/5] mempool: avoid objects allocations across\n\tpages", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "KNI supposes that mbufs are contiguous in kernel virtual memory. This\nmay not be true when using the IOVA=VA mode. To fix this, a possibility\nis to ensure that objects do not cross page boundaries in mempool. This\npatchset implements this in the last patch (5/5).\n\nThe previous patches prepare the job:\n- allow to populate with an unaligned virtual area (1/5).\n- reduce spaced wasted in the mempool size calculation when not using\n the iova-contiguous allocation (2/5).\n- remove the iova-contiguous allocation when populating mempool (3/5):\n a va-contiguous alloc does the job as well if we want to populate\n without crossing page boundaries, so simplify the mempool populate\n function.\n- export a function to get the minimum page used in a mempool (4/5)\n\nMemory consumption impact when using hugepages:\n- worst case: + ~0.1% for a mbuf pool (objsize ~= 2368)\n- best case: -50% for if pool size is just above page size\n\nThe memory consumption impact with 4K pages in IOVA=VA mode could\nhowever consume up to 75% more memory for mbuf pool, because there will\nbe only 1 mbuf per page. Not sure how common this usecase is.\n\nCaveat: this changes the behavior of the mempool (calc_mem_size and\npopulate), and there is a small risk to break things, especially with\nalternate mempool drivers.\n\nrfc -> v1\n\n* remove first cleanup patch, it was pushed separately\n a2b5a8722f20 (\"mempool: clarify default populate function\")\n* add missing change in rte_mempool_op_calc_mem_size_default()\n* allow unaligned addr/len in populate virt\n* better split patches\n* try to better explain the change\n* use DPDK align macros when relevant\n\nOlivier Matz (5):\n mempool: allow unaligned addr/len in populate virt\n mempool: reduce wasted space on mempool populate\n mempool: remove optimistic IOVA-contiguous allocation\n mempool: introduce function to get mempool page size\n mempool: prevent objects from being across pages\n\n lib/librte_mempool/rte_mempool.c | 140 +++++++------------\n lib/librte_mempool/rte_mempool.h | 12 +-\n lib/librte_mempool/rte_mempool_ops.c | 4 +-\n lib/librte_mempool/rte_mempool_ops_default.c | 57 ++++++--\n lib/librte_mempool/rte_mempool_version.map | 1 +\n 5 files changed, 114 insertions(+), 100 deletions(-)" }{ "id": 62107, "url": "