Unfortunately, because Linux on the PS3 is running under the hypervisor, the disk access speed is very slow, video is confined to framebuffer only and is very slow as well, and the system memory is extremely (only 256 megs are made available to Other OS from the hypervisor).
With these memory limitations, the system swaps a lot using the hard drive for extra memory space. With slow disk IO (26MB/s!) starting and even using programs can be a real pain.
We can use flash storage to improve this. Since flash card access is also quite slow also we can use 2 storage devices: a 512MB SD card and 1GB usb stick.
Under this example the SD card shows up as "/dev/sdd" and the USB key as "/dev/sdf", these might not be same for you. Here is how to set it up:
This presumes your flash devices have been previously formated for you and contain a partition table. WARNING! This procedure will destroy all data on the SD card and the USB key! Open a terminal
Enter the following commands:
su
[type in your root password]
/sbin/mkswap /dev/sdd1
/sbin/mkswap /dev/sdf1
/sbin/swapoff -a
/sbin/swapon -p 1 /dev/sdd1
/sbin/swapon -p 1 /dev/sdf1
You are now running with swap space evenly distributed between the two flash devices. If you like it we continue the procedure: edit the following file:
/etc/fstab
remove the line that contains the word "swap" in it. Add these two lines instead:
/dev/sdd1 swap swap pri=1 0 0
/dev/sdf1 swap swap pri=1 0 0
You are done!
thankyou to Ilian Tzankov