plugins: added atomic-host and atomic-guest profiles
Resolves: rhbz#1091977 Resolves: rhbz#1091979 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
bd732feccb
commit
0aea276128
4 changed files with 54 additions and 0 deletions
16
profiles/atomic-guest/tuned.conf
Normal file
16
profiles/atomic-guest/tuned.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#
|
||||
# tuned configuration
|
||||
#
|
||||
|
||||
[main]
|
||||
include=virtual-guest
|
||||
|
||||
[selinux]
|
||||
avc_cache_threshold=65536
|
||||
|
||||
[net]
|
||||
nf_conntrack_hashsize=131072
|
||||
|
||||
[sysctl]
|
||||
kernel.pid_max=131072
|
||||
net.netfilter.nf_conntrack_max=1048576
|
||||
16
profiles/atomic-host/tuned.conf
Normal file
16
profiles/atomic-host/tuned.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#
|
||||
# tuned configuration
|
||||
#
|
||||
|
||||
[main]
|
||||
include=throughput-performance
|
||||
|
||||
[selinux]
|
||||
avc_cache_threshold=65536
|
||||
|
||||
[net]
|
||||
nf_conntrack_hashsize=131072
|
||||
|
||||
[sysctl]
|
||||
kernel.pid_max=131072
|
||||
net.netfilter.nf_conntrack_max=1048576
|
||||
|
|
@ -7,6 +7,14 @@
|
|||
# If 'virt' or 'system' is empty, i.e. 'virt=', it matches only empty string (alias for '^$').
|
||||
# If several profiles matched, the first match is taken.
|
||||
|
||||
[atomic-host]
|
||||
virt=
|
||||
system=.*atomic.*
|
||||
|
||||
[atomic-guest]
|
||||
virt=.+
|
||||
system=.*atomic.*
|
||||
|
||||
[throughput-performance]
|
||||
virt=
|
||||
system=.*(computenode|server).*
|
||||
|
|
|
|||
14
tuned.spec
14
tuned.spec
|
|
@ -48,6 +48,13 @@ Requires: %{name} = %{version}-%{release}
|
|||
%description profiles-sap
|
||||
Additional tuned profile(s) targeted to SAP loads.
|
||||
|
||||
%package profiles-atomic
|
||||
Summary: Additional tuned profiles targeted to Atomic
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description profiles-atomic
|
||||
Additional tuned profiles targeted to Atomic host and guest.
|
||||
|
||||
%package profiles-compat
|
||||
Summary: Additional tuned profiles mainly for backward compatibility with tuned 1.0
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
|
@ -117,6 +124,8 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
|
|||
%exclude %{_prefix}/lib/tuned/enterprise-storage
|
||||
%exclude %{_prefix}/lib/tuned/spindown-disk
|
||||
%exclude %{_prefix}/lib/tuned/sap
|
||||
%exclude %{_prefix}/lib/tuned/atomic-host
|
||||
%exclude %{_prefix}/lib/tuned/atomic-guest
|
||||
%{_prefix}/lib/tuned
|
||||
%dir %{_sysconfdir}/tuned
|
||||
%config(noreplace) %{_sysconfdir}/tuned/active_profile
|
||||
|
|
@ -153,6 +162,11 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
|
|||
%defattr(-,root,root,-)
|
||||
%{_prefix}/lib/tuned/sap
|
||||
|
||||
%files profiles-atomic
|
||||
%defattr(-,root,root,-)
|
||||
%{_prefix}/lib/tuned/atomic-host
|
||||
%{_prefix}/lib/tuned/atomic-guest
|
||||
|
||||
%files profiles-compat
|
||||
%defattr(-,root,root,-)
|
||||
%{_prefix}/lib/tuned/default
|
||||
|
|
|
|||
Loading…
Reference in a new issue