Enable swap
How to enable swap on the SheevaPlug.
This entry was posted
on Monday, May 18th, 2009 at 3:45 pm and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
Please keep comments clean and constructive. Inappropriate comments will be removed. Thank you.
This didn’t work for me when I tried to create the swapfile under /dev/swapfile, gave error invalid argument when entering “swapon /dev/swapfile”, I got it to work by creating the file /swapfile, works now.
hmmm… Good to know, thanks.
> I got it to work by creating the file /swapfile, works now.
will this be mounted too by using /ets/fstab ?
I don’t see why not, its just a mount point like everything else….
Hi love your summary
I have a 16GB SD card with 2 Partitions. The second partition is a swap partition type 82.
It is listes under “top” but it never gets used !? Is there any way of forcing the Sheeva to use it?
my fstab:
/dev/mmcblk0p2 none swap sw 0 0
my free:
Mem: 513752k total, 203164k used, 310588k free, 6544k buffers
Swap: 1005528k total, 0k used, 1005528k free, 167076k cached
my fdisk:
Disk /dev/mmcblk0: 16.0 GB, 16062087168 bytes
4 heads, 16 sectors/track, 490176 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk identifier: 0×15fe73a8
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 458753 14680095+ 83 Linux
/dev/mmcblk0p2 458754 490176 1005536 82 Linux swap / Solaris
I don’t think there is a way to force Linux to use swap. Seeing that free gives you the correct swap size, I’m pretty sure it’ll use it when you run out of real memory. If you haven’t already, install X and VNC, that’ll guarantee the Sheeva Plug will use swap.