Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2004 13:14:25 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        hugle <hugle@vkt.lt>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: routing for 1000 users and 10Mbit internet.
Message-ID:  <40BB67F1.8030201@mac.com>
In-Reply-To: <8935715836.20040531193600@vkt.lt>
References:  <1025899241.20040531165223@vkt.lt> <20040531121948.T84772-100000@cactus.fi.uba.ar> <8935715836.20040531193600@vkt.lt>

next in thread | previous in thread | raw e-mail | index | archive | help
hugle wrote:
[ ... ]
> why then my users eats so much CPU?
> look:
> CPU states:  0.0% user,  0.0% nice,  0.8% system, 38.0% interrupt, 61.2% idle
> Mem: 21M Active, 177M Inact, 133M Wired, 1228K Cache, 199M Buf, 1677M Free
> 
> I have only 61% idle ?
> usualy i have ~50 idle..
> now I have P4 2.4GHZ
> 
> maybe my setup is bad (kernel I mean)?
> ps. what those interrupt means?

English as a second language, hmm?  Very well:

Your network card generates a signal when it receives a network packet and 
wants the OS to "pay attention".  That signal is called an interupt, and has a 
strong correlation with the term "IRQ".  You are seeing lots of interrupts 
because your router is dealing with lots of packets.

It is very likely that you can improve the way your system handles this load 
by tuning your system better, yes.  Read "man tuning", and consider rebuilding 
your kernel using HZ=1000 or so, and enabling DEVICE_POLLING.  You should also 
make sure you've got good network cards in the machine...

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40BB67F1.8030201>