Skip to contentSkip to conversation

New: no space left on device, when doing "cat /proc/net/ip_conntrack | wc -l"

Bugme-new Andrew Morton 1 participant 1 message Jan 28, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Fri, 28 Jan 2005 11:46:35 -0800
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 4119] New: no space left on device, when doing "cat /proc/net/ip_conntrack | wc -l"

http://bugme.osdl.org/show_bug.cgi?id=4119

Summary: no space left on device, when doing "cat
/proc/net/ip_conntrack | wc -l"
Kernel Version: 2.6.10
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]

Distribution: slackware
Hardware Environment: i386
Software Environment: linux
Problem Description:

After upgrading from 2.6.x to 2.6.10, after some days running, when the nat
table is filled with thousands of lines , when you do a :

cat /proc/net/ip_conntrack | wc -l

You get a number of lines (currently between 22k and 23k), preceeded by the message "No space left on device".
Note that the ip_conntrack_max parameter in the proc fs is set to 65535. The problem appears randomly.
When doing a strace of the previous command, you see possibly a buffer overflow.

If you decrease the ip_conntrac_max value to 8192, the problem disappears.

Steps to reproduce:

- set the ip_conntrack_max parameter to 65535
- wait for some hours, opening a lot of connections recorded in the ip_conntrack file ( proc fs )
- do a "wc -l" of the conntrack file
- you randomly get the error....

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.