Re: Bottleneck in httpd. I need help to address capacity issues on max parallel and rate connections

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

On Wed, May 09, 2007 at 06:41:27PM -0400, Daniel Ouellet wrote:

> ===========================

What does netstat -m tell you about the peak usage of clusters is it
really that high?

> kern.maxproc=2048 # Increase for the process limits.

> kern.somaxconn=2048

Is httpd really so slow in accepting sockets that you had to increase this
by factor 16? Is httpd actually doing a listen with such a large number?

> net.bpf.bufsize=524288

As tedu@ pointed out this has nothing todo with your setup.

> net.inet.ip.maxqueue=1278

Are you sure you need to tune the IP fragment queue? You are using TCP
which does PMTU discovery and sets the DF flag by default so no IP
fragments should be seen at all unless you borked something else.

> net.inet.ip.portfirst=32768

This has no effect unless you enable forwarding.

> net.inet.tcp.keepinittime=10

These values are super aggressive especially the keepidle and keepintvl
values are doubtful for your test. Is your benchmark using SO_KEEPALIVE? I
doubt that and so these two values have no effect and are actually
counterproductive (you are sending more packets for idle sessions).

> net.inet.tcp.mssdflt=1452

This is another knob that should not be changed unless you really know
what you are doing. The mss calculation uses this value as safe default
that is always accepted. Pushing that up to this value may have unpleasant
sideeffects for people behind IPSec tunnels. The used mss is the max
between mssdflt and the MTU of the route to the host minus IP and TCP
header.

> net.inet.tcp.recvspace=65535

> net.inet.tcp.synbucketlimit=420

If you need to tune the syncache in such extrem ways you should consider
to adjust TCP_SYN_HASH_SIZE and leave synbucketlimit as is. The
synbucketlimit is here to limit attacks to the hash list by overloading
the bucket list. On your system it may be necessary to traverse 420 nodes
on a lookup. Honestly the syncachelimit and synbucketlimit knob are totaly
useless. If anything we should allow to resize the hash and calculate the
both limits from there.

--
:wq Claudio

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Bottleneck in httpd. I need help to address capacity iss..., Douglas Allan Tutty, (Wed May 9, 10:52 am)
Re: Bottleneck in httpd. I need help to address capacity iss..., Claudio Jeker, (Thu May 10, 5:16 am)
Re: Bottleneck in httpd. I need help to address capacity iss..., Douglas Allan Tutty, (Tue May 8, 9:53 pm)