Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/73955/?format=api
http://patchwork.dpdk.org/api/patches/73955/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200713151120.957342-2-rory.sexton@intel.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": "<20200713151120.957342-2-rory.sexton@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200713151120.957342-2-rory.sexton@intel.com", "date": "2020-07-13T15:11:19", "name": "[v3,2/3] examples/vm_power_manager: Allowing power managing of idle cores", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "24d41cf9d23c92decbea1be9c6d5c9898f219f4a", "submitter": { "id": 619, "url": "http://patchwork.dpdk.org/api/people/619/?format=api", "name": "Sexton, Rory", "email": "rory.sexton@intel.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200713151120.957342-2-rory.sexton@intel.com/mbox/", "series": [ { "id": 11002, "url": "http://patchwork.dpdk.org/api/series/11002/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=11002", "date": "2020-07-13T15:11:18", "name": "[v3,1/3] examples/vm_power_manager: Make branch ratio threshold per core", "version": 3, "mbox": "http://patchwork.dpdk.org/series/11002/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/73955/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/73955/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id BBF41A0540;\n\tMon, 13 Jul 2020 17:11:33 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 272DD1D635;\n\tMon, 13 Jul 2020 17:11:27 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 6B8221D37F\n for <dev@dpdk.org>; Mon, 13 Jul 2020 17:11:24 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Jul 2020 08:11:22 -0700", "from silpixa00399913.ir.intel.com ([10.237.213.189])\n by fmsmga005.fm.intel.com with ESMTP; 13 Jul 2020 08:11:21 -0700" ], "IronPort-SDR": [ "\n etjEmuU6lb7nzvrbq8qBrwGrHM/SDzCJW4pFL3WDGf9N+A1S09AY20Jd6o1HZVSmVV4xmJO+UC\n s6boVfA6K1ww==", "\n 74HMMbmxA4yMTQwp+YoKDrhb17yRqh6QD5B02SBlEmANcmyyDDkuPY1R05j6rzZ98JlBmcxxj2\n z9d2AFLWgVtw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9681\"; a=\"146660914\"", "E=Sophos;i=\"5.75,347,1589266800\"; d=\"scan'208\";a=\"146660914\"", "E=Sophos;i=\"5.75,347,1589266800\"; d=\"scan'208\";a=\"485521559\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Rory Sexton <rory.sexton@intel.com>", "To": "dev@dpdk.org,\n\tdavid.hunt@intel.com", "Date": "Mon, 13 Jul 2020 16:11:19 +0100", "Message-Id": "<20200713151120.957342-2-rory.sexton@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20200713151120.957342-1-rory.sexton@intel.com>", "References": "<20200713151120.957342-1-rory.sexton@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [v3 2/3] examples/vm_power_manager: Allowing power\n\tmanaging of idle cores", "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This change is required to allow the branch ratio algorithm to\npower manage cores with no workload running on them. This is\nuseful both when idle cores don't use C-states and for a number of\nhyperthreading scenarios.\n\nSigned-off-by: Rory Sexton <rory.sexton@intel.com>\nReviewed-by: David Hunt <david.hunt@intel.com>\n---\n examples/vm_power_manager/oob_monitor_x86.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/examples/vm_power_manager/oob_monitor_x86.c b/examples/vm_power_manager/oob_monitor_x86.c\nindex 3c514475f..a5b1c168c 100644\n--- a/examples/vm_power_manager/oob_monitor_x86.c\n+++ b/examples/vm_power_manager/oob_monitor_x86.c\n@@ -96,12 +96,12 @@ apply_policy(int core)\n \tg_branch_misses = miss_diff;\n \n \tif (hits_diff < (INTERVAL*100)) {\n-\t\t/* Likely no workload running on this core. Skip. */\n-\t\treturn -1.0;\n+\t\t/* Likely no workload running on this core. */\n+\t\tratio = 0.0;\n+\t} else {\n+\t\tratio = (float)miss_diff * (float)100 / (float)hits_diff;\n \t}\n \n-\tratio = (float)miss_diff * (float)100 / (float)hits_diff;\n-\n \t/*\n \t * Store the last few directions that the ratio indicates\n \t * we should take. If there's on 'up', then we scale up\n", "prefixes": [ "v3", "2/3" ] }{ "id": 73955, "url": "