[ubuntu-24] Set read_ahead_kb kernel parameter to 128 (#13938)
This commit is contained in:
@@ -52,6 +52,16 @@ mkdir -p $rules_directory
|
||||
touch $netfilter_rule
|
||||
echo 'ACTION=="add", SUBSYSTEM=="module", KERNEL=="nf_conntrack", RUN+="/usr/sbin/sysctl net.netfilter.nf_conntrack_tcp_be_liberal=1"' | tee -a $netfilter_rule
|
||||
|
||||
# https://github.com/actions/runner-images/issues/13770
|
||||
# https://github.com/ravendb/ravendb/discussions/22410
|
||||
# Linux kernel 6.17 changed read_ahead_kb default from 128 to 4096 on Azure VMs
|
||||
# where disks are presented as rotational (ROTA=1). This floods the page cache
|
||||
# with unused data during random-access I/O and causes memory exhaustion and thrashing.
|
||||
if is_ubuntu24; then
|
||||
readahead_rule='/etc/udev/rules.d/99-readahead.rules'
|
||||
echo 'ACTION=="add|change", KERNEL=="sd*", ATTR{queue/read_ahead_kb}="128"' | tee "$readahead_rule"
|
||||
fi
|
||||
|
||||
# Create symlink for tests running
|
||||
chmod +x $HELPER_SCRIPTS/invoke-tests.sh
|
||||
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests
|
||||
|
||||
Reference in New Issue
Block a user