Skip to content

Instantly share code, notes, and snippets.

@hakavlad
Last active November 15, 2020 13:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakavlad/60575a8393ac6561904f46b0356ebfdb to your computer and use it in GitHub Desktop.
Save hakavlad/60575a8393ac6561904f46b0356ebfdb to your computer and use it in GitHub Desktop.
Low-memory handlers comparison case

Low-memory handlers comparison case

None vs uresourced vs prelockd vs memavaild

Running tail /dev/zero on Fedora 33 Workstation on VM

MemTotal=3.8G, SwapTotal=7.7G (2 MemTotal), swap on zram

vm.swappiness=100, vm.min_free_kbytes=40225

Look at the memory and swap lines on the system monitor. Smooth lines mean more responsiveness.

None

pic pic pic

uresourced

pic pic pic

prelockd (150M locked, $LOCK_ONLY_CRITICAL=True)

pic pic

memavaild (defaults)

pic pic

None vs memavaild

pic

prelockd + memavaild

pic pic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment