Re: Porting Netperf to VxWorks

Tom Pavel (pavel@slac.stanford.edu)
Wed, 04 Aug 1999 00:06:28 -0700

>>>>> On Tue, 3 Aug 1999, "Bubeck, Leslie" <leslie.bubeck@lmco.com> writes:

> Does anyone know if Netperf has been ported to VxWorks?? I have just been
> tasked with this and I'd hate to reinvent the wheel if it has already been
> done.

I did some work on porting version 2.1pl3 to VxWorks Tornado on
PowerPC. Unfortunately, netperf had moved on from pl3, Rick was busy
working on v3, and I got busy on other projects, so these patches
never got integrated into production netperf.

I think my diffs would serve you well as a starting point. It
probably shouldn't be much work to move them forward to the latest 2.1
pl. You can get them from the mailing list archives or from
ftp://ftp.slac.stanford.edu/users/pavel/netperf-vxw.diffs

Caveats are that I concentrated on the TCP_STREAM test, and there are
some unsolved problems with the UDP tests. [One of them is that
VxWorks does not allow IOs to be interrupted by signals (even though
they define a SA_INTERRUPT), so one needs to make the IO loop always
do select() and then recv().] Also, being new to VxWorks, I tended to
solve my problems with the optional POSIX features (that are not
always included into VxWorks kernels). For wider applicability, one
might want to use native VxWorks timers, etc.

Ok. Hope this info is helpful to you. Feel free to contact me if I
can answer questions.

Tom Pavel

Stanford Linear Accelerator Center
pavel@slac.stanford.edu http://www.slac.stanford.edu/~pavel/