From owner-freebsd-current Mon Sep 11 4:14:17 2000 Delivered-To: freebsd-current@freebsd.org Received: from blizzard.sabbo.net (blizzard.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id BF6DB37B423 for ; Mon, 11 Sep 2000 04:14:10 -0700 (PDT) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.109]) by blizzard.sabbo.net (8.9.1/8.9.3) with ESMTP id OAA19169; Mon, 11 Sep 2000 14:14:04 +0300 (EEST) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.0/8.9.3) with ESMTP id e8BBE1R12515; Mon, 11 Sep 2000 14:14:01 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <39BCBE78.7D17B24B@FreeBSD.org> Date: Mon, 11 Sep 2000 14:14:00 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Bruce Evans Cc: Valentin Nechayev , freebsd-current@FreeBSD.org Subject: Re: load average is 1 when no processes active; etc. References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bruce Evans wrote: > On Mon, 11 Sep 2000, Valentin Nechayev wrote: > > > > > `top -I' output: > > > > > > > > ==={ > > > > last pid: 811; load averages: 1.01, 0.97, 0.67 up 0+00:16:12 23:26:26 > > > > > > This is because the idle process is always running (see "ps lax" outout). > > > Perhaps the bug is that top doesn't show the idle process or other interesting > > > kernel processes like the new interrupt processes. > > > > top does nothing to determine LA except getting sysctl "vm.loadavg", isn't it? > > ("uptime" and "w" says the same avenrun/LA values.) > > Imho, idle process should not be determined as always running, > > and idle process state should be fixed. > > Well, the kernel just doesn't treat it specially, so it gets counted in the > load average. I'm not sure if the interrupt and other kernel processes > are counted. Since they do useful work, they should be. The idle process > does the not so useful work of heating the cpu, since it no longer halts > or runs vm_page_zero_idle(). BTW, will it be fixed any time soon? Mobile users will certainly like to see idle process halting CPU as it was before. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message