Hi,

in case of blocking NIC drivers, how does the kernel signal the Iperf
client if buffers are full? Does those signals make the Iperf client
to do more or longer nanosleep() system calls between write() calls to
UDP socket in order to write less data to socket or does the signal
sent by kernel include the amount of data dropped and thus Iperf
client simply take this into account when printing the amount of data
sent(makes the data_sent - data_dropped calculation before reporting),
i.e the:

[  3]  0.0-60.0 sec  854 MBytes   119 Mbits/sec

..line?

Just for a reference, I'll add here two write() call cycles by Iperf client:

[pid 14025] write(3,
"\0\0\0\16T\n\331a\0\3\2563\0\0\0\0\0\0\0\1\0\0\23\211\0\0\0\0\0\17B@"...,
1470) = 1470
[pid 14025] nanosleep({0, 11071000},  <unfinished ...>
[pid 14026] <... nanosleep resumed> NULL) = 0
[pid 14026] nanosleep({0, 10000000}, NULL) = 0
[pid 14026] nanosleep({0, 10000000},  <unfinished ...>
[pid 14025] <... nanosleep resumed> 0xb74ba2c8) = 0
[pid 14025] gettimeofday({1409997153, 252946}, NULL) = 0
[pid 14025] write(3,
"\0\0\0\17T\n\331a\0\3\334\22\0\0\0\0\0\0\0\1\0\0\23\211\0\0\0\0\0\17B@"...,
1470) = 1470
[pid 14025] nanosleep({0, 11088000},  <unfinished ...>
[pid 14026] <... nanosleep resumed> NULL) = 0
[pid 14026] nanosleep({0, 10000000},  <unfinished ...>
[pid 14025] <... nanosleep resumed> 0xb74ba2c8) = 0
[pid 14025] gettimeofday({1409997153, 264721}, NULL) = 0



thanks,
Martin

On Fri, Aug 22, 2014 at 4:53 PM, Andrew Gallatin <galla...@gmail.com> wrote:
> See this thread from netperf:
>
> http://www.netperf.org/pipermail/netperf-talk/2010-May/000715.html
>
>
> On Fri, Aug 22, 2014 at 4:26 AM, Marc Herbert <marc.herb...@gmail.com>
> wrote:
>>
>> Here is at least one discussion from 2010:
>> http://thread.gmane.org/gmane.network.iperf.user/202
>>
>> I remember seeing a few others across the ages.... Use various archives /
>> search engines / search keywords?
>>
>>
>>
>> 2014-08-22 9:20 GMT+01:00 Martin T <m4rtn...@gmail.com>:
>>
>>> Thanks for the reply! I'll check the receiving side. Could you please
>>> point me to an article/discussion describing the blocking- and
>>> non-blocking NIC drivers? I didn't find it from iperf-users mailing
>>> list..
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> _______________________________________________
>> Iperf-users mailing list
>> Iperf-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iperf-users
>>
>

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Iperf-users mailing list
Iperf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to