The following demonstrates how to configure a 128MB swap file on the C3000's harddisk. Normally a swap file is not required unless you are running many X/Qt applications and doing onboard development. Most users with X/Qt will probably only require 32MB - 64MB swapfile.
# su # dd if=/dev/zero of=/hdd3/swapfile bs=1048576 count=128 # mkswap /hdd3/swapfile # swapon /hdd3/swapfile # echo "/hdd3/swapfile swap defaults 0 0" >> /etc/fstab
To enable swap:
# su # swapon /hdd3/swapfile
To disable swap:
# su # swapoff /hdd3/swapfile
To check swap status:
- cat /proc/swaps
In addition, you can install [qtopia-memoryapplet_1.1.1a_arm.ipk] which allows you to monitor both your physical memory as well as your swap. It even can manage the swapfile creation for you. However, it currently can only create a swapfile with a max. of 64MB. It gives you the option to create the swap on /hdd2 (RAM), CF card and SD card, but not on /hdd3. You could use it to create a swapfile on /hdd2, move it to /hdd3 and symlink it back to /hdd2.