1

I have read a few replies on stackexchange that using swap is actually bad on a pi since the HDD is on SD card. By default Raspbian comes with 100MB swap enabled. Should I disable swap altogether? Are there pros or cons to doing so?

Steve Lloyd
  • 177
  • 2
  • 8

1 Answers1

1

Swap is only used if you run out of memory.

The Pi normally uses a swapfile, which if not used has no penalty, but if required is slow.

Without swap the OS will terminate low priority processes or crash. The choice is yours.

Milliways
  • 62,573
  • 32
  • 113
  • 225