mirror of
https://github.com/tytydraco/KTweak.git
synced 2024-11-04 06:00:43 +00:00
Try setting the I/O scheduler to noop/none regardless of support
Some devices don't return a proper cat of scheduler. Signed-off-by: tytydraco <tylernij@gmail.com>
This commit is contained in:
parent
17f61e78be
commit
46a2c56a89
@ -175,10 +175,8 @@ do
|
||||
write "${queue}iostats" 0
|
||||
write "${queue}read_ahead_kb" 0
|
||||
write "${queue}nr_requests" 512
|
||||
|
||||
avail_scheds=`cat "${queue}scheduler"`
|
||||
[[ "$avail_scheds" == *"noop"* ]] && write "${queue}scheduler" noop
|
||||
[[ "$avail_scheds" == *"none"* ]] && write "${queue}scheduler" none
|
||||
write "${queue}scheduler" noop
|
||||
write "${queue}scheduler" none
|
||||
done
|
||||
|
||||
# ZRAM
|
||||
|
Loading…
Reference in New Issue
Block a user