Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/48127/?format=api
http://patches.dpdk.org/api/patches/48127/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/979a0e8fbbef524e2c07d80265c8cc440382a450.1542291869.git.anatoly.burakov@intel.com/", "project": { "id": 1, "url": "http://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": "<979a0e8fbbef524e2c07d80265c8cc440382a450.1542291869.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/979a0e8fbbef524e2c07d80265c8cc440382a450.1542291869.git.anatoly.burakov@intel.com", "date": "2018-11-15T15:47:20", "name": "[RFC,v2,8/9] usertools: add hugepage info script", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": true, "hash": "814d9fe2072f3455086f21c1cda7e2275022c5fb", "submitter": { "id": 4, "url": "http://patches.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/979a0e8fbbef524e2c07d80265c8cc440382a450.1542291869.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 2442, "url": "http://patches.dpdk.org/api/series/2442/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2442", "date": "2018-11-15T15:47:16", "name": "Modularize and enhance DPDK Python scripts", "version": 2, "mbox": "http://patches.dpdk.org/series/2442/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/48127/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/48127/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C8B2E4F94;\n\tThu, 15 Nov 2018 16:47:32 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 52E574CAB\n\tfor <dev@dpdk.org>; Thu, 15 Nov 2018 16:47:25 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t15 Nov 2018 07:47:24 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga001.fm.intel.com with ESMTP; 15 Nov 2018 07:47:23 -0800", "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\twAFFlM4J024814; Thu, 15 Nov 2018 15:47:22 GMT", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id wAFFlM7Z028150;\n\tThu, 15 Nov 2018 15:47:22 GMT", "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id wAFFlMLX028146;\n\tThu, 15 Nov 2018 15:47:22 GMT" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.56,236,1539673200\"; d=\"scan'208\";a=\"108355352\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "john.mcnamara@intel.com, bruce.richardson@intel.com,\n\tpablo.de.lara.guarch@intel.com, david.hunt@intel.com,\n\tmohammad.abdul.awal@intel.com, thomas@monjalon.net,\n\tferruh.yigit@intel.com", "Date": "Thu, 15 Nov 2018 15:47:20 +0000", "Message-Id": "<979a0e8fbbef524e2c07d80265c8cc440382a450.1542291869.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": [ "<cover.1542291869.git.anatoly.burakov@intel.com>", "<cover.1542291869.git.anatoly.burakov@intel.com>" ], "References": [ "<cover.1542291869.git.anatoly.burakov@intel.com>", "<cover.1529940601.git.anatoly.burakov@intel.com>\n\t<cover.1542291869.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [RFC v2 8/9] usertools: add hugepage info script", "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": "Add a simple hugepage info script for demonstration purposes.\n\nIt lists the following information:\n- Currently configured persistent hugetlbfs mountpoints (fstab)\n- Currently mounted hugetlbfs mountpoints\n- Total number of hugepages for each size\n- Per-NUMA node number of hugepages for each size\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n usertools/hugepage-info.py | 32 ++++++++++++++++++++++++++++++++\n 1 file changed, 32 insertions(+)\n create mode 100755 usertools/hugepage-info.py", "diff": "diff --git a/usertools/hugepage-info.py b/usertools/hugepage-info.py\nnew file mode 100755\nindex 000000000..bbea35e7b\n--- /dev/null\n+++ b/usertools/hugepage-info.py\n@@ -0,0 +1,32 @@\n+#!/usr/bin/env python\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Intel Corporation\n+\n+\n+from __future__ import print_function\n+from DPDKConfigLib import HugeUtil, PlatformInfo, Util\n+\n+pc = HugeUtil.PersistentMountpointConfig()\n+print(\"Persistent hugetlbfs mountpoints:\")\n+\n+for sz, mp in pc.mountpoints.items():\n+ print(\"%s: %s\" % (Util.kilobytes_to_human_readable(sz), mp))\n+\n+rc = HugeUtil.RuntimeMountpointConfig()\n+print(\"Current hugetlbfs mountpoints:\")\n+\n+for sz, mp in rc.mountpoints.items():\n+ print(\"%s: %s\" % (Util.kilobytes_to_human_readable(sz), mp))\n+\n+info = PlatformInfo.PlatformInfo()\n+rhc = HugeUtil.RuntimeHugepageConfig()\n+print(\"Current hugepage configuration:\")\n+for sz, nr in rhc.total_nr_hugepages.items():\n+ print(\"%s: %s\" % (Util.kilobytes_to_human_readable(sz), nr))\n+\n+print(\"Current per-NUMA node configuration:\")\n+for node in info.numa_nodes:\n+ for pagesz in info.hugepage_sizes_supported:\n+ print(\"[Node %s] %s: %s\" % (node,\n+ Util.kilobytes_to_human_readable(pagesz),\n+ rhc.hugepages_per_node[node, pagesz]))\n", "prefixes": [ "RFC", "v2", "8/9" ] }{ "id": 48127, "url": "