1
0
Fork 0
Commit graph

20 commits

Author SHA1 Message Date
Jaroslav Škarvada
abb08bb75d ktune: do not revert sysctl settings on ktune stop
Now the sysctl settings are not reverted on ktune stop. This is to avoid cases
where the time window when the sysctl settings are reverted can cause unwanted
behaviour. E.g. it can temporary reset system limits on disk addition (because
ktune service is restarted by udev) which may cause some commands to fail.

It is still possible to switch to the old behaviour (reverting sysctl) by
exporting KTUNE_REVERT_SYSCTL and setting it to 1. This can be also
set per profile in the /etc/tune-profiles/PROFILE_NAME/ktune.sysconfig by
adding the following:

KTUNE_REVERT_SYSCTL=1

Resolves: rhbz#1111416

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-11-24 17:44:23 +01:00
Jaroslav Škarvada
07ba54d55a profiles: added support for Xen VSDs
Resolves: rhbz#1159963

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-02-27 17:34:04 +01:00
Jaroslav Škarvada
1cc036e865 profiles: added support for direct-access storage devices (DASDs)
resolves: rhbz#1129936

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-02-09 17:33:25 +01:00
Jaroslav Škarvada
e2b78c65e5 profiles: reversed SYSCTL_POST="/etc/sysctl.d/* /etc/sysctl.conf"
This commit reversed it to read:
SYSCTL_POST="/etc/sysctl.conf /etc/sysctl.d/*"
The idea is to go from implicit to explicit, i.e. from defaults
to overrides in sysctl.d subdirectory. This behavior is
expected in RHEL-6.

But many distributions use the reverse approach (state before
this commit). The idea is that /etc/sysctl.d/* hosts default
settings provided by individual packages which can be overriden
by "master" /etc/sysctl.conf.

In Fedora (F20 checked) it is implemented by the following
symlink:
/etc/sysctl.d/99-sysctl.conf -> ../sysctl.conf

So it is also effectively reversed in comparison to RHEL-6.

As tuned-0.x is supported only in RHEL-6, we need to follow
RHEL-6 behaviour in tuned-1.0 branch. This change doesn't
affect tuned-2.x.

resolves: rhbz#1036049

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-02-09 14:22:21 +01:00
Jaroslav Škarvada
7fa4b01062 ktune: made the settings of the elevator customizable
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-07-24 14:21:12 +02:00
Jaroslav Škarvada
438c1335da profiles: added SAP profile
Also added support for the sysctl tunings taken from the
environment and conditional tunings (i.e. not to change
the sysctl settings if the current value is greater than
the new value).

To use the environment variable SEM:
kernel.sem = $SEM

To set the kernel.shmall only if the current value is less
than the 1000000:
kernel.shmall = >$1000000

Both can be combined, e.g.:
kernel.shmall = >$SHMALL

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-07-24 14:09:48 +02:00
Jaroslav Škarvada
43eb6315c1 ktune: added support for the /etc/sysctl.d directory
In SYSCTL_POST multiple files (including wildcards)
can be specified.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2013-07-24 14:07:52 +02:00
Jan Vcelak
84536e5a59 ktune: validate value of ELEVATOR_TUNE_DEVS
Resolves: #784308
2012-09-24 14:52:26 +02:00
Jan Vcelak
53ad121de8 ktune: add LSB headers to initscript
Otherwise systemd deadlocks when restarting cpuspeed daemon
within ktune.

Resolves: #690177
2011-06-21 13:35:38 +02:00
Jan Vcelak
c6875ac43d ktune: check if ELEVATOR_TUNE_DEVS is set
When ELEVATOR_TUNE_DEVS variable is not set, all files from current
directory will propagate to SYS_BLOCK_SDX variable.
2011-03-23 16:02:36 +01:00
Jarod Wilson
88ed6a3138 ktune: fix service ktune status w/no sysctl changes applied
The default profile has no sysctl changes to it. If you try running
service ktune status after applying it, you get:

Current ktune sysctl settings:
awk: cmd. line:1: fatal: cannot open file `/var/run/ktune.save' for reading (No such file or directory)

After this patch:
Current ktune sysctl settings:
None

(Simply adds a check for $SAVE_FILE, and if not found, prints out NONE).

Signed-off-by: Jarod Wilson <jarod@redhat.com>
2010-07-08 17:20:49 -04:00
Thomas Woerner
9e5a9880a0 - use "sysctl -e -p" to apply settings from SYSCTL_POST (/etc/sysctl.conf) to
be consistent with /etc/rc.sysinit (rhbz#577971)
2010-05-04 11:46:06 +02:00
Thomas Woerner
98063947dd - ktune: added insufficient user rights test to start, reload, stop and status
service commands
2010-01-22 19:00:41 +01:00
Thomas Woerner
20ece57af8 - new ktune version 0.4-1
- added support for start and stop options to profile scripts calls
  - fixed CMDLINE_ELEVATOR test (rhbz#496940#c9)
- new README.ktune
2009-12-11 13:01:44 +01:00
Jan Vcelak
51c51d366f ktune/ktune.init: bz 532209 - init priority wrong for ktune
Some tuned profiles require "messagebus" and "haldaemon" running.
Changed startup priority from 5 to 27.
2009-11-02 18:58:00 +01:00
Petr Lautrbach
1abd2f44ba ktune/ktune.init: bz519019 - typos in init script 2009-09-22 14:56:02 +02:00
Marcela Mašláňová
1b04250db9 Apostrophes broke execution of *.sh scripts in profiles.
Reported-by: Marcela Mašláňová
Fixed-by: Petr Lautrbach
2009-09-09 10:34:52 +02:00
Philip Knirsch
ed3e6634f2 - Updates to the ktune scripts
- Added support for start/stop of the ktune scripts and ktune initscript
2009-08-14 17:05:44 +02:00
Philip Knirsch
05ee10191b - Small update to specfile 2009-08-04 17:39:15 +02:00
Thomas Woerner
2835008734 Integrated ktune-0.4 2009-07-27 17:24:58 +02:00