sinoth
Member
I was compiling on the Pandora and g++ kept crashing on one file... I finally figured out it was because I was running out of RAM! To remedy this, I found an old 256 meg SD card lying around and formatted it to be used as Linux swap space. This means it is an extension of the Pandora's physical RAM -- like a page file for Windows.
First, I used the fdisk tool (careful with this!) to wipe out the partitions on my card and created just one of type 82 -- Linux Swap. I then ran the following commands (with the extra card in the 2nd slot):
To confirm the swap is working you can type `free` and take note of the Swap: total column. The swap will not be used automatically using this method. Every time you reboot you'll have to 'swapon' again.
Normally you won't need to do this. The Pandora has plenty of RAM for multitasking and running pretty heavy applications... I only ran into trouble because compiling can eat up memory.
Can any gurus comment on what kind of cons are there to permanently leaving a 256MB partition on an SD card and putting it in /etc/fstab to be automatically used? Will this degrade performance in any way even before swap is required?
First, I used the fdisk tool (careful with this!) to wipe out the partitions on my card and created just one of type 82 -- Linux Swap. I then ran the following commands (with the extra card in the 2nd slot):
Code:
sudo mkswap /dev/mmcblk1p1
sudo swapon /dev/mmcblk1p1
To confirm the swap is working you can type `free` and take note of the Swap: total column. The swap will not be used automatically using this method. Every time you reboot you'll have to 'swapon' again.
Normally you won't need to do this. The Pandora has plenty of RAM for multitasking and running pretty heavy applications... I only ran into trouble because compiling can eat up memory.
Can any gurus comment on what kind of cons are there to permanently leaving a 256MB partition on an SD card and putting it in /etc/fstab to be automatically used? Will this degrade performance in any way even before swap is required?