**net** Re: Outbound TCP issue, potentially related
to'FreeBSD-SA-05:08.kmem [REVISED]'
Maxim Konovalov
maxim at macomnet.ru
Fri May 13 12:54:32 PDT 2005
[...]
> 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
More information about the freebsd-net
mailing list