DragonFly kernel List (threaded) for 2005-04
Re: Stable tag slipped
Matthew Dillon wrote:
:I've been running 3 loops of mirroring wget -m on the apache manual,
:with the fetched page deleted in between, MaxClients=256,
:MaxKeepAliveRequests=0. There is one loop runned localy.
:There are more than 4000 connections in TIME_WAIT, more than 4000 sockets.
:The server responds very well and there are no delays.
:Tomorrow I will try MaxKeepAliveRequests to an impossibly high number to
:generate long running connections and see how it copes.
:I welcome suggestions on what test to run as I am no expert in neither
:os nor networking.
Have you adjusted the portrange? Do these:
You may also have to lower the MSL on the originating machines to reduce
the number of sockets being held in a TIME_WAIT state.
(default is 30000ms)
currently with the same tests still running:
dragonfly# netstat -tn | wc -l
dragonfly# netstat -tn | fgrep TIME_WAIT | wc -l
dragonfly# netstat -m
197/551/18176 mbufs in use (current/peak/max):
150 mbufs allocated to data
47 mbufs allocated to packet headers
114/246/4544 mbuf clusters in use (current/peak/max)
629 Kbytes allocated to network (4% of mb_map in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines
0:45 up 1:31, 2 users, load averages: 0,19 0,28 0,30
0:45 up 1:31, 2 users, load averages: 0,18 0,27 0,30
dragonfly# sysctl net.inet.ip.portrange
dragonfly# sysctl net.inet.tcp.msl
dragonfly# sysctl kern.ipc.maxsockets
dragonfly# sysctl net.inet.tcp.recvspace
dragonfly# sysctl net.inet.tcp.sendspace
The machine doing the hammering is a Mac running MacOSX.
[pomme:~] raphael% sysctl net.inet.tcp.msl
[pomme:~] raphael% sysctl kern.ipc.maxsockets
Just keep in mind there is one loop running locally on the dfbsd machine
Why should the portrange be adjusted?