Skip to contentSkip to conversation

linux 2.6.10: ip_conntrack table overflowing

DISCUSSION Max Kellermann 2 participants 3 messages Jan 4, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

yesterday, we upgraded four servers from 2.6.9 to 2.6.10. 12 hours later (last night), all of them stopped responding; the conntrack tables were full:

Jan  3 21:03:31 cfapro01 kernel: ip_conntrack: table full, dropping

packet.

We rebooted, and now there are more than 30000 connections in /proc/net/ip_conntrack, but netstat only shows 400; example:

tcp 6 421183 ESTABLISHED src=XXremoteXX dst=YYlocalYY
sport=29800 dport=80 src=YYlocalYY dst=XXremoteXX sport=80 dport=29800 [ASSURED] mark=0 use=1

Seems like conntrack hasn't notice the connection has gone away already, and will keep these for 5 days (default timeout). We have now worked around this bug by reducing the timeout to 1 hour, I hope this keeps the table from filling up until the "real" bug is found and fixed.

Some information about the hardware:
- compaq, dual xeon p4, serverworks mainboard, 4 GB RAM
- cciss controller
- bcm57xx, intel e100 network adapters

We have KDB enabled on the four machines; they are still up and running, with these stale connections. If someone needs more information, let me know.

Regards,
Max Kellermann

#1 lore raw

Hi,

2005-01-04, k keltezéssel 13.40-kor Max Kellermann ezt írta:

Quoted 5 lines

yesterday, we upgraded four servers from 2.6.9 to 2.6.10. 12 hours later (last night), all of them stopped responding; the conntrack tables were full:

Jan  3 21:03:31 cfapro01 kernel: ip_conntrack: table full, dropping
Quoted 8 lines

packet.

We rebooted, and now there are more than 30000 connections in /proc/net/ip_conntrack, but netstat only shows 400; example:

tcp 6 421183 ESTABLISHED src=XXremoteXX dst=YYlocalYY
sport=29800 dport=80 src=YYlocalYY dst=XXremoteXX sport=80 dport=29800 [ASSURED] mark=0 use=1

Seems to be the problem already reported and fixed by Martin. Take a
look at

https://lists.netfilter.org/pipermail/netfilter-devel/2004-December/017908.html

for the detailed description and the patch fixing the bug.

Signature · 2 lines
 Regards,
  Krisztian Kovacs