That's a good idea. I can easily do that. How would you
like to specify the addresses? As a file, with one numerical
IP address per line, or with some sort of rule?
However, to get up past 10000 or so connections
will require using something faster than
poll(). The easiest for me to support would be /dev/epoll, but
that would require you to install a patch. I could whip together
support for rtsignals, that would be very efficient, might take me
more than a day, though.
How many clients have you gotten up to so far, and how much RAM
do you have on your client machine? I don't know if you can get
to 500K on a single client machine, even with your multiple address
trick, because of RAM limitations...
- Dan
Nimesh vakharia wrote:
>
> Hi, I've been using your tools to benchmark a few things and its very
> effective. I am trying to benchmark a linux box with iptables/fw1 on it. I
> am trying to get to atleast 500K total connections. I was wondering if
> there was a chance the script could be modified to take a range of IPs and
> establish ftp connections that range of IP in a cyclic way? (Anywhere from
> 1K to 10K range of IPs).
>
> thanks,
>
> Nimesh.
>
> > Nimesh vakharia wrote:
> > > Can you help?
> > > [root@m160 dkftpbench-0.22]# uname -a
> > > Linux m160 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
> > >
> > > [root@m160 dkftpbench-0.22]# make
> > > c++ -DPACKAGE=\"dkftpbench\" -DVERSION=\"0.22\" -DHAVE_LIBNSL=1
> > > -DHAVE_INET_ATON=1 -DHAVE_DEVPOLL=0 -I. -I. -Wall -W
> > > -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
> > > -Wwrite-strings -O2 -c bench.cc
> > > cc1plus: warning: Ignoring command line option '-Wstrict-prototypes'
> > > cc1plus: warning: Ignoring command line option '-Wmissing-declarations'
> > > In file included from robouser.h:23,
> > > from bench.cc:19:
> > > eclock.h:37: `clock_t' was not declared in this scope
> >
> > Wow, looks like I never tried it on Red Hat 7.x! Try
> > http://www.kegel.com/dkftpbench/dkftpbench-0.23.tar.gz
--
"I have seen the future, and it licks itself clean." -- Bucky Katt