Skip to contentSkip to conversation

high cpu usage (softirq takes 50% all the time)

Bug 5039 Andrew Morton 1 participant 1 message Oct 31, 2005 ACPI

lore
Share & tools
lore
#0 lore raw

This bug report has something for everyone!

Begin forwarded message:

Date: Mon, 31 Oct 2005 00:21:21 -0800
From: [email protected]
To: [email protected]
Subject: [Bug 5039] high cpu usage (softirq takes 50% all the time)

http://bugme.osdl.org/show_bug.cgi?id=5039

------- Additional Comments From [email protected] 2005-10-31 00:15 ------- Ok, some comments:

1) I also see the "50% cpu usage" problem on my Turion64. I fix this (and many other ACPI related problems) by passing "acpi=off" to the kernel command line. The only remaining problem now is that the clock runs at roughly thrice the speed, i.e. a second only lasts one third of a second ;) [just a side note] This 'turion64' problem shows 49-51% cpu usage at all time, constantly, no fluctuation. Oprofile indicated that it was somewhere in the ACPI idle handling code. Didn't have the time for any more debugging. This is totally unrelated to iptables, however.

2) iptables processing runs like almost all of the network stack in softirq context. So if you have many rules (probably even in a not very much optimized layout), and high bandwith, it's not unlikely that you spend a significant amount of time in softirq context, especially on dedicated firewalls and the like. This usage should have an almost linear dependency on the number of packets per second the system processes. Also, the system from bug reporter 'migo' has a number of tc filter rules, it runs connection tracking (and all runs in softirq). So besides 'iptables shall be optimized further', I don't really see why this should be a bug.

3) why does 'migo' profile show "ct_get_next" in the profile? This looks like somebody is constantly reading /proc/net/ip_conntrack from userspace (which is an _extremely_ expensive operation that should only happen for debugging). If you need that information, use ip_conntrack_netlink and libnetfilter_conntrack.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information