> i want to calculate how much time will a server take to read some
specified
> data (say 1024 bytes data) howcan i calculate?
> if any one knows how to do it please help me. i want to use it to
calculate
> server speed.

time dd if=/dev/zero of=/tmp/tmps bs=512 count=2

this will show the time taken to create a 1024 bytes file at /tmp/tmps
filled with zeros
in chunks of 512 bytes, to know different chunk size and performance
differences, change the
bs value and try.

time dd if=/tmp/tmps of=/dev/null bs=512 count=2
this will show the time taken to read the file /tmp/tmps (if it exists) and
redirect it to
/dev/null (nowhere).

----------------------------------------------------------------------------
--------
Jiju Thomas Mathew
Linux registered user #154193 -- http://counter.li.org


-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to