Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2005 23:54:29 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Matt Ruzicka <matt@frii.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: **net** Re: Outbound TCP issue, potentially related to'FreeBSD-SA-05:08.kmem  [REVISED]'
Message-ID:  <20050513234632.G89371@mp2.macomnet.net>
In-Reply-To: <Pine.BSF.4.58.0505131316460.4892@elara.frii.com>
References:  <Pine.BSF.4.58.0505121627400.66727@elara.frii.com> <20050513134227.P616@odysseus.silby.com> <20050513230848.K89035@mp2.macomnet.net> <Pine.BSF.4.58.0505131316460.4892@elara.frii.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[...]
> When I check the vmstat while getting errors from the netcat script I get
> this.
>
> -->vmstat -z | grep -i sock                           2005/05/13 13:33:20
> socket:          224,    16424,  16438,      0,  1150867

Limit ---------------------^^^^^
Current ---------------------------^^^^^

> Here is my vmstat -z in a "normal" state.
>
> ITEM            SIZE     LIMIT    USED    FREE  REQUESTS
[...]
> socket:          224,    16424,   3621,  12817,  1167053

[...]
> And during the failures..
>
> ITEM            SIZE     LIMIT    USED    FREE  REQUESTS
[...]
> socket:          224,    16424,  16430,      8,  1201620

[...]
> Am I pretty much just looking at a tuning issue at this point I assume?

1) Use a persistent connection if possible.

2)

/etc/sysctl.conf:
	net.inet.tcp.msl="5000"
	net.inet.ip.portrange.last="50000"

perhaps

/boot/loader.conf:
	kern.ipc.maxsockets="32768"

-- 
Maxim Konovalov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050513234632.G89371>