stuck TIME_WAIT sockets

Igor Sysoev is at rambler-co.ru
Fri Oct 2 15:38:26 UTC 2009


On Fri, Oct 02, 2009 at 05:06:46PM +0400, Igor Sysoev wrote:

> The TIME_WAIT sockets suddenly started to grow on a host running
> FreeBSD 7.2-STABLE, date=2009.09.06.23.59.59
> Usually there are 3,000-5,000 TIME_WAIT sockets on the host.
> However, today they stared to grow, have reached 110,000 sockets in hour
> and still remain on this level.
> net.inet.tcp.msl is 30000.
> The host uptime is 24 days, 21:53.
> 
> I have saved a coredump and may try to help to debug the issue.

There are also 10 stuck LAST_ACK sockets.

"swi4: clock sio" is usually idle, however, if I run

netstat -an | grep TIME_WAIT | wc -l

then swi4 gets some CPU:

  PID USERNAME  THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
   11 root        1 171 ki31     0K    16K CPU1    1 112.0H 98.29% idle: cpu1
   12 root        1 171 ki31     0K    16K RUN     0 116.8H 94.78% idle: cpu0
   14 root        1 -32    -     0K    16K WAIT    0  13:11  1.66% swi4: clock 
   26 root        1 -68    -     0K    16K WAIT    0 334:11  0.00% irq19: bge0


-- 
Igor Sysoev
http://sysoev.ru/en/


More information about the freebsd-net mailing list