2. I noticed other parameters for network tuning is
not-so-important in this time. Most problem comes with low
kern.ipc.nmbclusters -- I failed to set it over 65536.

3. Usually thttpd use mmap() for caching contents in memory. Our
   service file(only static files) varies from 10k ~
   300Mbytes. Sometimes thttpd denies request with 500 internal error,
   resetting mmap() buffers.

   I patched current unused sendfile() patch for thttpd, it works
   nicely, but in this case, thttpd process suffers "sfbufa" state,
   with all requests delayed or even disconnected(total traffic is <
   100Mbits then).

   So another problem comes with kern.ipc.nsfbufs -- I tried to
   increase arbitrary values but it also cause kernel panic.

Final: What is a good math for calculating these values safely?

  kern.ipc.nmbclusters
  kern.ipc.nsfbufs

From: CHOI Junho <[EMAIL PROTECTED]>
Subject: Performance tuning hints of gigabit networking?
Date: Wed, 26 Feb 2003 22:05:51 +0900 (KST)

> 
> Hi,
> 
> I am looking for a good resource for kernel tuning on very high
> bandwidth HTTP servers(avg 500Mbit/sec, peak 950Mbit/sec). Today I
> faced very unusual situation with 950Mbit/sec bandwidth!
> 
> > netstat -m
> 16962/93488/262144 mbufs in use (current/peak/max):
>         16962 mbufs allocated to data
> 16952/65536/65536 mbuf clusters in use (current/peak/max)
> 154444 Kbytes allocated to network (14% of mb_map in use)
> 512627 requests for memory denied
> 2614 requests for memory delayed
> 0 calls to protocol drain routines

--
CHOI Junho <http://www.kr.FreeBSD.org/~cjh>     KFUG <cjh at kr.FreeBSD.org>
FreeBSD Project <cjh at FreeBSD.org>        Web Data Bank <cjh at wdb.co.kr>
Key fingerprint = 1369 7374 A45F F41A F3C0  07E3 4A01 C020 E602 60F5

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to