PS3: Handle swap on ps3vram automatically on boot

Bug #357980 reported by Arnaud Jeansen on 2009-04-08
6
Affects Status Importance Assigned to Milestone
Ubuntu PS3 Port
Undecided
Unassigned
sysvinit (Ubuntu)
Undecided
Unassigned

Bug Description

Now that the ports kernel creates /dev/ps3vram (video ram of the GPU), init scripts should be updated to mount the device on boot (see discussion on ubunut-cell: https://lists.ubuntu.com/archives/ubuntu-cell/2009-March/000338.html)

Arnaud Jeansen (ajeans) wrote :

The attached debdiff works for me, with a few shortcomings
- it doesn't mount this swap during one of the normal swap activations. Doing otherwise would require to do the mkswap very early in the scripts
- it hardcodes priority 10, regardless of the "pri" value set in /etc/fstab. It should be possible to parse the options, and extract the value of pri to pass it in the swapon line, but I'm not sure it is really worth it
- on boot (on a PS3), the message "/dev/ps3vram Device or resource is busy" will appear... I couldn't find a way to hide it (tried the trick done on swapon in mountall.sh, with no improvement).

With my /etc/fstab configured with a "/dev/ps3vram swap" entry, I get an additional 250 Mo of swap directly on boot.

Arnaud Jeansen (ajeans) wrote :

I should add that I set my fstab entry as "/dev/ps3vram swap sw, noauto"

Otherwise, the normal swap activations will try to mount swap there before it is prepared by mkswap. Two warning messages appear in that case.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers