Search the web
Sign In
New User? Sign Up
ftpbench · To develop an open-source FTP benchmark application,
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Getting up to many, many clients   Message List  
Reply | Forward Message #180 of 282 |
Re: [ftpbench] Getting up to many, many clients

On 2001-09-05 19:44:23 -0700, Dan Kegel wrote:
>
> 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...

I'm not sure what this means. I assume we're talking 500K simultaneous
connections....

Since port addresses are 16-bits, there are only 65536 on a single box.
You can use a single port to connect to multiple other addresses if you
bind() before calling connect(), but the combination of
src-addr:src-port:dst-addr:dst-port must be unique, IIRC. This limits
the applicability of such a technique to a benchmarking program that
connects (usually) to port 21 on a small number of hosts.

I'd say you need at least 10 client machines (50K per host) for this.
If you don't have that kind of hardware lying around, you might be able
to use user mode Linux and run virtual Linux boxes for the clients.

--
Shane
Carpe Diem



Thu Sep 6, 2001 6:56 am

shane@...
Send Email Send Email

Forward
Message #180 of 282 |
Expand Messages Author Sort by Date

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...
Dan Kegel
dank@...
Send Email
Sep 6, 2001
2:44 am

... I'm not sure what this means. I assume we're talking 500K simultaneous connections.... Since port addresses are 16-bits, there are only 65536 on a single...
Shane Kerr
shane@...
Send Email
Sep 6, 2001
6:56 am

... It's much easier than that. Just configure multiple ip addresses on the client box, then modify the client program to cycle through the addresses. That's...
Dan Kegel
dank@...
Send Email
Sep 6, 2001
4:26 pm

... Oh yeah. Nevermind. :) -- Shane Carpe Diem...
Shane Kerr
shane@...
Send Email
Sep 6, 2001
7:36 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help