I've ran out of ideas

Claus Guttesen cguttesen at yahoo.dk
Thu Nov 18 02:10:43 PST 2004


> I'm pushing large files via thttpd over low-end
> hardware (celeron
> 1.8GHz, 512MB RAM, UATA 100 drive) and, out of the
> box, FreeBSD
> 5.3-RELEASE topped out at 40Mbps sustained. After
> creating a separate
> partition with a much larger blocksize, it's hit
> 50Mbps sustained but
> won't go past 54Mbps at all.

You could try adding/tweaking HZ to 1000/2000 in
kernel and add kern.polling.enable=1 to
/etc/sysctl.conf.

> Nov 18 04:00:15 d thttpd[38743]: write - Socket is
> not connected
> sending /path/to/file.name
> 

Try adding:

kern.ipc.somaxconn=2048
kern.maxfiles=65536
net.isr.enable=1

to /etc/sysctl.conf as well. net.isr.enable gave
better network-performance on a 5.3 RC3 nfs-server and
lower cpu-usage.

HTH.
Claus



More information about the freebsd-performance mailing list