From owner-freebsd-questions@FreeBSD.ORG Tue Jan 2 11:12:30 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D73016A403 for ; Tue, 2 Jan 2007 11:12:30 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id E013F13C44C for ; Tue, 2 Jan 2007 11:12:29 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-29-241.bredband.comhem.se ([83.253.29.241]:52285 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with smtp (Exim 4.63) (envelope-from ) id 1H1hKg-0006zO-3x for questions@freebsd.org; Tue, 02 Jan 2007 11:57:26 +0100 Received: (qmail 20557 invoked from network); 2 Jan 2007 11:57:23 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 2 Jan 2007 11:57:23 +0100 Received: (qmail 53709 invoked by uid 1001); 2 Jan 2007 11:57:23 +0100 Date: Tue, 2 Jan 2007 11:57:23 +0100 From: Erik Trulsson To: Tofik Suleymanov Message-ID: <20070102105723.GA53671@owl.midgard.homeip.net> Mail-Followup-To: Tofik Suleymanov , questions@freebsd.org, tofik@oxygen.az References: <459A2F2C.3090706@oxygen.az> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <459A2F2C.3090706@oxygen.az> User-Agent: Mutt/1.5.13 (2006-08-11) X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1H1hKg-0006zO-3x. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1H1hKg-0006zO-3x 2d01570de10e8f915726284bbeea12a2 Cc: questions@freebsd.org, tofik@oxygen.az Subject: Re: vmstat -i weirdness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jan 2007 11:12:30 -0000 On Tue, Jan 02, 2007 at 02:08:44PM +0400, Tofik Suleymanov wrote: > Hello list, > > looks like `vmstat -i` acts weird on my machine after being 12-15 hours > uptime.Here is the iutput of `vmstat -i`: > > > vmstat -i > interrupt total rate > irq1: atkbd0 6813 0 > irq9: acpi0 5397 0 > irq12: psm0 73782 1 > irq14: ata0 74209 1 > irq15: ata1 47 0 > irq18: uhci2 1 0 > irq19: uhci3 ehci0 1 0 > irq21: iwi0 35139 0 > cpu0: timer 105315537 1999 > Total 105510926 2003 > > > > Strange is that for example atkbd0 has rate of 0, but total interrupts > count of atkbd0 is growing. > Machine runs FreeBSD 6.1 RELEASE p11 with pretty common kernel. > > Is this known behaviour ? That is known and expected behaviour. It is just a round-off error due to the use of integer division. 'rate' is the average number of interrupts/second calculated over the whole uptime of the machine. Since you probably press a key on the keyboard less than once per second (on average) this means that rate < 1 for atkbd0 and gets displayed as 0. If floating point values were used to display the rate you should see a value of maybe 0.13 for atkbd0. -- Erik Trulsson ertr1013@student.uu.se