cm: Set IOPS mode for CFQ and BFQ automatically
* Always set slice_idle to 0 for CFQ and BFQ (IOPS mode). This is a guaranteed performance boost for nonrotational storage and is also the new default in Linux 4.2+ Change-Id: Id271a4283219beb272c174de0e452c6c42c4e572
This commit is contained in:
parent
78c6df1db2
commit
c815f700e0
@ -25,7 +25,7 @@ on init
|
|||||||
|
|
||||||
# Realtime display class
|
# Realtime display class
|
||||||
mkdir /sys/fs/cgroup/bfqio/rt-display 0755 root system
|
mkdir /sys/fs/cgroup/bfqio/rt-display 0755 root system
|
||||||
write /sys/fs/cgroup/bfqio/rt-display/bfqio.ioprio_class 1
|
write /sys/fs/cgroup/bfqio/rt-display/bfqio.ioprio_class 1
|
||||||
write /sys/fs/cgroup/bfqio/rt-display/bfqio.ioprio 7
|
write /sys/fs/cgroup/bfqio/rt-display/bfqio.ioprio 7
|
||||||
write /sys/fs/cgroup/bfqio/rt-display/bfqio.weight 1000
|
write /sys/fs/cgroup/bfqio/rt-display/bfqio.weight 1000
|
||||||
chown system graphics /sys/fs/cgroup/bfqio/rt-display/tasks
|
chown system graphics /sys/fs/cgroup/bfqio/rt-display/tasks
|
||||||
@ -42,7 +42,7 @@ on init
|
|||||||
# Hipri class
|
# Hipri class
|
||||||
mkdir /sys/fs/cgroup/bfqio/hipri 0755 root system
|
mkdir /sys/fs/cgroup/bfqio/hipri 0755 root system
|
||||||
write /sys/fs/cgroup/bfqio/hipri/bfqio.ioprio_class 2
|
write /sys/fs/cgroup/bfqio/hipri/bfqio.ioprio_class 2
|
||||||
write /sys/fs/cgroup/bfqio/hipri/bfqio.ioprio 2
|
write /sys/fs/cgroup/bfqio/hipri/bfqio.ioprio 2
|
||||||
write /sys/fs/cgroup/bfqio/hipri/bfqio.weight 1000
|
write /sys/fs/cgroup/bfqio/hipri/bfqio.weight 1000
|
||||||
chown root system /sys/fs/cgroup/bfqio/hipri/tasks
|
chown root system /sys/fs/cgroup/bfqio/hipri/tasks
|
||||||
chmod 0666 /sys/fs/cgroup/bfqio/hipri/tasks
|
chmod 0666 /sys/fs/cgroup/bfqio/hipri/tasks
|
||||||
@ -165,10 +165,24 @@ on boot
|
|||||||
# Persistent properties (only created if persist exists)
|
# Persistent properties (only created if persist exists)
|
||||||
mkdir /persist/properties 0770 system system
|
mkdir /persist/properties 0770 system system
|
||||||
|
|
||||||
|
# sysinit (/system/etc/init.d)
|
||||||
|
service sysinit /system/bin/sysinit
|
||||||
|
user root
|
||||||
|
oneshot
|
||||||
|
disabled
|
||||||
|
|
||||||
|
# bugreport is triggered by holding down volume down, volume up and power
|
||||||
|
service bugreport /system/bin/dumpstate -d -p -B \
|
||||||
|
-o /data/data/com.android.shell/files/bugreports/bugreport
|
||||||
|
oneshot
|
||||||
|
disabled
|
||||||
|
keycodes 114 115 116
|
||||||
|
|
||||||
# adb over network
|
# adb over network
|
||||||
on property:service.adb.tcp.port=5555
|
on property:service.adb.tcp.port=5555
|
||||||
stop adbd
|
stop adbd
|
||||||
start adbd
|
start adbd
|
||||||
|
|
||||||
on property:service.adb.tcp.port=-1
|
on property:service.adb.tcp.port=-1
|
||||||
stop adbd
|
stop adbd
|
||||||
start adbd
|
start adbd
|
||||||
@ -189,15 +203,10 @@ on property:sys.io.scheduler=*
|
|||||||
on property:persist.sys.io.scheduler=*
|
on property:persist.sys.io.scheduler=*
|
||||||
setprop sys.io.scheduler ${persist.sys.io.scheduler}
|
setprop sys.io.scheduler ${persist.sys.io.scheduler}
|
||||||
|
|
||||||
# sysinit (/system/etc/init.d)
|
# Set slice_idle to 0 for CFQ
|
||||||
service sysinit /system/bin/sysinit
|
on property:sys.io.scheduler=cfq
|
||||||
user root
|
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||||
oneshot
|
|
||||||
disabled
|
|
||||||
|
|
||||||
# bugreport is triggered by holding down volume down, volume up and power
|
# Set slice_idle to 0 for BFQ
|
||||||
service bugreport /system/bin/dumpstate -d -p -B \
|
on property:sys.io.scheduler=bfq
|
||||||
-o /data/data/com.android.shell/files/bugreports/bugreport
|
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
|
||||||
oneshot
|
|
||||||
disabled
|
|
||||||
keycodes 114 115 116
|
|
Loading…
Reference in New Issue
Block a user