Skip to contentSkip to conversation

Connection Tracking - How Many???

LARTC Walter D. Wyndroski 2 participants 3 messages Sep 24, 2003 – Sep 25, 2003

lore
Share & tools
lore
#0 lore raw

How many connections can be tracked with:

512 megabytes of RAM?
1 gigabyte of RAM?

I know there is a limit. I read it somewhere about eight months ago in some obscure location.

Thanks in advance.
Walt
**********************************************************************************************
* This message has been scanned by CityNET's email scanner for viruses and dangerous content *
* and is believed to be clean. CityNET is proud to use MailScanner. For more information *
* concerning MailScanner, visit http://www.mailscanner.info *
**********************************************************************************************

#1 lore raw
Quoted 7 lines · Walter D. Wyndroski

How many connections can be tracked with:

512 megabytes of RAM?
1 gigabyte of RAM?

I know there is a limit. I read it somewhere about eight months ago in some obscure location.

From the faq page on netfilter.org :

3.6 ip_conntrack: maximum limit of XXX entries exceeded

If you notice the following message in syslog, it looks like the conntrack database doesn't have enough entries for your environment. Connection tracking by default handles up to a certain number of simultaneous connections. This number is dependent on you system's maximum memory size (at 64MB: 4096, 128MB: 8192, ...).

You can easily increase the number of maximal tracked connections, but be aware that each tracked connection eats about 350 bytes of non-swappable kernel memory!

To increase this limit to e.g. 8192, type:

echo "8192" > /proc/sys/net/ipv4/ip_conntrack_max

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Walter D. Wyndroski

Sorry, I must have missed it when reading the netfilter howto. I found it later when reading through it again: approx 32,000 connections per 512 megs of ram.

Walt
----- Original Message -----
From: Walter D. Wyndroski
To: [email protected]
Sent: Tuesday, September 23, 2003 10:44 PM
Subject: [LARTC] Connection Tracking - How Many???

How many connections can be tracked with:

512 megabytes of RAM?
1 gigabyte of RAM?

I know there is a limit. I read it somewhere about eight months ago in some obscure location.

Thanks in advance.
Walt

This message has been scanned by CityNET's email scanner for viruses and dangerous content and is believed to be clean. CityNET is proud to use MailScanner. For more information concerning MailScanner, visit http://www.mailscanner.info

**********************************************************************************************
* This message has been scanned by CityNET's email scanner for viruses and dangerous content *
* and is believed to be clean. CityNET is proud to use MailScanner. For more information *
* concerning MailScanner, visit http://www.mailscanner.info *
**********************************************************************************************