LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-27-2004, 03:11 PM   #1
dravya
LQ Newbie
 
Registered: May 2004
Posts: 23

Rep: Reputation: 15
Question NETPERF: error --> send_udp_stream: error on remote: Interrupt


Hi all,

I am trying to run "netperf" and it works perfectly well with tcp but I can get it to work with udp.
The following is what I am doing:

[root@localhost netperf]# ./netperf -H 192.168.1.99 -t TCP_STREAM -- -m 1000
TCP STREAM TEST to 192.168.1.99
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec

87380 16384 1000 10.00 93.84

The above works just fine. Now is the problem.

[root@localhost netperf]# ./netperf -H 192.168.1.99 -t UDP_STREAM -- -m 1000
UDP UNIDIRECTIONAL SEND TEST to 192.168.1.99
send_udp_stream: error on remote: Interrupted system call

I have modified the following files:
in /etc/services :
added --> netperf 12865/tcp
netperf 12865/udp


in /etc/xinetd.d created a file named "netperf". This file contains the following:

service netperf
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /home/dravya/netperf/netserver
server_args =
}

Greatly appreciated if I can get help with the the above problem .
I need to do this test URGENTLY
thank you

dravya
 
Old 06-04-2004, 05:50 PM   #2
wkoontz
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
I''m not sure WHY this is happening, but I think it has to do with the signal sent to stop the UDP stream test.
When netperf does a UDP stream test it uses a timer to set the duration of the test.
Both the server and client start the timer, and then the client starts sending data to the server.
When the timer is up the server does one more call to recv() and gets back -1 (SOCKET_ERROR) and puts errno 4 (#define EINTR 4 /* Interrupted system call */)
This is sent back to the client which reports the error and exits.

A not-so-elegant workaround for this is to comment out the check for SOCKET_ERROR, or better yet check errno for value of 4 and ignore only that SOCKET_ERROR....

To ignore all SOCKET_ERRORs comment the if statement in nettest_bsd.c around line 5236......

/* <--added this
if ((len == SOCKET_ERROR) && SOCKET_EINTR(len)) {
netperf_response.content.serv_errno = errno;
send_response();
exit(1);
}
and this --> */

recompile and it will run the udp tests now.

I found this code at line 5236 in nettest_bsd.c from version 2.2pl5 of netperf, its near the end of the "recv_udp_stream" function, inside the main while loop, while (!times_up)
 
Old 06-07-2004, 09:40 AM   #3
dravya
LQ Newbie
 
Registered: May 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Netperf client only waits now....

Hi wkoontz,

Thank you very much for your response. It did solve the problem of the error message. However now when I type in "./udp_stream_trest 192.168.1.99" I only get the following with a blinking cursor:

Testing with the following command line:
/home/dravya/netperf/netperf -l 5 -H 192.168.1.99 -i 10,2 -I 99,10 -v 5 -t UDP_STREAM -- -m 64
UDP UNIDIRECTIONAL SEND TEST to 192.168.1.99 : +/-5.0% @ 99% conf.
(blinking cursor here)


Once I hit CTRL+C, I get the following:

!!! WARNING
!!! Desired confidence was not achieved within the specified iterations.
!!! This implies that there was variability in the test environment that
!!! must be investigated before going further.
!!! Confidence intervals: Throughput : 51.0%
!!! Local CPU util : 0.0%
!!! Remote CPU util : 0.0%

I don't get any numbers. Where can I go from here???

Thank you very much again.... any suggestions would be greatly appreciated.

Cheers

Dravya
 
Old 07-29-2004, 02:04 PM   #4
pim42
LQ Newbie
 
Registered: May 2004
Posts: 7

Rep: Reputation: 0
I'm getting the same thing. TCP works fine but UDP gives the above error.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
APIC error+hda lost interrupt alma Linux - Newbie 2 10-23-2005 07:33 AM
error with the boot: lost interrupt trutnev Debian 1 08-13-2005 01:54 AM
code 0f 0b e2 03 0f d7 25 c0 ... In interrupt handler not syncing error bantay Red Hat 1 06-24-2004 04:14 PM
interrupt error on redhat 7.1 james43 Linux - Hardware 0 06-24-2004 10:12 AM
NETPERF: ERROR --> send_udp_stream: error on remote: Interrupted system call dravya Linux - General 1 05-29-2004 05:49 PM


All times are GMT -5. The time now is 12:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration