Enabling ps3vram
Open up a terminal window
run the following commands:
sudo mkswap /dev/ps3vram
sudo swapon -p1 /dev/ps3vram
swapon -p1 means sets the priority higher than the hard drive swap, so Ubuntu will leave the hard drive alone until all other memory is used.
Now lets see if that worked by using another command:
swapon -s
The result should be simmilar to this:
greg@Playstation3:~$ swapon -s
Filename Type Size UsedPriority
/dev/ps3da5 partition 489940 97140 -1 <-- Hard drive swap
/dev/ps3vram partition 250872 12241 <-- Vram swap
Mounting the swap at boot (Ubuntu 9.04)
You might already have noticed that as soon as you reboot your system your precious vram swap is gone, don't worry there's a solution to that. By slightly modifying a post made by
JMS that can be found
here.
Open a terminal window
Note: instead of "gedit" you can use "nano", I prefer gedit as you can place the cursor where you want to type instead of using the arrow keys. You can install gedit by running the following command "sudo apt-get install gedit"
sudo gedit /etc/modules
add "ps3vram" at the end of the file
save the file and get back to the terminal
sudo gedit /etc/init.d/bootmisc.sh
scroll untill you see these lines of code:
# Don't run bootclean again after this!
rm -f /tmp/.clean /var/run/.clean /var/lock/.clean
}
Now by adding the following:
mkswap /dev/ps3vram
swapon -p 1 /dev/ps3vram
make it look like:
# Don't run bootclean again after this!
rm -f /tmp/.clean /var/run/.clean /var/lock/.clean
mkswap /dev/ps3vram
swapon -p 1 /dev/ps3vram
Again save the file and reboot your system.
When you're back go to "System > System monitor" and check your swap, it should be boosted to 722MB!
Again, credits go to Gregford and JMS.
Mounting the swap at boot (Ubuntu 9.10)
Open a terminal window
Note: instead of "gedit" you can use "nano", I prefer gedit as you can place the cursor where you want to type instead of using the arrow keys. You can install gedit by running the following command "sudo apt-get install gedit"
sudo gedit /etc/modules
add "ps3vram" at the end of the file
save the file and get back to the terminal
sudo gedit /etc/rc.local
scroll untill you see these lines of code:
exit 0
Before add the following:
mkswap /dev/ps3vram
swapon -p 1 /dev/ps3vram
Save the file and reboot your system.
When you're back go to "System > System monitor" and check your swap, it should be boosted to 722MB!
Credits go to Civilian
http://psubuntu.com/forums/viewtopic.php?p=8227#p8227∞