Increase swap

Hi

How can I increase the swap memory on a rapberry pi 3B?

cat /proc/sys/vm/swappiness return 10. It’s meaning 10MB, have I to edit this file?

Thanks in advance

That doesn’t mean 10MB. It determines how likely we are to use swap. In OSMC swap is disabled unless run on a device with 256MB memory or lower like an early model Pi or Apple TV.

There shouldn’t be a need for a swap on Pi 3 for video use. You can enable a swap file with sudo touch /enable_swap. I do not recommend this.

2 Likes

Hi there, i know that the use of swap file isn’t recomended.
But in a scenario where i use more than osmc on a raspberry pi 2 and pi 4 with 2 gb of ram, could i use swap file to “extend” memory?
on raspiberry pi 2, im running osmc and hassio
on raspiberry pi 4, im running osmc and *arr stack

Yes but if you do so, I’d use a mechnical drive.

Thanx, i will try