-
Notifications
You must be signed in to change notification settings - Fork 2
/
uclamp_tuning.sh
29 lines (24 loc) · 983 Bytes
/
uclamp_tuning.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/system/bin/sh
#Uclamp tuning
sysctl -w kernel.sched_util_clamp_min_rt_default=96
sysctl -w kernel.sched_util_clamp_min=128
#top-app
echo max > /dev/cpuset/top-app/uclamp.max
echo 10 > /dev/cpuset/top-app/uclamp.min
echo 1 > /dev/cpuset/top-app/uclamp.boosted
echo 1 > /dev/cpuset/top-app/uclamp.latency_sensitive
#foreground
echo 50 > /dev/cpuset/foreground/uclamp.max
echo 0 > /dev/cpuset/foreground/uclamp.min
echo 0 > /dev/cpuset/foreground/uclamp.boosted
echo 0 > /dev/cpuset/foreground/uclamp.latency_sensitive
#background
echo max > /dev/cpuset/background/uclamp.max
echo 20 > /dev/cpuset/background/uclamp.min
echo 0 > /dev/cpuset/background/uclamp.boosted
echo 0 > /dev/cpuset/background/uclamp.latency_sensitive
#system-background
echo 40 > /dev/cpuset/system-background/uclamp.max
echo 0 > /dev/cpuset/system-background/uclamp.min
echo 0 > /dev/cpuset/system-background/uclamp.boosted
echo 0 > /dev/cpuset/system-background/uclamp.latency_sensitive