Need to know throughput values from dd command

Hi ,

Its my first post under this forum .

I need to know any throughput tools for qnx . We have dd in linix which will give us the throughput data .

But unfortunately in qnx , dd does not shows us the read /write speed .

Whenever i use dd i get
dd if=/dev/zero of=/root/mnt/1gbfile bs=512k count=1024
1024+0 records in
1024+0 records out .

But at the end we get a speed linux as :-
dd if=/dev/zero of=/dev/null bs=1M count=32768
32768+0 records in
32768+0 records out
34359738368 bytes (34 GB) copied, 2.64483 s, 13.0 GB/s

How can i get the throughput shown in the last line for linux in QNX ? I want to know throughput values for qnx also ?

Deepak Konnur

You could use the time command prefix.

time dd …

Hi ,

Thanks for the reply . Time command will not work for me as i need the throughput like " 34359738368 bytes (34 GB) copied, 2.64483 s, 13.0 GB/s " .

Any other options which can give me the values as I need .

Deepak Konnur

Since dd gives you the size (bs=512k) and count (1024) it should be pretty trivial for you to multiply those 2 values to get the bytes (or megs/gigs) copied. The time command gives you the time and you then divide the bytes/megs/gigs by time to get bytes/megs/time per second.

The formatting of the sentence to look like Linux is then up to you.


Ya Tim , You are right … thanks for the suggestion …

It works …