Skip to content

What can I do about mem swap size #683

Closed Answered by aaronwmorris
Dentonknifeworks asked this question in Q&A
Discussion options

You must be logged in to vote

You should decrease your kernel swappiness to 1 like in https://github.com/aaronwmorris/indi-allsky/wiki/Memory-Optimizations

echo "vm.swappiness = 1" | sudo tee /etc/sysctl.d/90-swappiness.conf

sudo sysctl --system

You can clear swap an raspi (without rebooting) by doing the following:

sudo dphys-swapfile swapoff

sudo dphys-swapfile swapon

Setting swappiness to 1 just sets a preference to decreasing file cache to free memory instead of swapping pages to disk.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dentonknifeworks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants