Added new tuned-adm functionality 'profile_info'. It has optional parameter 'profile_name'. If called without parameter, active profile is used. It outputs name of the profile it is querying, profile summary, and profile description. If there is no profile summary or description available it outputs empty string(s). Extended tuned-adm 'list' functionality. It now displays profile summary in the list (if available). Added summary to profiles. Extended D-Bus API to support the new feature and for better Cockpit support: - Added 'profile_info' method. It gets profile_name argument and it queries the requested profile for information. If profile_name is empty string it queries the active/selected profile. It returns tuple of the following format (status, profile_name, summary, description), where status is boolean. If it is False, the query mechanism failed and the other fields don't contain valid data - Added 'profiles2' method. It's extension of 'profiles' method. It returns list of tuples. Tuples have following format: (profile_name, profile_summary) Related: rhbz#1228356 Fixes: #46 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
#
|
|
# tuned configuration
|
|
#
|
|
# Dependencies:
|
|
#
|
|
# - tuna
|
|
# - awk
|
|
# - wc
|
|
#
|
|
# Packaging:
|
|
#
|
|
# tscdeadline_latency.flat must be included in the profile directory
|
|
# so as to calculate optimal tsc deadline latency advancement value.
|
|
#
|
|
# How to build:
|
|
#
|
|
# git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
|
|
# cd kvm-unit-tests/
|
|
# ./configure && make
|
|
|
|
|
|
[main]
|
|
summary=Optimize for KVM guests running realtime workloads
|
|
include=realtime
|
|
|
|
[variables]
|
|
# User is responsible for adding isolated_cores=X-Y to realtime-virtual-host-variables.conf
|
|
include=/etc/tuned/realtime-virtual-host-variables.conf
|
|
isolated_cores_expanded=${f:cpulist_unpack:${isolated_cores}}
|
|
|
|
[scheduler]
|
|
# group.group_name=rule_priority:scheduler_policy:scheduler_priority:core_affinity_in_hex:process_name_regex
|
|
# for i in `pgrep ksoftirqd` ; do grep Cpus_allowed_list /proc/$i/status ; done
|
|
group.ksoftirqd=0:f:2:*:ksoftirqd.*
|
|
|
|
# for i in `pgrep rcuc` ; do grep Cpus_allowed_list /proc/$i/status ; done
|
|
group.rcuc=0:f:3:*:rcuc.*
|
|
|
|
# for i in `pgrep rcub` ; do grep Cpus_allowed_list /proc/$i/status ; done
|
|
group.rcub=0:f:3:*:rcub.*
|
|
|
|
[script]
|
|
script=script.sh
|
|
|
|
[bootloader]
|
|
cmdline=isolcpus=${isolated_cores} nohz=on nohz_full=${isolated_cores} intel_pstate=disable nosoftlockup
|