Skip to content

Commit

Permalink
increase max_map_count for hardened malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Oct 5, 2021
1 parent 84e2bf5 commit 8c0f3c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rootdir/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,8 @@ on boot
chown root system /sys/block/zram0/writeback
chmod 0664 /sys/block/zram0/writeback

write /proc/sys/vm/max_map_count 1048576

# Tweak background writeout
write /proc/sys/vm/dirty_expire_centisecs 200
write /proc/sys/vm/dirty_background_ratio 5
Expand Down

0 comments on commit 8c0f3c0

Please sign in to comment.