Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/4219/?format=api
https://patches.dpdk.org/api/patches/4219/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1427974230-8572-1-git-send-email-jerry.lilijun@huawei.com/", "project": { "id": 1, "url": "https://patches.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": "<1427974230-8572-1-git-send-email-jerry.lilijun@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1427974230-8572-1-git-send-email-jerry.lilijun@huawei.com", "date": "2015-04-02T11:30:30", "name": "[dpdk-dev] eal: decrease the memory init time with many hugepages setup", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "aa3b37e6caf848c4a72aef311d2ddeb93a2aae08", "submitter": { "id": 205, "url": "https://patches.dpdk.org/api/people/205/?format=api", "name": "Lilijun (Jerry)", "email": "jerry.lilijun@huawei.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1427974230-8572-1-git-send-email-jerry.lilijun@huawei.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/4219/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/4219/checks/", "tags": {}, "related": [], "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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 366F07F1C;\n\tThu, 2 Apr 2015 13:30:57 +0200 (CEST)", "from szxga03-in.huawei.com (szxga03-in.huawei.com [119.145.14.66])\n\tby dpdk.org (Postfix) with ESMTP id 42BE67F1C\n\tfor <dev@dpdk.org>; Thu, 2 Apr 2015 13:30:54 +0200 (CEST)", "from 172.24.2.119 (EHLO szxeml430-hub.china.huawei.com)\n\t([172.24.2.119])\n\tby szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued)\n\twith ESMTP id BDY44100; Thu, 02 Apr 2015 19:30:47 +0800 (CST)", "from localhost (10.177.19.236) by szxeml430-hub.china.huawei.com\n\t(10.82.67.185) with Microsoft SMTP Server id 14.3.158.1;\n\tThu, 2 Apr 2015 19:30:36 +0800" ], "From": "<jerry.lilijun@huawei.com>", "To": "<dev@dpdk.org>", "Date": "Thu, 2 Apr 2015 19:30:30 +0800", "Message-ID": "<1427974230-8572-1-git-send-email-jerry.lilijun@huawei.com>", "X-Mailer": "git-send-email 1.9.4.msysgit.1", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.177.19.236]", "X-CFilter-Loop": "Reflected", "X-Mirapoint-Virus-RAPID-Raw": "score=unknown(0),\n\trefid=str=0001.0A020205.551D2867.00EC, ss=1, re=0.001, recu=0.000,\n\treip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0,\n\tso=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32", "X-Mirapoint-Loop-Id": "045011132941f608296dd354be6691c7", "Subject": "[dpdk-dev] [PATCH] eal: decrease the memory init time with many\n\thugepages setup", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Lilijun <jerry.lilijun@huawei.com>\n\nIn the function map_all_hugepages(), hugepage memory is truly allocated by\nmemset(virtaddr, 0, hugepage_sz). Then it costs about 40s to finish the\ndpdk memory initialization when 40000 2M hugepages are setup in host os.\nIn fact we can only write one byte to finish the allocation.\n\nSigned-off-by: Lilijun <jerry.lilijun@huawei.com>\n---\n lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c\nindex 5f9f92e..8bbee9c 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_memory.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_memory.c\n@@ -378,7 +378,7 @@ map_all_hugepages(struct hugepage_file *hugepg_tbl,\n \n \t\tif (orig) {\n \t\t\thugepg_tbl[i].orig_va = virtaddr;\n-\t\t\tmemset(virtaddr, 0, hugepage_sz);\n+\t\t\tmemset(virtaddr, 0, 1);\n \t\t}\n \t\telse {\n \t\t\thugepg_tbl[i].final_va = virtaddr;\n", "prefixes": [ "dpdk-dev" ] }{ "id": 4219, "url": "