[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: swapfiles & memory



On Thu, 17 Jul 2003 03:30:11 +0200, Oki DZ wrote:

> I forgot, I have these settings too:
> 	echo "1" >   /proc/sys/net/ipv4/ip_forward echo "1" >
> 	/proc/sys/net/ipv4/tcp_syncookies echo "1" >
> 	/proc/sys/net/ipv4/tcp_abort_on_overflow echo "600" >
> 	/proc/sys/net/ipv4/tcp_keepalive_time echo "60" >
> 	/proc/sys/net/ipv4/tcp_keepalive_intvl echo "32" >
> 	/proc/sys/net/ipv4/tcp_max_orphans echo "3"  >
> 	/proc/sys/net/ipv4/tcp_orphan_retries
> 
> Is the tcp keepalive too long?

Might well be, although I don't think so. At least that woule be more
understandable than blaming it on the swap file. :) The
two-times-the-physical-RAM rule is a recommendation, nothing more.

Maybe take a look at /proc/net/sockstat after the system has been up some
time.

Jul 11 15:47:20 bdg kernel: TCP: too many of orphaned sockets
Jul 11 15:47:58 bdg kernel: Out of socket memory

Sounds more like "all sockets in use" than "my swapfile is too big".

-- 
Best Regards,   |   Hi! I'm a .signature virus. Copy me into
 Sebastian      |   your ~/.signature to help me spread!



Reply to: