Operating System - HP-UX
1748089 Members
4744 Online
108758 Solutions
New Discussion юеВ

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 13
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.