Re: FTP benchmark proposal

Marc Mutz (Marc@Mutz.com)
Mon, 28 Jun 1999 00:11:21 +0200


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/