realtime: moved variables to /etc/tuned/realtime-variables.conf
And some minor tweaks. Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
46f1968bce
commit
740fab40ec
5 changed files with 12 additions and 11 deletions
2
Makefile
2
Makefile
|
|
@ -112,6 +112,8 @@ install: install-dirs
|
|||
|
||||
# profiles & system config
|
||||
cp -a profiles/* $(DESTDIR)$(TUNED_PROFILESDIR)/
|
||||
mv $(DESTDIR)$(TUNED_PROFILESDIR)/realtime/realtime-variables.conf \
|
||||
$(DESTDIR)/etc/tuned/realtime-variables.conf
|
||||
install -pm 0644 recommend.conf $(DESTDIR)$(TUNED_PROFILESDIR)/recommend.conf
|
||||
|
||||
# bash completion
|
||||
|
|
|
|||
6
profiles/realtime/realtime-variables.conf
Normal file
6
profiles/realtime/realtime-variables.conf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Examples:
|
||||
# isolated_cores=2,4-7
|
||||
# isolated_cores=2-23
|
||||
#
|
||||
#
|
||||
#
|
||||
|
|
@ -8,9 +8,10 @@ include = network-latency
|
|||
|
||||
[variables]
|
||||
# User is responsible for updating variables.conf with variable content such as isolated_cores=X-Y
|
||||
include = variables.conf
|
||||
include = /etc/tuned/realtime-variables.conf
|
||||
# Non-isolated cores including offline cores
|
||||
isolated_cores_complement_all = ${f:cpulist_invert:${isolated_cores}}
|
||||
not_isolated_cpumask = ${f:cpulist2hex:${isolated_cores_complement_all}}
|
||||
# Non-isolated cores which are online
|
||||
isolated_cores_complement = ${f:cpulist_online:${isolated_cores_complement_all}}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
[variables]
|
||||
# Examples:
|
||||
# isolated_cores=2,4-7
|
||||
# isolated_cores=2-23
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
not_isolated_cpumask = ${f:cpulist2hex_invert:${isolated_cores}}
|
||||
|
||||
|
|
@ -173,6 +173,7 @@ fi
|
|||
%{python_sitelib}/tuned
|
||||
%{_sbindir}/tuned
|
||||
%{_sbindir}/tuned-adm
|
||||
%exclude %{_sysconfdir}/tuned/realtime-variables.conf
|
||||
%exclude %{_prefix}/lib/tuned/default
|
||||
%exclude %{_prefix}/lib/tuned/desktop-powersave
|
||||
%exclude %{_prefix}/lib/tuned/laptop-ac-powersave
|
||||
|
|
@ -247,6 +248,7 @@ fi
|
|||
|
||||
%files profiles-realtime
|
||||
%defattr(-,root,root,-)
|
||||
%config(noreplace) %{_sysconfdir}/tuned/realtime-variables.conf
|
||||
%{_prefix}/lib/tuned/realtime
|
||||
%{_mandir}/man7/tuned-profiles-realtime.7*
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue