💾 Archived View for the.teabag.ninja › btop-backports-swappiness.gmi captured on 2024-09-29 at 00:26:15. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
2023-01-02 teabag.ninja
A couple of things I tend to add to a Debian 11 VPS.
It is like htop (or top), just prettier. So why not. To get it, we have to add the backports repository.
Edit /etc/apt/sources.list as root and add these lines to the bottom:
#bullseye-backports deb http://deb.debian.org/debian bullseye-backports main
then run
apt update && apt upgrade -y
Then to run btop, you just run the command: btop. It can be run as a user.
Simple.
I did note that Swap on my VPS filled and stayed filled - I don't like that as my Akkoma install would lag when that happened. I would rather it emptied as needed and it used memory to a more full capacity first (especially on the smaller VPS).
to check current swappiness, run:
cat /proc/sys/vm/swappiness
which will output something like 60. Higher numbers mean it will favour swap more.
I want to have near the minimum so it doesn't fill and sit there, so will set it to 1.
To achieve this we need to edit /etc/sysctl.conf and add to the bottom
vm.swappiness = 1
Then run the following to have it apply:
sysctl -p
And that is it.