[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bad performance

2002-11-20 21:55:40, Fabian Duelli wrote:
>I've setted up an OpenBSD 3.2 i386 FTP server. (ftpd -DllUSA)
>Compiled my own kernel with
>NMBCLUSTERS=8192 (100 MBit network)
>but now my problem is when I'm copying files from
>the server I don't get more than 1.5 MByte/s.
>The same when I'm uploading anything.
>For testing I've downloaded the same file (60 MB)
>several times but I didn't get more speed.
>(Because the file should than be in the RAM)
>The server runs also as NFS server and
>I don't get more than 1.5 MByte/s too.
>The network is ok, I own another BSD box (FreeBSD)
>and there I get more than 5 MByte/s.

What you want to determine is where the bottleneck is.  You've
mentioned two tests here, FTP and NFS.  Both of them involve disk
and network operations.  So, you should come up with tests that
isolate the two subsystems to see where the 1.5MB/s is coming from.

For the fs, just dd(1) the file a few times to /dev/null with a
reasonable block size and see how it performs.  For the network,
well, try ftp'ing from a memory filesystem.  That'll give you much
more insight into where the performance limitations are.

Also, keep in mind that increasing the number of bufpages may not
help ftpd as it mmap(2)s the file and OpenBSD does not have UBC.
In fact, increasing BUFCACHEPERCENT to 80 may be actively hurting

    Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/