From: "Nishit Shah" Subject: Re: kernel oops with NAT in 2.6.16.13 kernel Date: Tue, 10 Oct 2006 11:58:00 +0530 Message-ID: <02d001c6ec35$3bf7b870$4c01a8c0@elitecore26> References: <00fb01c6e91d$08bf3570$4c01a8c0@elitecore26> <452B29F2.70105@trash.net> <02a901c6ec2f$f5d1e730$4c01a8c0@elitecore26> <452B372E.3020206@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: "Patrick McHardy" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Yes, machine was not completely freezed up, soft lockup is there. I havent' touch any /proc files during the test. I am using, cat /proc/slabinfo | grep conntrack for number of conntrack entries, vmstat 2 for CPU usage (one through telnet and one through serial console..) Also, from vmstat one more observation is at time of 4000 Connections/Sec, system is taking 30 to 35% CPU and suddenly it boosts to 100% and machine got hang up and same time if i stop the test, machine will start responding.. Also, have done tests for following parameters but i got oops for all of them !!!! hashsize=1048576 ip_conntrack_max=1048576 (ip_conntrack_max = hashsize * 1) hashsize=262144 ip_conntrack_max=1048576 (ip_conntrack_max = hashsize * 4) hashsize=262144 ip_conntrack_max=2097152 (ip_conntrack_max = hashsize * 8) Only missed your hashsize * 2 test case !!!! Few more results that will help you, Test Connections/Sec Vanila Kernel 24000 Only conntrack loaded 22000 Conntrack + NAT module loaded(but no MASQ or SNAT rule in iptables) 20000-21000 Conntrack + NAT module loaded(MASQ or SNAT rule in iptables) 4000 (oops) Regards, Nishit Shah. ----- Original Message ----- From: "Patrick McHardy" To: "Nishit Shah" Cc: Sent: Tuesday, October 10, 2006 11:31 AM Subject: Re: kernel oops with NAT in 2.6.16.13 kernel > Nishit Shah wrote: > > I have performed load testing through Spirent avalanche.(Test Specification > > is Connections/Second). > > At one side of testing machine, there are 10/11 virtual clients created by > > Spirent and 4/5 virtual servers at other side. > > Testing is through HTTP 1.0 with heep alive and 1024 bytes of object size. > > I haven't loaded or unloaded any modules.. > > I have loaded conntrack module with following parameters. > > modprobe conntrack hashsize=262144 > > echo 1048576 > /proc/sys/net/ipv4/ip_conntrack_max > > (Testing machines contain >= 1 GB of RAM and those were plain firewall only > > machines.) > > Connection rate is around 4000 Connections/Second at the time of oops and > > around 3,00,000 connection entries at time of oops. > > > > Also, some of my observations, > > I don't think problem is with connection rate, problem is with number of > > connection entries. > > I have tried with different machines but every time i got kernel oops at > > 3,00,000 entries in conntrack table.(tried with Pentium 4,Xeon,Xeon duel > > etc..) > > With many conntrack entries NAT may take considerable time to find a > free tuple (up to ~64000 quite expensive hash lookups). For optimal > performance, the hash should be twice as large as the maximum number > of entries. I assume the machine doesn't freeze completely but > just reports a softlockup? Are you running anything touching conntrack > /proc-files during this test? > > > > >