Re: 2.2.5 optimizations for web benchmarks?

Cacophonix Gaul (cacophonix@yahoo.com)
Fri, 16 Apr 1999 23:25:35 -0700 (PDT)


--- Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:

> > especially curious if increasing the initial tcp cwnd
> > to min (4380, 4*MSS) as suggested by IETF/tcpimpl would
>
> It will do for an http/1.0 test, it doesn't for real world. You can tell
> if its a factor because you will see much less than 100% CPU usage and
> that adding clients increases performance.
>
> > connections of the benchmark (I presume I'd have to
> > change both snd_cwnd and snd_cwnd_cnt)

In my setup, changing the initial value of these more than doubles
performance (with the same number of clients).

> > Will I get any benefit from changing the tunables in eepro100.c and
> > yellowfin.c ?
>
> There is nothing there you need to touch
>
> > inode-max
> > bdflush
> > buffermem
> > freepages
> > kswapd
> > pagecache
> > Any other I'm missing ?
>
> You shouldnt need to touch those either.

There must be _something_ I'm missing. A typical procinfo shows:

Memory: Total Used Free Shared Buffers Cached
Mem: 517720 427572 90148 21972 26916 385984
Swap: 1312720 0 1312720

Bootup: Thu Sep 3 17:47:11 1998 Load average: 4.94 2.59 1.65 1/34 1776

user : 0:00:01.10 13.7% page in : 0 disk 1: 0r 8w
nice : 0:00:00.00 0.0% page out: 11 disk 2: 0r 0w
system: 0:00:05.38 67.1% swap in : 0
idle : 0:00:09.56 119.2% swap out: 0
uptime: 1:17:38.42 context : 61598

irq 0: 802 timer irq 16: 26222 Intel EtherExpress P
irq 1: 0 keyboard irq 17: 12774 Intel EtherExpress P
irq 2: 0 cascade [4] irq 18: 18 ncr53c8xx, Intel Eth
irq 7: 122 irq 19: 3 Intel EtherExpress P
irq 13: 0 fpu irq 129: 61598

Looks like the CPU is mostly idle, there is memory to spare (and no swapping),
and most of the files are being served from cache - hence the low disk read
numbers (although the disk is a pretty fast seagate cheetah). Logging is off.
The network is pretty clean - no retransmissions. Yet the specweb throughput
is below offered load.

I haven't had much time to investigate this yet...

>
> If you want to answer the question "how fast is linux as a web server"
> consider benchmarking using Zeus (www.zeus.co.uk) too.
>

That was my first option - but the version I'm running is disappointing,
and the binary doesn't give many options to tune.

Anyone know of a webserver that uses sendfile() on linux?

thanks.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
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/