From patchwork Tue Dec 9 12:02:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "De Lara Guarch, Pablo" X-Patchwork-Id: 1891 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 4FA228042; Tue, 9 Dec 2014 13:02:38 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 3FA043F9 for ; Tue, 9 Dec 2014 13:02:27 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 09 Dec 2014 04:02:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,544,1413270000"; d="scan'208,217";a="644782202" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 09 Dec 2014 04:02:16 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id sB9C2FLS017288; Tue, 9 Dec 2014 12:02:15 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id sB9C2FXH011974; Tue, 9 Dec 2014 12:02:15 GMT Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id sB9C2FW6011970; Tue, 9 Dec 2014 12:02:15 GMT From: Pablo de Lara To: dev@dpdk.org Date: Tue, 9 Dec 2014 12:02:06 +0000 Message-Id: <1418126528-22287-2-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1418126528-22287-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1417193202-23972-1-git-send-email-pablo.de.lara.guarch@intel.com> <1418126528-22287-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] =?utf-8?q?=5BPATCH_v3_1/3=5D_doc=3A_add_vm_power_mgmt_?= =?utf-8?q?overview_svg?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Added first of the two figures in the VM power management app UG: VM power mangament highlevel overview Signed-off-by: Alan Carew Signed-off-by: Pablo de Lara Acked-by: Bernard Iremonger --- .../sample_app_ug/img/vm_power_mgr_highlevel.svg | 742 ++++++++++++++++++++ 1 files changed, 742 insertions(+), 0 deletions(-) create mode 100644 doc/guides/sample_app_ug/img/vm_power_mgr_highlevel.svg diff --git a/doc/guides/sample_app_ug/img/vm_power_mgr_highlevel.svg b/doc/guides/sample_app_ug/img/vm_power_mgr_highlevel.svg new file mode 100644 index 0000000..bc07dfe --- /dev/null +++ b/doc/guides/sample_app_ug/img/vm_power_mgr_highlevel.svg @@ -0,0 +1,742 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Page-1 + + Box + Host + + + + + Host + + 1-D single.59 + + Sheet.63 + + + + + + + + + Sheet.64 + + + + + + + Sheet.65 + + + + + + + + 1-D single.54 + + Sheet.56 + + + + + + + + + Sheet.57 + + + + + + + Sheet.58 + + + + + + + + Box.10 + VM 0 + + + + + VM 0 + + Box.2 + Core 0 + + + + + Core 0 + + Box.3 + Core 1 + + + + + Core 1 + + Box.4 + Core 2 + + + + + Core 2 + + Box.5 + Core 3 + + + + + Core 3 + + Box.6 + Core 4 + + + + + Core 4 + + Box.7 + Core 5 + + + + + Core 5 + + Box.8 + Core 6 + + + + + Core 6 + + Box.9 + Core 7 + + + + + Core 7 + + Box.11 + Virtual Core 0 + + + + + Virtual Core 0 + + Box.12 + Virtual Core 1 + + + + + Virtual Core 1 + + Box.13 + Virtual Core 2 + + + + + Virtual Core 2 + + Box.14 + Virtual Core 3 + + + + + Virtual Core 3 + + 1-D single + + Sheet.17 + + + + + + + + + Sheet.18 + + + + + + + Sheet.19 + + + + + + + + 1-D single.20 + + Sheet.21 + + + + + + + + + Sheet.22 + + + + + + + Sheet.23 + + + + + + + + 1-D single.28 + + Sheet.29 + + + + + + + + + Sheet.30 + + + + + + + Sheet.31 + + + + + + + + Box.32 + DPDK Application + + + + + DPDK Application + + Box.33 + VM 1 + + + + + VM 1 + + Box.34 + Virtual Core 0 + + + + + Virtual Core 0 + + Box.35 + Virtual Core 1 + + + + + Virtual Core 1 + + Box.36 + DPDK Application + + + + + DPDK Application + + Box.49 + DPDK VM Application Reuse librte_power interface, but provide... + + + + + DPDK VM Application · Reuse librte_power interface, but provides a new implementation that forwards frequency set requests to host via Virtio-Serial channel · Each lcore has exclusive access to a single channel · Sample application re-uses l3fwd_power · A CLI for changing frequency from within a VM is also included. + + 1-D single.37 + + Sheet.38 + + + + + + + + + Sheet.39 + + + + + + + Sheet.40 + + + + + + + + Box.15 + OS/Hypervisor + + + + + OS/Hypervisor + + Box.55 + Linux “userspace” power governor /sys/devices/system/cpu/cpuN... + + + + + Linux “userspace” power governor /sys/devices/system/cpu/cpuN/cpufreq/ + + Box.45 + VM Power Monitor Accepts VM Commands over Virtio Serial endpo... + + + + + VM Power Monitor · Accepts VM Commands over Virtio Serial endpoints, monitored via epoll · Commands include the virtual core to be modified, using libvirt to get physical core mapping · Uses librte_power to affect frequency changes via Linux userspace power governor(APCI cpufreq) · CLI: For adding VM channels to monitor, inspecting and changing channel state, manually altering CPU frequency. Also allows for the changing of vCPU to pCPU pinning. + + Box.53 + VM Power Monitor Application + + + + + VM Power Monitor Application + + Box.61 + librte_power(vm) + + + + + librte_power(vm) + + Box.48 + lcore channel 0 + + + + + lcore channel 0 + + Box.47 + librte_power(vm) + + + + + librte_power(vm) + + Box.46 + lcore channel 1 + + + + + lcore channel 1 + + Box.60 + lcore channel 2 + + + + + lcore channel 2 + + Box.62 + lcore channel 3 + + + + + lcore channel 3 + + Box.50 + lcore channel 0 + + + + + lcore channel 0 + + Box.52 + lcore channel 1 + + + + + lcore channel 1 + + Box.51 + Endpoint Monitor(lcore channels) + + + + + Endpoint Monitor(lcore channels) + + Box.25 + Channel Manager + + + + + Channel Manager + + Box.41 + QEMU + + + + + QEMU + + Box.42 + libvirt + + + + + libvirt + + Dynamic connector.43 + + + + Dynamic connector + + + + Box.26 + librte_power(Host) + + + + + librte_power(Host) + + Dynamic connector.68 + Map vCPU to pCPU + + + Map vCPU to pCPU + + Box.27 + VM Power CLI + + + + + VM Power CLI + +