From nobody@FreeBSD.org  Tue May  4 04:47:43 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EF14A16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 May 2004 04:47:43 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CAA7743D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 May 2004 04:47:43 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i44BlhaP077352
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 4 May 2004 04:47:43 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i44BlhwS077351;
	Tue, 4 May 2004 04:47:43 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200405041147.i44BlhwS077351@www.freebsd.org>
Date: Tue, 4 May 2004 04:47:43 -0700 (PDT)
From: Krzysztof Kowalik <kkowalik+pr@uci.agh.edu.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Constant 1.00 loadavg without apparent cause
X-Send-Pr-Version: www-2.3

>Number:         66249
>Category:       i386
>Synopsis:       Constant 1.00 loadavg without apparent cause
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 04 04:50:28 PDT 2004
>Closed-Date:    Sat Jul 17 22:49:55 GMT 2004
>Last-Modified:  Sat Jul 17 22:49:55 GMT 2004
>Originator:     Krzysztof Kowalik
>Release:        5.2.1
>Organization:
AGH-University of Science and Technology
>Environment:
FreeBSD oink.transfer.edu.pl 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #3: Fri Apr 30 13:56:50 CEST 2004     root@oink.transfer.edu.pl:/usr/src/sys/i386/compile/OINK  i386
      
>Description:
    constant 1.00 loadavg, with top saying: 

CPU states:  0.0% user,  0.0% nice,  0.0% system,  1.6% interrupt, 98.4% 
idle 

(With both SMP and non-SMP kernels, with the default scheduler)

After recompiling the kernel with SHED_ULE, loadavg dropped to the constant 0.99, so it still does not exactly look right.

  PID USERNAME PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
   11 root     -16    0     0K    12K RUN      8:48 97.17% 97.17% idle
   27 root     -44 -163     0K    12K WAIT     0:07  0.00%  0.00% swi1: net
   28 root     -48 -167     0K    12K WAIT     0:01  0.00%  0.00% swi8: tty:sio clock
[...]

And kern/21155 pr does not exactly include the possible fix (nor hints).
>How-To-Repeat:
to reboot and wait, nothing more.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Krzysztof Kowalik <kkowalik+pr@uci.agh.edu.pl>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/66249: Constant 1.00 loadavg without apparent cause
Date: Fri, 14 May 2004 22:36:04 +0200

 After some blind-hits:
 
 # sysctl kern.polling.enable=0
 kern.polling.enable: 1 -> 0
 
 And load average immediately went down.
 
 # uptime
 22:34  up 10 days, 9 hrs, 1 user, load averages: 0,05 0,28 0,63
 
 -- 
 Krzysztof Kowalik, Computer Center, AGH UST.
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Sat Jul 17 22:49:20 GMT 2004 
State-Changed-Why:  
Not a bug, polling(4) is a culprit. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66249 
>Unformatted:
