Vishal Ahuja wrote:
Am using OpenSolaris. From the time that a read system call is issued
till it completes, the application will be scheduled on the cpu say x
times. What I want to know is that whenever the application got
scheduled, how many packets/ bytes did it read.
It will not be scheduled multiple times. It will only do one read and
return. Now it can get blocked if the socket has no data and blocking in
not turned off but even in this case it will only do one read.
The two functions that you want to measure are
so_recvmsg/so_dequeue_msg. However just measuring the read time should
be enough.
Rao.
On Wed, May 19, 2010 at 10:07 AM, Rao Shoaib <[email protected]
<mailto:[email protected]>> wrote:
vhiz wrote:
Hi,
Is there a way to determine the number of packets/bytes read
from the socket buffer per read using dtrace?
Thanks,
Vish
Is this for S10 or Nevada.
You can get this information by the number of bytes read is
returning from the UDP socket.
Rao.
_______________________________________________
networking-discuss mailing list
[email protected]