On Fri, May 21, 2010 at 09:48:18AM -0700, Rick Jones wrote: > Amos Kong wrote: > >Hello Rick Jones, > > > >Can I ask a question of compiling netperf-2.4.4 on Linux. > > netperf is up to 2.4.5 - don't know that it will solve (m)any of the > problems you are encountering but any changes will be on top of > 2.4.5.
Yes, I also tested with 2.4.5, xti error also exist > >Compile with default parameters, success > >#./configure > >"TCP_RR TCP_CRR UDP_RR TCP_STREAM TCP_MAERTS TCP_SENDFILE UDP_STREAM" has > >been supported. > > > >I try to compile with 4 parameters for supporting "XTI_UDP_STREAM > >SCTP_STREAM DLCO_STREAM DLCL_STREAM STREAM_STREAM DG_STREAM" > >#./configure -enable-xti=yes --enable-sctp=yes --enable-dlpi=yes > >--enable-unix=yes > > > >---------------- > >DLPI was only supported by Unix ? > >(http://uw714doc.sco.com/en/HDK_concepts/ddT_dlpi.html) > >The Data Link Provider Interface (DLPI) is a UNIX STREAMS standard that > >defines the interface to the Data Link Layer of the OSI reference model. > > I believe that is the case - I only ever tried DLPI on HP-UX and > Solaris. And it has been *years* since anything substantive has > been done with the DLPI tests. > > > > >--------------- > >xti has been ported to Linux as OpenSS7 > >(http://en.wikipedia.org/wiki/X/Open_Transport_Interface) > >But when I enable xit, the following error mesg. > >I lose some packages or netperf doesn't support to complie with xti on Linux > >? > > I think the OpenSS7 folks did some netperf patches but I don't > recall those patches ever being integrated into the netperf > mainline. > > > > >nettest_xti.c:61:17: error: xti.h: No such file or directory > > That is probably the root of *many* problems. If there is no xti.h > file that could be a big deal. Perhaps it is as simple as OpenSS7 > puts it somewhere else and it is a matter of just hacking the > configure.ac script. I got xti.h from here(http://opengroup.org/onlinepubs/007908799/xns/xti.h.html), and put it in "netperf-2.4.5/". #./configure --enable-xti=yes # make ... nettest_xti.c:220: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘void *’ nettest_xti.c:231: warning: incompatible implicit declaration of built-in function ‘exit’ nettest_xti.c:239: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘void *’ nettest_xti.c:259: error: ‘struct t_optmgmt’ has no member named ‘flags’ nettest_xti.c:265: error: ‘struct t_optmgmt’ has no member named ‘flags’ nettest_xti.c:277: error: ‘struct t_opthdr’ has no member named ‘level’ nettest_xti.c:278: error: ‘struct t_opthdr’ has no member named ‘name’ nettest_xti.c:279: error: ‘struct t_opthdr’ has no member named ‘len’ nettest_xti.c:290: warning: passing argument 2 of ‘t_optmgmt’ from incompatible pointer type ../xti.h:136: note: expected ‘const struct t_optmgmt *’ but argument is of type ‘struct t_optmgmt *’ nettest_xti.c:290: warning: passing argument 3 of ‘t_optmgmt’ from incompatible pointer type ../xti.h:136: note: expected ‘struct t_optmgmt *’ but argument is of type ‘struct t_optmgmt *’ nettest_xti.c:295: warning: incompatible implicit declaration of built-in function ‘exit’ nettest_xti.c:298: error: ‘struct t_opthdr’ has no member named ‘status’ nettest_xti.c:303: error: ‘struct t_opthdr’ has no member named ‘status’ nettest_xti.c:305: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’ nettest_xti.c:312: error: ‘struct t_optmgmt’ has no member named ‘flags’ nettest_xti.c:318: error: ‘struct t_optmgmt’ has no member named ‘flags’ nettest_xti.c:330: error: ‘struct t_opthdr’ has no member named ‘level’ nettest_xti.c:331: error: ‘struct t_opthdr’ has no member named ‘name’ nettest_xti.c:332: error: ‘struct t_opthdr’ has no member named ‘len’ nettest_xti.c:343: warning: passing argument 2 of ‘t_optmgmt’ from incompatible pointer type ../xti.h:136: note: expected ‘const struct t_optmgmt *’ but argument is of type ‘struct t_optmgmt *’ nettest_xti.c:343: warning: passing argument 3 of ‘t_optmgmt’ from incompatible pointer type ../xti.h:136: note: expected ‘struct t_optmgmt *’ but argument is of type ‘struct t_optmgmt *’ nettest_xti.c:348: warning: incompatible implicit declaration of built-in function ‘exit’ nettest_xti.c:397: error: ‘struct t_optmgmt’ has no member named ‘flags’ ... ... where can I get a right xti.h? anyone know how to compile netperf with xti support ? CC: [email protected] > >nettest_xti.c: In function ?create_xti_endpoint?: > >nettest_xti.c:178: error: field ?myopthdr? has incomplete type > >nettest_xti.c:196: error: ?t_errno? undeclared (first use in this function) > >nettest_xti.c:196: error: (Each undeclared identifier is reported only once > >nettest_xti.c:196: error: for each function it appears in.) > >nettest_xti.c:198: warning: incompatible implicit declaration of built-in > >function ?exit? > >nettest_xti.c:207: error: ?T_OPTMGMT? undeclared (first use in this function) > >nettest_xti.c:207: error: ?T_ALL? undeclared (first use in this function) > >nettest_xti.c:213: warning: incompatible implicit declaration of built-in > >function ?exit? > >nettest_xti.c:219: error: dereferencing pointer to incomplete type > >nettest_xti.c:220: error: dereferencing pointer to incomplete type > >nettest_xti.c:221: error: dereferencing pointer to incomplete type > >nettest_xti.c:232: warning: incompatible implicit declaration of built-in > >function ?exit? > >nettest_xti.c:238: error: dereferencing pointer to incomplete type > >... > >... > >make[3]: *** [nettest_xti.o] Error 1 > >make[3]: Leaving directory > >`/media/projects/devel/autotest/client/tests/netperf2/netperf-2.4.4/src' > >make[2]: *** [all-recursive] Error 1 > >make[2]: Leaving directory > >`/media/projects/devel/autotest/client/tests/netperf2/netperf-2.4.4/src' > >make[1]: *** [all-recursive] Error 1 > >make[1]: Leaving directory > >`/media/projects/devel/autotest/client/tests/netperf2/netperf-2.4.4' > >make: *** [all] Error 2 > > > >------------------- > > > >1. So I configure and compile with this: > ># ./configure --enable-sctp=yes --enable-unix=yes > > > >2. sctp_stream test is ok > ># ./netperf -t SCTP_STREAM -H 127.0.0.1 -l 10 > >SCTP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 127.0.0.1 > >(127.0.0.1) port 0 AF_INET > >Recv Send Send Socket Socket > >Message Elapsed Size Size Size Time > >Throughput bytes bytes bytes secs. 10^6bits/sec > > > >124928 124928 124928 10.20 2.55 > > Well, the test ran but the performance looks abysmal. I just test if test can execute with my laptop. maybe host network load was too large at that time. > >3. But STREAM_STREAM and DG_STREAM test is fail. > > > ># ./netperf -t STREAM_STREAM -H 127.0.0.1 -l 10 > >The test you requested is unknown to this netperf. > >Please verify that you have the correct test name, and that test > >family has been compiled into this netperf. > ># ./netperf -t DG_STREAM -H 127.0.0.1 -l 10 > >The test you requested is unknown to this netperf. > >Please verify that you have the correct test name, and that test > >family has been compiled into this netperf. > > > >4. Is there some mistake? > > Make sure that WANT_UNIX got defined in config.h. I found there is a mistake of netperf doc, the option for enable AF_UNIX testcase should be "--enable-unixdomain", I've sent a patch to you for fixing this problem. when I configure by "#./configure --enable-unixdomain", test of STREAM_STREAM and DG_STREAM can execute. > happy benchmarking, Thanks a lot! happy benchmarking, happy hacking, Amos _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
