Networking Forums

Networking Forums > Computer Networking > Linux Networking > ksoftirq consumes >80% CPU on embedded platform

Reply
Thread Tools Display Modes

ksoftirq consumes >80% CPU on embedded platform

 
 
Mark
Guest
Posts: n/a

 
      07-28-2010, 02:29 AM
Hello,

we're designing SOHO router based on MIPS processor, wired up with 24-ports
switch. The CPU runs NAT (configured with iptables), iptables rules, dhcp
etc. it doesn't have any H/W acceleration for these functions. When testing
NAT in full-mesh mode (i.e. one WAN port and others are LAN port), we
observe the significant system's slowdown, especially console responds very
slowly, and there is also packets loss.
The 'top' shows that ksoftirqd consumes over 80% of CPU.

What can be the reason of such behaviour? As I know Linux NAT runs in kernel
space, so it should not be a problem of context switching?

--
Mark

 
Reply With Quote
 
 
 
 
Jorgen Grahn
Guest
Posts: n/a

 
      08-09-2010, 07:34 PM
["Followup-To:" header set to comp.os.linux.networking.]
On Wed, 2010-07-28, Mark wrote:
> Hello,
>
> we're designing SOHO router based on MIPS processor, wired up with 24-ports
> switch. The CPU runs NAT (configured with iptables), iptables rules, dhcp
> etc. it doesn't have any H/W acceleration for these functions. When testing
> NAT in full-mesh mode (i.e. one WAN port and others are LAN port), we
> observe the significant system's slowdown, especially console responds very
> slowly, and there is also packets loss.
> The 'top' shows that ksoftirqd consumes over 80% of CPU.


Get the mpstat(1) command and check the output from mpstat -P ALL <n>
to get a different view of it (or check the files in /proc which give
you the same info, except in raw form).

mpstat(1) is part of the sar package, I think.

> What can be the reason of such behaviour? As I know Linux NAT runs in kernel
> space, so it should not be a problem of context switching?


/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'ssh node "ls -lR"': consumes all memory on the client! Zoli Linux Networking 0 09-13-2007 03:37 PM
Platform indepent IPsec shrinivas.rathi@gmail.com Linux Networking 0 05-24-2007 07:05 AM
ANN: Launch of Platform 2 Platform blog... seanallencampbell@gmail.com Windows Networking 0 02-22-2007 10:15 PM
Connecting Win98 platform to WinXP Pro platform dancesportboston Wireless Networks 1 09-02-2006 10:36 PM
RPCss consumes 60+% CPU on Windows 2003 Small Business Server =?Utf-8?B?U2hhaXdhbCBTaW5naA==?= Windows Networking 0 01-20-2005 11:57 PM



1 2 3 4 5 6 7 8 9 10 11