time command wrong values
satpal parmar
parmarsatpal at gmail.com
Wed Feb 21 09:23:10 UTC 2007
Hi all;
I am facing a very weird problem. I have ported linux kernel
2.6.18.2 on arm 9 base board.When I use time command from buzybox to
understanding the performance characteristics of a single program I am
getting some finite values for real but sys and user values are always
zero.
/ # dd if=/dev/ram0 of=/dev/ram1 count=10000000
16384+0 records in
16384+0 records out
/ # time dd if=/dev/ram0 of=/dev/ram1 count=10000000
16384+0 records in
16384+0 records out
real 0m 0.80s
user 0m 0.00s
sys 0m 0.00s
/ # time dd if=/dev/ram0 of=/dev/ram1 count=100000000
16384+0 records in
16384+0 records out
real 0m 0.80s
user 0m 0.00s
sys 0m 0.00s
/ # time dd if=/dev/ram0 of=/dev/ram1 count=1000000000
16384+0 records in
16384+0 records out
real 0m 0.80s
user 0m 0.00s
sys 0m 0.00s
/ # time dd if=/dev/ram0 of=/dev/ram1 count=1000
1000+0 records in
1000+0 records out
real 0m 0.06s
user 0m 0.00s
sys 0m 0.00s
When I tried this same load *on linux system* I get following values.
time dd if=/dev/ram0 of=/dev/ram1 count=1000
real 0m0.022s
user 0m0.000s
sys 0m0.002s
Am I doing things wrong? My uneducated guess is that there can some problem
in BSp side . Any thoughts?
Thanks in adavnce.
satpal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20070221/468d860e/attachment-0001.htm
More information about the busybox
mailing list