06-28-2024, 04:19 PM
Swapping to uSD card is certainly faster than swapping to a hard drive so maybe a drag on moOde performance won't be noticed when swapping is enabled.
However, as an FYI, the default swappiness value in Raspberry Pi OS Lite---hence in a moOde installation--- is 60 which is rather aggressive given LInux's greedy swapping algorithm (e.g., more memory pages get swapped out during normal operation than is necessary just to avoid an OOM fault).
You can query the current swappiness value with the following command
I'd suggest cutting the value back to 10 (considered a typical workstation setting) or even 1 (a typical server setting).
This can be done by editing (as superuser) /etc/sysctl.conf to add a new last line vm.swappiness=10, say. and rebooting.
AsI said, perhaps the high value won't matter for moOde but since even on the low-memory Pis we seem to have issues only when indexing large libraries swapping is rarely needed. In the old days our Unix workstations would routinely slow to a crawl when swapping CAD processes to SCSI drives.
Just my 2-cents worth.
Regards,
Kent
However, as an FYI, the default swappiness value in Raspberry Pi OS Lite---hence in a moOde installation--- is 60 which is rather aggressive given LInux's greedy swapping algorithm (e.g., more memory pages get swapped out during normal operation than is necessary just to avoid an OOM fault).
You can query the current swappiness value with the following command
Code:
sysctl vm.swappiness
I'd suggest cutting the value back to 10 (considered a typical workstation setting) or even 1 (a typical server setting).
This can be done by editing (as superuser) /etc/sysctl.conf to add a new last line vm.swappiness=10, say. and rebooting.
AsI said, perhaps the high value won't matter for moOde but since even on the low-memory Pis we seem to have issues only when indexing large libraries swapping is rarely needed. In the old days our Unix workstations would routinely slow to a crawl when swapping CAD processes to SCSI drives.
Just my 2-cents worth.
Regards,
Kent