forked from EmanuelCN/android_kernel_lge_sdm845
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uclamp_tuning.sh
29 lines (24 loc) · 980 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=0
sysctl -w kernel.sched_util_clamp_min=128
#top-app
echo max > /dev/cpuset/top-app/uclamp.max
echo 30 > /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 1 > /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 50 > /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