Skip navigation.
Home
The QNX Community Portal

View topic - Need to know throughput values from dd command

Need to know throughput values from dd command

Discussion about the QNX6 OS.

Need to know throughput values from dd command

Postby dskonnur » Wed Jul 17, 2013 6:48 am

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 ?


Regards,
Deepak Konnur
dskonnur
New Member
 
Posts: 3
Joined: Wed Jul 17, 2013 6:39 am

Re: Need to know throughput values from dd command

Postby maschoen » Wed Jul 17, 2013 8:47 am

You could use the time command prefix.

# time dd .....



dskonnur wrote: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 ?


Regards,
Deepak Konnur
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: Need to know throughput values from dd command

Postby dskonnur » Wed Jul 17, 2013 9:05 am

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 .

Regards,
Deepak Konnur
dskonnur
New Member
 
Posts: 3
Joined: Wed Jul 17, 2013 6:39 am

Re: Need to know throughput values from dd command

Postby Tim » Wed Jul 17, 2013 1:00 pm

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.

Tim
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am

Re: Need to know throughput values from dd command

Postby dskonnur » Wed Jul 17, 2013 3:37 pm

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

It works ..
dskonnur
New Member
 
Posts: 3
Joined: Wed Jul 17, 2013 6:39 am


Return to QNX6 - OS

Who is online

Users browsing this forum: Bing [Bot] and 1 guest