Bug 46665
| Summary: | Slowly rising CPU load when using REDIRECT with ipchains and iptables | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Espen Carlsen <escarls> |
| Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Brock Organ <borgan> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | CC: | tal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2003-06-06 14:09:00 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Espen Carlsen
2001-06-29 18:43:18 UTC
We have encoutered similar problems when upgrading from RH 6.2 to 7.1 on a single CPU AMD K6-2 450Mhz. 'top' shows an unexplainable high 'system' CPU usage (30-50%). The integer index of the NBench benchmark from http://www.tux.org/~mayer/linux/bmark.html gives about 0.5 on 7.1 about 3 time faster on 6.2 on the same machine. There is no disk activity, swap, or network activity during the benchmark. We had ipchained REDIRECT but taking it off does not seems to change much. Kernel update to 'Kernel 2.4.3-12 on an i586' did not help either. Looks like we need to downgrade our production system back to 6.2 until 7.X will become usable. Our problem is solved. It was due to a defective AMD K6-2 450 that had 25% of the normal performance (using nbench benchmark program) even though it reported the normal bogus mips. We have several of these CPU's (purchased about 18 months ago) and replacing them with a new ones solved the problem. There are several news discussions about this issue (try to search www.deja.com for 'amd cpu slow p5a'). Redhat 7.1 is off the hook ;-) Tal Rusty Russel from the Netfilter project has confirmed the bug. I quote from the
reply we got from him:
"Just looked through the code, and sure enough, there is a leak in the redirect
compatibility code, as I suspected from Lutz's earlier report.
Please try the attached patch, and thanks!
Rusty.
--
Premature optmztion is rt of all evl. --DK
diff -urN -I \$.*\$ --exclude TAGS -X
/home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal
linux-2.4.7-official/net/ipv4/netfilter/ip_fw_compat_redir.c
working-2.4.7-module/net/ipv4/netfilter/ip_fw_compat_redir.c
--- linux-2.4.7-official/net/ipv4/netfilter/ip_fw_compat_redir.c
Sat Aug 5 06:07:24 2000
+++ working-2.4.7-module/net/ipv4/netfilter/ip_fw_compat_redir.c
Wed Aug 15 20:45:02 2001
@@ -206,6 +206,8 @@
}
list_prepend(&redirs, redir);
init_timer(&redir->destroyme);
+ redir->destroyme.expires = jiffies + 75*HZ;
+ add_timer(&redir->destroyme);
}
/* In case mangling has changed, rewrite this part. */
redir->core = ((struct redir_core)
"
We have not been able to test the patch, since we don't have any hardware to
test the patch with so I cannot confirm if this patch fixed the problem.
|