[lkml]   [2000]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectOut of socket memory? (2.4.0-test11)


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
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:51    [W:0.075 / U:2.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site