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

Jiafu Gao jiafu_gao at yahoo.com
Mon Nov 10 20:33:49 EST 2008


OK, it has been a while. I made some more changes: fix the ps-dump-bootloader script too, make necessary changes to the files that generates manual pages for ps3-flash-util and ps3-dump-bootloader.

Let me know if you have any concern or comments.

Best regards,

Jiafu



----- Original Message ----
From: Geoff Levand <geoffrey.levand at am.sony.com>
To: Jiafu Gao <jiafu_gao at yahoo.com>
Cc: cbe-oss-dev at ozlabs.org
Sent: Wednesday, November 5, 2008 12:08:55 PM
Subject: Re: [Cbe-oss-dev] ps3-utils performance issue

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


      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ps3utils.patch
Type: application/octet-stream
Size: 6666 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20081110/686d19ae/attachment.obj>


More information about the cbe-oss-dev mailing list