lkml.org 
[lkml]   [1999]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: FTP benchmark proposal
Andi Kleen wrote:
>
> The hard thing will be to simulate slow/timing out connections that occur over
> the internet. Just low-latency local networking with no lost packets is easy.
>
> So perhaps something like a NISTNET box is needed inbetween?
>
When benchmarking CGI on web servers, it is common to include a sleep(3)
or so call somewhere in the script.
Maybe this can most easily be done on the client side with a few lines
of perl (or C) like:
#!/usr/bin/perl
# initialize everything, then loop over some set of files and do ...

while (sysread (FTP,$buf,100)) {
sleep 1;
$download .= $buf;
};
print LOG "failed\n" unless &check_if_correct ($download);

Marc


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.226 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site