Out of socket memory? (2.4.0-test11)

From: Daniel Walton (zwwe@opti.cgi.net)
Date: Wed Dec 06 2000 - 23:56:32 EST


Hello,

I've been having a problem with a high volume Linux web server. This
particular web server used to be a FreeBSD machine and I've been trying to
successfully make the switch for some time now. I've been trying the 2.4
development kernels as they come out and I've been tweaking the /proc
filesystem variables but so far nothing seems to have fixed the
problem. The problem is that I get "Out of socket memory" errors and the
networking locks up. Sometimes the server will go for weeks without
running into the problem and other times it'll last 30 minutes. The
hardware in question is an 1Ghz Athalon system with 256Mb of ram and an IDE
hard disk. I've tried every 2.4 test kernel to date. The web server is a
specialized web server running about 10 million hits a day. Of the 256Mb
of ram the web server uses 40Mb and there are no other significant memory
consuming processes on the system. Currently I am using the following
/proc modifications in the rc.local file.

echo "7168 11776 16384" > /proc/sys/net/ipv4/tcp_mem
echo 32768 > /proc/sys/net/ipv4/tcp_max_orphans

What am I doing wrong? Is this a kernel problem or a configuration
problem? Is there any way I can get runtime information from the kernel on
things like amount of socket memory used and amount available? Am I using
the right variables to increase available socket memory and just not giving
it enough yet?

I appreciate any help provided.

Thank you,
Daniel Walton

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Dec 07 2000 - 21:00:16 EST