[Cbe-oss-dev] ps3-utils performance issue

Geoff Levand geoffrey.levand at am.sony.com
Thu Nov 6 04:08:55 EST 2008


Jiafu Gao wrote:
 One of the handy tool in ps3-utils [0] is ps3-dump-bootloader. It is implemented as a shell script using dd util. The main command is:
> 
>    dd if=/dev/ps3flash bs=1 skip=$ldr_offset count=$ldr_size
> 
> Note that the parameter bs=1. Trying to dump the boot loader under Ubuntu Intrepid (size of 3M: 3037844), it takes more than 6 minutes. I am not sure the reason, but I guess it could be dd is not using read/write buffer when bs is set to 1. This translate to 3M reads and writes. Also notes that read from flash is in the form of block. 

Yes, to get the exact number of bytes it uses bs=1, which
is not efficient.

> 2. add an option to ps3-flash-util to dump boot loader. The implementation is really simple: just read /dev/ps3flash and write in reasonable blocks. I've came up a quick patch (attached) to do this. 

Please resend the patch with a description and a Signed-off-by:
in its header.

-Geoff




More information about the cbe-oss-dev mailing list