[Libosinfo] [osinfo-db PATCH 1/3] workload: Add high performance
Martin Kletzander
mkletzan at redhat.com
Sat Nov 17 00:06:11 UTC 2018
This is an example workload that sums up the "common knowledge" that virtio
devices have the best performance.
As a possible addition it also shows the optimal (let's say) number of I/O
threads to choose.
Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
data/workload/example.com/high-perf.xml.in | 38 ++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 data/workload/example.com/high-perf.xml.in
diff --git a/data/workload/example.com/high-perf.xml.in b/data/workload/example.com/high-perf.xml.in
new file mode 100644
index 000000000000..9c3aec7d811e
--- /dev/null
+++ b/data/workload/example.com/high-perf.xml.in
@@ -0,0 +1,38 @@
+<libosinfo version="0.0.1">
+<!-- Licensed under the GNU General Public License version 2 or later.
+ See http://www.gnu.org/licenses/ for a copy of the license text -->
+ <workload id="http://example.com/high-perf">
+ <short-id>high-perf</short-id>
+ <_name>High Performance</_name>
+ </workload>
+
+ <devices>
+ <device id="http://pcisig.com/pci/1af4/1052"/> <!-- virtio1.0-input -->
+ <device id="http://pcisig.com/pci/1af4/1048"/> <!-- virtio1.0-scsi -->
+ <device id="http://pcisig.com/pci/1af4/1044"/> <!-- virtio1.0-rng -->
+ <device id="http://pcisig.com/pci/1af4/1042"/> <!-- virtio1.0-block -->
+ <device id="http://pcisig.com/pci/1af4/1041"/> <!-- virtio1.0-net -->
+ </devices>
+
+ <features>
+ <!--
+ These can be:
+ - just list of strings
+ - or list of feature-IDs where feature is a new object that has:
+ - description
+ - and human explanation of what to set and how
+ -->
+ <iothreads>yes</iothreads>
+ <!--
+ probably pointless, but someone might want to be able to specify
+ something like:
+ <iothreads>
+ <min>
+ <cpus/>
+ <number>4</number>
+ </min>
+ </iothreads>
+ -->
+ </features>
+
+</libosinfo>
--
2.19.1
More information about the Libosinfo
mailing list