SD Tweak will now recognize the size of your internal and external (if exists) storage and based on the size, will set a read ahead value for each storage.
Below is the formula for the calculation:

if (internal_totalSize <= 2097152) {
intReadAhead = 256;
} else if (internal_totalSize > 2097152 && internal_totalSize <= 4194304) {
intReadAhead = 512;
} else if (internal_totalSize > 4194304 && internal_totalSize <= 16777216) {
intReadAhead = 1024;
} else if (internal_totalSize > 16777216) {
intReadAhead = 2048;
}

IO Boost now have a better control over the applied parameters.
zRAM optimization is experimental.
Below is the formula for the calculation:

rqAffinity = 2;
ioStats = 0;
rotational = 0;
nomerges = 2;

if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
if (memTotal <= 1048576) {
swappiness = 100;
pageCluster = 0;
} else if (memTotal > 1048576) {
swappiness = 70;
pageCluster = 1;
} else if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
if (memTotal <= 1048576) {
swappiness = 40;
pageCluster = 0;
} else if (memTotal > 1048576 && memTotal < 2097152) {
swappiness = 70;
pageCluster = 2;
} else if (memTotal >= 2097152) {
swappiness = 100;
pageCluster = 2;
}
}
}

If you have any suggestion, please write down below, just please be 100% clear and detailed of your suggestion, it helps a lot if you do.

Thanks for support

Advertisements