PS3: Handle swap on ps3vram automatically on boot
Bug #357980 reported by
Arnaud Jeansen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu PS3 Port |
New
|
Undecided
|
Unassigned | ||
sysvinit (Ubuntu) |
New
|
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:/
To post a comment you must log in.
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.