git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
raw/cnxk_bphy: support CGX enqueue operation
[dpdk.git]
/
doc
/
guides
/
sample_app_ug
/
vm_power_management.rst
diff --git
a/doc/guides/sample_app_ug/vm_power_management.rst
b/doc/guides/sample_app_ug/vm_power_management.rst
index
1b6de8e
..
35afdac
100644
(file)
--- a/
doc/guides/sample_app_ug/vm_power_management.rst
+++ b/
doc/guides/sample_app_ug/vm_power_management.rst
@@
-245,26
+245,23
@@
To build just the ``vm_power_manager`` application using ``make``:
.. code-block:: console
.. code-block:: console
- export RTE_SDK=/path/to/rte_sdk
- export RTE_TARGET=build
- cd ${RTE_SDK}/examples/vm_power_manager/
+ cd dpdk/examples/vm_power_manager/
make
make
-The resulting binary is ``
${RTE_SDK}
/build/examples/vm_power_manager``.
+The resulting binary is ``
dpdk
/build/examples/vm_power_manager``.
To build just the ``vm_power_manager`` application using ``meson``/``ninja``:
.. code-block:: console
To build just the ``vm_power_manager`` application using ``meson``/``ninja``:
.. code-block:: console
- export RTE_SDK=/path/to/rte_sdk
- cd ${RTE_SDK}
+ cd dpdk
meson build
cd build
ninja
meson configure -Dexamples=vm_power_manager
ninja
meson build
cd build
ninja
meson configure -Dexamples=vm_power_manager
ninja
-The resulting binary is ``
${RTE_SDK}
/build/examples/dpdk-vm_power_manager``.
+The resulting binary is ``
dpdk
/build/examples/dpdk-vm_power_manager``.
Running the Host Application
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running the Host Application
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@
-274,7
+271,7
@@
than the EAL options:
.. code-block:: console
.. code-block:: console
- ./
build/
vm_power_mgr [EAL options]
+ ./
<build_dir>/examples/dpdk-
vm_power_mgr [EAL options]
The application requires exactly two cores to run. One core for the CLI
and the other for the channel endpoint monitor. For example, to run on
The application requires exactly two cores to run. One core for the CLI
and the other for the channel endpoint monitor. For example, to run on
@@
-282,7
+279,7
@@
cores 0 and 1 on a system with four memory channels, issue the command:
.. code-block:: console
.. code-block:: console
- ./
build/
vm_power_mgr -l 0-1 -n 4
+ ./
<build_dir>/examples/dpdk-
vm_power_mgr -l 0-1 -n 4
After successful initialization, the VM Power Manager CLI prompt appears:
After successful initialization, the VM Power Manager CLI prompt appears:
@@
-462,12
+459,10
@@
the following commands:
.. code-block:: console
.. code-block:: console
- export RTE_SDK=/path/to/rte_sdk
- export RTE_TARGET=build
- cd ${RTE_SDK}/examples/vm_power_manager/guest_cli/
+ cd dpdk/examples/vm_power_manager/guest_cli/
make
make
-The resulting binary is ``
${RTE_SDK}
/build/examples/guest_cli``.
+The resulting binary is ``
dpdk
/build/examples/guest_cli``.
**Note**: This sample application conditionally links in the Jansson JSON
library. Consequently, if you are using a multilib or cross-compile
**Note**: This sample application conditionally links in the Jansson JSON
library. Consequently, if you are using a multilib or cross-compile
@@
-498,15
+493,14
@@
To build just the ``vm_power_manager`` application using ``meson``/``ninja``:
.. code-block:: console
.. code-block:: console
- export RTE_SDK=/path/to/rte_sdk
- cd ${RTE_SDK}
+ cd dpdk
meson build
cd build
ninja
meson configure -Dexamples=vm_power_manager/guest_cli
ninja
meson build
cd build
ninja
meson configure -Dexamples=vm_power_manager/guest_cli
ninja
-The resulting binary is ``
${RTE_SDK}
/build/examples/guest_cli``.
+The resulting binary is ``
dpdk
/build/examples/guest_cli``.
Running the Guest Application
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running the Guest Application
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@
-515,14
+509,14
@@
The standard EAL command line parameters are necessary:
.. code-block:: console
.. code-block:: console
- ./
build/
vm_power_mgr [EAL options] -- [guest options]
+ ./
<build_dir>/examples/dpdk-
vm_power_mgr [EAL options] -- [guest options]
The guest example uses a channel for each lcore enabled. For example, to
run on cores 0, 1, 2 and 3:
.. code-block:: console
The guest example uses a channel for each lcore enabled. For example, to
run on cores 0, 1, 2 and 3:
.. code-block:: console
- ./
build/
guest_vm_power_mgr -l 0-3
+ ./
<build_dir>/examples/dpdk-
guest_vm_power_mgr -l 0-3
.. _sending_policy:
.. _sending_policy:
@@
-593,7
+587,7
@@
host, use a command like the following:
.. code-block:: console
.. code-block:: console
- ./
build/
guest_vm_power_mgr -l 0-3 -n 4 -- --vm-name=ubuntu --policy=BRANCH_RATIO --vcpu-list=2-4
+ ./
<build_dir>/examples/dpdk-
guest_vm_power_mgr -l 0-3 -n 4 -- --vm-name=ubuntu --policy=BRANCH_RATIO --vcpu-list=2-4
Once the VM Power Manager Guest CLI appears, issuing the 'send_policy now' command
will send the policy to the host:
Once the VM Power Manager Guest CLI appears, issuing the 'send_policy now' command
will send the policy to the host:
@@
-707,7
+701,7
@@
To start the application and configure the power policy, and send it to the host
.. code-block:: console
.. code-block:: console
- ./
build/
guest_vm_power_mgr -l 0-3 -n 4 -- --vm-name=ubuntu --policy=BRANCH_RATIO --vcpu-list=2-4
+ ./
<build_dir>/examples/dpdk-
guest_vm_power_mgr -l 0-3 -n 4 -- --vm-name=ubuntu --policy=BRANCH_RATIO --vcpu-list=2-4
Once the VM Power Manager Guest CLI appears, issuing the 'send_policy now' command
will send the policy to the host:
Once the VM Power Manager Guest CLI appears, issuing the 'send_policy now' command
will send the policy to the host: