Hi All.
On my v3.3 system, I have 2 GB RAM installed, but only have 524288 maximum entries on conntrack, same as system with 512 MB RAM.
After upgrading both systems into v3.9, both systems still showing 524288 as maximum conntrack entries.
While on v.2.9.51 with 1 GB RAM have 2 million maximum entries.
i have 256 Mb RAM on routers, and Max Entries is 475136 on first and 491520 on second - it doesn’t correlate with RAM, as I see. so call it ‘a feature’, not a bug =)
Don’t you see on the picture I attached ?
1 GB RAM have 2 million entries allowed on v2.9.51, 2 GB RAM only have 500k entries on v3.9…its not a feature…but its a backward.
linux 2.4 vs 2.6 kernel does things differently. Here is a document that explains some algorithms. I’m not saying RouterOS uses this method or netfilter, just pointing out an explanation between the kernel versions.
My guess is that v3.x chews on packets longer before it spits 'em out, creating more CPU+RAM work per packet, leaving less resources and higher CPU usage statistics. Could be due to Layer 7 functionality or due to source code used not optimized enough.
no, it is just the algorithm that calculates how much contrack entries you can support with current amount of RAM. it does not take longer, or shorter time - just the number is different.