<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=GB2312" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Rick Jones ÒÑдÈë:
<blockquote cite="mid44D0D36A.4010107@hp.com" type="cite">
<pre wrap="">william wrote:
</pre>
<blockquote type="cite">
<pre wrap="">hi, folks :
When I use netperf to measure DLPI's transfer performance, I got a error
below.
And I didn't have this file -- /dev/dlpi.
What can I do?
My OS is SOLARIS.
/usr/local/bin # ./netperf -H 11.0.1.105 -t DLCO_STREAM
DLPI CO STREAM TEST
Recv Send Send
Window Window Message Elapsed
Size Size Size Time Throughput
frames frames bytes secs. 10^6bits/sec
netperf: dl_open: open of /dev/dlpi failed, errno = 2
netperf: send_dlpi_co_stream: dlpi stream data descriptor: No such file
or directory
</pre>
</blockquote>
<pre wrap=""><!---->
This is stretching my dimm memory as I've not done much with the DLPI
tests in ages, but IIRC by default, netperf tries to open /dev/dlpi -
which you can see is not working since the error is emitted, and IIRC an
errno of 2 (which you can verify with grep on errno.h) is ENOENT -
basically there is no /dev/dlpi file on your system.
So, netperf has a test-specific option to specify a different file -
which I would guess in your case would be /dev/bge or /dev/ce or
/dev/ipge etc etc. I do not recall the specific option letter, but if
you add a test-specific "-h" you should get the test-specific usage
output which should list it. That or look at the getopt() loop in
nettest_dlpi.c
happy benchmarking,
rick jones
</pre>
</blockquote>
<tt>Thanks Rick:<br>
As you said, I add a option to specify a different file.<br>
But I got another error:<br>
<br>
</tt><tt>/usr/local/bin # ./netperf -H 11.0.1.105 -t DLCO_STREAM -- -D
/dev/xge<br>
DLPI CO STREAM TEST<br>
Recv Send Send<br>
Window Window Message Elapsed<br>
Size Size Size Time Throughput<br>
frames frames bytes secs. 10^6bits/sec<br>
<br>
put_control: acknowledgement error wanted 6 got 5<br>
dl_error_primitive: 11<br>
dl_errno: 4<br>
dl_unix_errno 22<br>
netperf: dl_open: could not send control message, errno = 0<br>
netperf: send_dlpi_co_stream: dlpi stream data descriptor: Error 0<br>
<br>
/usr/local/bin # ./netperf -H 11.0.1.105 -t DLCO_STREAM -- -D /dev/xge0<br>
DLPI CO STREAM TEST<br>
Recv Send Send<br>
Window Window Message Elapsed<br>
Size Size Size Time Throughput<br>
frames frames bytes secs. 10^6bits/sec<br>
<br>
put_control: acknowledgement error wanted 6 got 5<br>
dl_error_primitive: 11<br>
dl_errno: 9<br>
dl_unix_errno 0<br>
netperf: dl_open: could not send control message, errno = 0<br>
netperf: send_dlpi_co_stream: dlpi stream data descriptor: Error 0<br>
<br>
<br>
</tt><br>
</body>
</html>