Skip to content

Commit

Permalink
files: set a mgrlu option to be on the safe side
Browse files Browse the repository at this point in the history
this might just be required temporary, but better set it right now
to be on the safe side
  • Loading branch information
hexdump0815 committed Jun 18, 2022
1 parent 6c8cf07 commit 33d0f7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/extra-files/etc/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ if [ -f /sys/kernel/mm/lru_gen/min_ttl_ms ]; then
echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms
fi

# see: https://forum.armbian.com/topic/20018-mglru-patches-to-bring-down-kswapd-cpu-usage/?do=findComment&comment=141847
if [ -f /proc/sys/vm/watermark_boost_factor ]; then
echo 0 > /proc/sys/vm/watermark_boost_factor
fi

# ... and offer an option to disable them as their functionality is
# enabled by default if they are in use
#if [ -f /sys/kernel/mm/lru_gen/enabled ]; then
Expand Down

0 comments on commit 33d0f7b

Please # to comment.