buckets-byte per conntrack
ip_conntrack version 2.1 (214 buckets, 1712 max) - 208 bytes per conntrack
I searched the archive and didn't find a detailed explanation for these values, can someone please help me?
208 bytes per conntrack:
i guess that means that 208 bytes are used for managing ip, ports,state, connection-lifetime, tcp-option,seq-numbers,... (can I see how many bytes for which values used?)
when are the 208 bytes consumed? I started 100 tcp-server-sockets and lost 100*330 bytes free_memory (vmstat). Then I build a new kernel without connection tracking and i got exactly the same memory-usage. why, I expected lower memory-usage without ip_conntrack?
1712 max:
means that I can only track 1712 connections? what happens if i have more, are they denied, invalid, not logged? if i match on ESTABLISHED and have more than 1712 connections, what then?
how can i have more max?
214 buckets:
nothing found, what's that?
Machen Sie aus 14 Cent spielend bis zu 100 Euro!
Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot.
http://www.arcor.de/rd/emf-gaming-1
Quoted 9 lines · On Mon, Jun 27, 2005 at 04:27:55PM +0200, [email protected] wrote:
ip_conntrackversion 2.1 (214 buckets, 1712 max) - 208 bytes per conntrackI searched the archive and didn't find a detailed explanation for these values, can someone please help me?
208 bytes per conntrack:
i guess that means that 208 bytes are used for managing ip, ports,state, connection-lifetime, tcp-option,seq-numbers,... (can I see how many bytes for which values used?)when are the 208 bytes consumed? I started 100 tcp-server-sockets and lost 100*330 bytes
free_memory(vmstat). Then I build a new kernel without connection tracking and i got exactly the same memory-usage. why, I expected lower memory-usage withoutip_conntrack?
Quoted 7 lines
1712 max:
means that I can only track 1712 connections? what happens if i have more, are they denied, invalid, not logged? if i match on ESTABLISHED and have more than 1712 connections, what then?
how can i have more max?214 buckets:
nothing found, what's that?
I wrote a little document that might partially answer your questions:
http://www.wallfire.org/misc/netfilter_conntrack_perf.txt
Herve
Signature · 4 lines
_ (°= Hervé Eychenne //) v_/_ WallFire project: http://www.wallfire.org/
Quoted 2 lines
I wrote a little document that might partially answer your questions:
http://www.wallfire.org/misc/netfilter_conntrack_perf.txt
Thanks, this helps a lot. I am going to play around with these values and watch what happens.
But one last thing, I did not yet understand:
Quoted 3 lines
On systems with enough memory and where performance really matters, you can really consider trying to get an average of one conntrack entry by hash bucket, that means HASHSIZE =
CONNTRACK_MAX.
...
Quoted 2 lines
So, on i386, kernel 2.6.5,
size_of_mem_used_by_conntrackis aroundCONNTRACK_MAX* 300 + HASHSIZE * 8 (bytes).
When I compare the mem_used_by_conntrack in case of:
a) HASHSIZE = CONNTRACK_MAX and
b) default CONN_MAX=HASHSIZE * 8
I get almost no difference. Why is there not HASHSIZE = CONNTRACK_MAX by default?
Machen Sie aus 14 Cent spielend bis zu 100 Euro!
Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot.
http://www.arcor.de/rd/emf-gaming-1
A message that is not in the archive (sent off-list or not yet received): 8799348.1119957113603.JavaMail.ngmail@webmail-07.arcor-online.net
Quoted 5 lines
But one last thing, I did not yet understand:
I get almost no difference. Why is there not HASHSIZE =
CONNTRACK_MAXby default?
Forget this silly question. It is now clear to me, that it would occupy memory also when there is no connection.
Machen Sie aus 14 Cent spielend bis zu 100 Euro!
Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot.
http://www.arcor.de/rd/emf-gaming-1