[Top] [All Lists]

Still bug-hunting

To: netdev@xxxxxxxxxxx
Subject: Still bug-hunting
From: Christian Schmid <webmaster@xxxxxxxxxxxxxx>
Date: Sat, 05 Mar 2005 18:57:00 +0100
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a3) Gecko/20040817

I have found out that the slow-down issue with many sockets is a memory problem now. Not that I do not have enough but the vm isnt able to reclaim fast-enough. Problem temporarily solved by setting lower_zone_protection to 1024. Still I wonder why /proc/net/sockstat shows this:

sockets: used 1637
TCP: inuse 1761 orphan 179 tw 3743 alloc 1761 mem 54224

The send-buffer is set to 128 and the rcv-buffer to 16 so theoretically it should be 1637*144=235728 so I assume the buffers are allocated dynamically when they are really needed... I suppose the slow-down wouldnt appear if the buffers are allocated statically. Is there any way to check this?


<Prev in Thread] Current Thread [Next in Thread>