owncloud-archive / pi-image

Scripts and configurations for Raspberry PI disk images
29 stars 8 forks source link

Add some swap to the image #31

Open oparoz opened 8 years ago

oparoz commented 8 years ago

It's dangerous not to have swap as the device has so little RAM that it can't dump anything to disk in case of a severe failure, but maybe snaps work differently...

@jospoortvliet's recommendation if we enable it:

I vote for having a swapfile on the HD and using swappiness=5 in sysconfig to simply tell the kernel to only use the swap in dire circumstances. Not 0, we want it to use the swap with data that's barely ever used, 5 seems a good middle ground. (40 is default, I think, or 60 maybe)