enterprise-storage: fix setting read_ahead_kb
Signed-off-by: Jarod Wilson <jarod@redhat.com>
This commit is contained in:
parent
bdce7eb69d
commit
a0222d7fcb
1 changed files with 6 additions and 4 deletions
|
|
@ -59,9 +59,10 @@ start() {
|
|||
done
|
||||
|
||||
# Increase the readahead value on all volumes
|
||||
for d in /sys/block/{sd,cciss}*/queue/read_ahead_kb
|
||||
readaheadvols=$(ls /sys/block/{sd,cciss}*/queue/read_ahead_kb 2>/dev/null)
|
||||
for d in $readaheadvols
|
||||
do
|
||||
echo 512 > $d > /dev/null 2>&1
|
||||
(echo 512 > $d) > /dev/null 2>&1
|
||||
done
|
||||
|
||||
return 0
|
||||
|
|
@ -116,9 +117,10 @@ stop() {
|
|||
done
|
||||
|
||||
# Reset default readahead value on all volumes
|
||||
for d in /sys/block/{sd,cciss}*/queue/read_ahead_kb
|
||||
readaheadvols=$(ls /sys/block/{sd,cciss}*/queue/read_ahead_kb 2>/dev/null)
|
||||
for d in $readaheadvols
|
||||
do
|
||||
echo 128 > $d > /dev/null 2>&1
|
||||
(echo 128 > $d) > /dev/null 2>&1
|
||||
done
|
||||
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue