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 your group to be featured on the Yahoo! Groups website? 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
timeout error   Message List  
Reply | Forward Message #172 of 282 |
Re: [ftpbench] timeout error

Hamid Reza Shahriari wrote:
> > I think this is saying that dkftpbench connected but got no response
> > to the GET command in five seconds.
> >
> > A few questions:
> > 1. how fast is the link between the client and the server?
> 100 MB/S
>
> > 2. Which FTP server software are you benchmarking? What OS?
> I use a firewall in transparent mode on special OS between dkftpbench and
> wu-ftp.

OK, the firewall is running a special OS.
What OS is the server running? What OS is the client running?

> > 3. Is the server publically accessible?
> Unfortunatelly firewall is not free and it is in development.
>
> > 4. Can you send me the complete log for a failed 1-client run, perhaps also
with
> > the output of "tcpdump -n -x proto tcp"?
> I attached the output.
> I run this command:
> ----------------------------------------------
> ./dkftpbench -hrostam -n1 -t180 -fx10k.dat -v
> Option values:
> -hrostam host name of ftp server
> -P21 port number of ftp server
> -n1 number of users
> -t180 length of run (in seconds)
> -b3600 desired bandwidth (in bytes per second)
> -uanonymous user name
> -probouser@ user password
> -fx10k.dat file to fetch
> -m1500 bytes per 'packet'
> -v1 verbosity
> warning: max_bytes_per_sec 3600 < eclock_hertz() 10000; clamping to 1 byte
> per tick
> warning: max_bytes_per_sec 3600 < eclock_hertz() 10000; clamping to 1 byte
> per tick
> 1 users alive, 0 users dead; at least 180 seconds to end of test
> ...
> User0: fetching 10240 bytes took 1.081600 seconds, 9467 bytes per second
> ...
> User0: fetching 10240 bytes took 1.077400 seconds, 9504 bytes per second
> ftp_client_pipe_t::skedCallback: get timeout, calling shutdown()
> robouser0::unwatchfd 3: stopping
> All users dead. Test failed.

Still looks like ftpbench is timing out on a connection.
You can verify this with a packet log generated by tcpdump;
it should show ftpbench trying to make a connection but getting
no response in five seconds. (Send the log to me and I'll check it.)

You can adjust the timeout by changing the line in ftp_client_pipe.cc from
/* Abort if no response in five seconds */
m_sked->addClient(this, m_wakeup + (5 * eclock_hertz()));

You might also try benchmarking with larger files, so it doesn't
try to open so many connections.

(It is possible to run out of free TCP ports. The limit on ports
for a particular client/server combination is dictated by
the local port range and the TCP specification, i.e.
ports per second = # of available ports / 2 MSL
MSL is normally 60 seconds, and on Linux # of available ports is
given by /proc/sys/net/ipv4/ip_local_port_range; on my system,
that defaults to "1024 4999", so there are about 4000 ports by default.
4000 / 120 = about 300.
Doesn't look like you're likely to run into this limit.)

- Dan



Tue May 8, 2001 4:16 pm

dank@...
Send Email Send Email

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

Hi all, I'm a new member of this list. I've faced an error with dkftpbench for benching our server: $ ./dkftpbench -hrostam -n300 -t600 -fx10k.dat -v ... ...
Hamid Reza Shahriari
shahriari@...
Send Email
Apr 29, 2001
12:13 pm

... I think this is saying that dkftpbench connected but got no response to the GET command in five seconds. A few questions: 1. how fast is the link between...
Dan Kegel
dank@...
Send Email
Apr 29, 2001
3:53 pm

... 100 MB/S ... I use a firewall in transparent mode on special OS between dkftpbench and wu-ftp. ... Unfortunatelly firewall is not free and it is in...
Hamid Reza Shahriari
shahriari@...
Send Email
May 8, 2001
3:47 pm

... OK, the firewall is running a special OS. What OS is the server running? What OS is the client running? ... Still looks like ftpbench is timing out on a...
Dan Kegel
dank@...
Send Email
May 8, 2001
5:24 pm

Dear Dan, The problem was solved. There was a bug in our ftp proxy of firewall. It was stalled in some steps of protocol. The dkftpbench helped us to find this...
Hamid Reza Shahriari
shahriari@...
Send Email
May 15, 2001
7:22 am

Hamid, thanks for letting me know dkftpbench helped! - Dan...
Dan Kegel
dank@...
Send Email
May 15, 2001
10:53 am
Advanced

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