Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2023-08-18 10:59:06 -04:00
parent 2142e2e763
commit 1485be072d
No known key found for this signature in database
GPG key ID: B286E9F57A07424B
3 changed files with 27 additions and 4 deletions

View file

@ -33,9 +33,9 @@ sed -i 's/DurationnScale = 1.0f;/DurationScale = 0.5f;/' services/core/java/com/
#sed -i 's|||'
fi;
if enter "kernel"; then
sed -i "s/#define VM_MAX_READAHEAD\t128/#define VM_MAX_READAHEAD\t512/" ./*/*/include/linux/mm.h &>/dev/null || true; #Lee Susman <lsusman@codeaurora.org>: Change the VM_MAX_READAHEAD value from the default 128KB to 512KB. This will allow the readahead window to grow to a maximum size of 512KB, which greatly benefits to sequential read throughput.
fi;
#if enter "kernel"; then
#sed -i "s/#define VM_MAX_READAHEAD\t128/#define VM_MAX_READAHEAD\t512/" ./*/*/include/linux/mm.h &>/dev/null || true; #Lee Susman <lsusman@codeaurora.org>: Change the VM_MAX_READAHEAD value from the default 128KB to 512KB. This will allow the readahead window to grow to a maximum size of 512KB, which greatly benefits to sequential read throughput.
#fi;
if enter "device"; then
echo "Starting zram tweaks";