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