Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

netperf question - how to add to makefile

SOLVED
Go to solution
Bill Costigan
Honored Contributor

netperf question - how to add to makefile

I managed to install netperf on my HPUX server by simply running the commands in the INSTALL file that was included in the download.

Looking at the documentation I see ..

If you want to test this.. recomple ...after adding -DDO_UNIX to the makefile.

I looked through the makefile (which is clear as mud to me.) Can someone tell me what it means to add this to the makefile?
13 REPLIES
Steven Schweda
Honored Contributor

Re: netperf question - how to add to makefile

> I looked through the makefile (which is
> clear as mud to me.) [...]

Hey. Mud, shmud. I can't see it at all from
where I'm sitting.

Lacking useful psychic powers, I might look
for something like
CFLAGS=
and try adding " -DDO_UNIX" to that stuff.

If you'd like more details from non-psychics,
then you might try providing some useful info
on which to base them.
Bill Costigan
Honored Contributor

Re: netperf question - how to add to makefile

Steven,

I was just about to congratulate you on your psychic powers because there was a line in the makefile that read:

CFLAGS =

I modified it to CFLAGS = "-DDO_UNIX"
and ran the make command. it complied and ran without errors

But then I got:
rx8n0vm0 # /usr/local/bin/netperf -t DG_STREAM
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.
rx8n0vm0 # cat Makefile |wc -l
557
rx8n0vm0 #

The Makefile is 557 lines long and I don't speak makefile so I wasn't sure what would be useful to include in the question.

I'm thinking that there was a bunch of folks that may have already donwloaded the netperf and had already modified the makefile so someone might be able to tell me what line to look for and how to modify it.
Steven Schweda
Honored Contributor

Re: netperf question - how to add to makefile

> [...] may have already donwloaded the
> netperf [...]

You can hope. With my weak psychic powers, I
don't know whence you got "the netperf", so I
can't tell you what's in your file, or how
you should be trying to use the resulting
program.

> 557

You could attach the thing to a posting here,
but a pointer to the source kit which you're
using might be more valuable.
Sameer_Nirmal
Honored Contributor

Re: netperf question - how to add to makefile

CFLAGS = -DDO_UNIX
Bill Costigan
Honored Contributor

Re: netperf question - how to add to makefile

Still no good
# /usr/local/bin/netperf -t DG_STREAM
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.
#
The Makefile is attached
Bill Costigan
Honored Contributor

Re: netperf question - how to add to makefile

I got the bits from http://www.netperf.org/netperf/NetperfPage.html

I downloaded and installed the netperf4_hpux_depenences and then the
netperf-2.4.5.tar.gz. Once that was all extracted, I ran the ./configure script that creates the Makefile.



02/16/2007 12:00AM 1,815 README.txt
10/18/2005 12:00AM 610 SVN_access_available.txt
06/12/2009 12:00AM Directory archive
01/30/2006 12:00AM Directory experimental
01/19/2010 05:36PM Directory misc
06/12/2009 12:00AM 960,609 netperf-2.4.5.tar.bz2
06/12/2009 12:00AM 1,238,976 netperf-2.4.5.tar.gz
06/12/2009 12:00AM 1,319,657 netperf-2.4.5.zip
04/18/2006 12:00AM 591,421 netperf-4.0.0rc2.tar.gz
04/18/2006 12:00AM 657,390 netperf-4.0.0rc2.zip
03/20/2003 12:00AM 35,808 netperf4_design.txt
03/18/2003 12:00AM 25,518 netperf4_design_0.5.txt
03/30/2006 12:00AM 9,626,815 netperf4_hpux_dependencies.tar.gz
11/28/2001 12:00AM 112,707 pocketperf_002.zip



Steven Schweda
Honored Contributor
Solution

Re: netperf question - how to add to makefile

> [...] my HPUX server [...]

Output from "uname -a" is seldom wasted.

> [...] running the commands in the INSTALL
> file [...]

As a general rule, a useful problem
description will include a transcript showing
the actual commands used (with their output),
rather than a vague description.

> I got the bits from [...]

Ok. I'd guess that "the
netperf4_hpux_depenences" has more to do with
netperf-4* than with netperf-2.4.5.tar.gz,
but it could be harmless.

> CC = cc

> build = ia64-hp-hpux11.23

Those are interesting. (My gcc gets annoyed
by the (lame) multiple inclusions of
config.h (re-)defining HAVE_BZERO. The
bundled "cc" (all I have from HP) is
happier.)

> Looking at the documentation I see ..

Looking at _which_ documentation?

dyi # find . -exec grep DO_UNIX {} \; -print
CFLAGS += -DDEBUG_LOG_FILE=\"/dev/null\" -DDO_FIRST_BURST -DDO_UNIX
./src/Makefile.uw

I don't know what Makefile.uw is, or why I'd
care what's in it.

I got a program (and a fair number of
compiler warnings) by doing this:

dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license

[Different, I know.]

dyi # CC=cc ./configure

dyi # gmake

Then:

dyi # src/netperf -t DG_STREAM
establish control: are you sure there is a netserver listening on localhost at p
ort 12865?
establish_control could not establish the control connection from 0.0.0.0 port 0
address family AF_UNSPEC to localhost port 12865 address family AF_UNSPEC

which looks better than what you got, but if
I run a netserver, then I get what you got.

dyi # src/netserver
Starting netserver at port 12865
Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC

dyi # src/netperf -t DG_STREAM
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.

According to "doc/netperf.info":

The DG_STREAM test is only present if netperf was configured with
`--enable-unix=yes'. The remote netserver must have also been
configured with `--enable-unix=yes'.

Now, there's no evidence that "--enable-unix"
is a valid option but, on the other hand, as
"./configure --help" suggests:

dyi # gmake clean # And kill off the old netserver process...

dyi # CC=cc ./configure --enable-unixdomain=yes

dyi # gmake

dyi # ./src/netserver

dyi # src/netperf -t DG_STREAM
DG UNIDIRECTIONAL SEND TEST
Socket Message Elapsed Messages
Size Size Time Okay Errors Throughput
bytes bytes secs # # 10^6bits/sec

dg_send: data send error: Message too long


At this point, I'd tend to declare the whole
thing a pile of sloppy code with bad
documentation, but I may be overly harsh.
Perhaps a complaint to the perpetrators would
get you further.
Sameer_Nirmal
Honored Contributor

Re: netperf question - how to add to makefile

I would run the "configure" with " --enable-unix=yes".
Sameer_Nirmal
Honored Contributor

Re: netperf question - how to add to makefile

Per the release notes:

*) Unix domain socket tests are compiled-in with --enable-unix=yes at configure time.
Bill Costigan
Honored Contributor

Re: netperf question - how to add to makefile

Thank you both for your analysis and suggestions. I was hoping this would have been a easier question but I see that is not the case.
Steven Schweda
Honored Contributor

Re: netperf question - how to add to makefile

> I would run the "configure" with " --enable-unix=yes".

> Per the release notes:
> [...]

Yes, per the _inaccurate_ release notes.
Around here, for example:

dyi # CC=cc ./configure
[...]
dyi # mv config.h config.h_

dyi # CC=cc ./configure --enable-unix=yes
[...]
dyi # mv config.h config.h_u

dyi # CC=cc ./configure --enable-unixdomain=yes
[...]
dyi # mv config.h config.h_ud


dyi # diff config.h_ config.h_u
dyi # diff config.h_ config.h_ud
358c358
< /* #undef WANT_UNIX */
---
> #define WANT_UNIX
dyi #

Note that what you get from the right option
is "WANT_UNIX", not "DO_UNIX".


Trust no one, I always say.

I especially like the way an invalid option
is accepted without a complaint. (Ask me
what I think of the quality of this product.
Go ahead, ask me.)
rick jones
Honored Contributor

Re: netperf question - how to add to makefile

OK, what do you think of the quality of netperf?-)

FWIW, netperf is *NOT* an HP product, it is simply something that HP allows one of its engineers to work on, and they also happen to find useful.

Those finding bugs or having issues with netperf are heartily encouraged to use the feedback links on www.netperf.org and/or join the netperf-talk@netperf.org mailing list so their questions/concerns can be made known to "Mr. Netperf."
there is no rest for the wicked yet the virtuous have no pillows
Bill Costigan
Honored Contributor

Re: netperf question - how to add to makefile

Thanks Rick. I'll use the e-mail address you listed. I posted the question here because I figured there were a lot of netperf users that monitor this forum.