> i want to calculate how much time will a server take to read some specified
> data (say 1024 bytes data) howcan i calculate?
i have never done this but i can try, make a wrapper function for the actual
read from the server.....
i feel that you have to go to kernel level, and whenever there is a read and
when it finishes
the difference in jiffies may give the answer. or the time clock may give you a
rough answer.
i hope you mean by 1024(1K) bytes a block transfer, go to the block driver of
the protocol which
you are using if hard-disk then ide, if some network protocol then for it
in the code this sequence might help.
++++++++++++++++++++++++++
do the read of one block
grab jiffies/time/etc on interuppt that starts the data-transfer
grab jiffies/time/etcon interuppt that stops the data-transfer
difference in jiffies
++++++++++++++++++++++++++
you can also explore /proc/net
to watch your connection to the server.
or netstat to see the connections to the server.
> if any one knows how to do it please help me. i want to use it to calculate
> server speed.
i honestly never done it myself.......
>
>
> thank you
>
> ramesh
-gaurav.
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> -----------------------------------------------------------------------
> For more information on the LIH mailing list see:
> http://lists.linux-india.org/lists/LIH
--
_
|^|^| -^- Love to Linux
\-/ G A U R A V |
mailto:[EMAIL PROTECTED] / mailto:[EMAIL PROTECTED]
| Sea/She is nature's art/\/ Everybody likes to get the feel of it
|-=-----------------------/-----------------------------------------|
|_|f I can I m a g i n/e it I can A c h i e v e it_._.-.-._.|
-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/