From nobody@FreeBSD.org  Wed Sep 17 21:46:26 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E4114106567B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Sep 2008 21:46:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D27A18FC24
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Sep 2008 21:46:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m8HLkPbB049542
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Sep 2008 21:46:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m8HLkPmJ049541;
	Wed, 17 Sep 2008 21:46:25 GMT
	(envelope-from nobody)
Message-Id: <200809172146.m8HLkPmJ049541@www.freebsd.org>
Date: Wed, 17 Sep 2008 21:46:25 GMT
From: Miks <miks@skynet.lv>
To: freebsd-gnats-submit@FreeBSD.org
Subject: incorrect load on quad core
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         127451
>Category:       amd64
>Synopsis:       [scheduler] incorrect load on quad core
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 17 21:50:01 UTC 2008
>Closed-Date:    Mon Dec 06 21:43:59 UTC 2010
>Last-Modified:  Mon Dec 06 21:43:59 UTC 2010
>Originator:     Miks
>Release:        7.0 release amd64
>Organization:
skynet
>Environment:
FreeBSD sun 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #4: Thu Sep 11 22:08:16 EEST 2008     miks@sun:/usr/obj/usr/src/sys/SUN  amd64
>Description:
I got load average around 0.5, and top show something like this
"1021 processes: 1 running, 1020 sleeping
CPU states:  4.9% user,  0.0% nice,  3.6% system,  0.9% interrupt,
90.6% idle" - this all is ok.

then once in 2-5 minutes, there for 2-3 seconds are:
"1020 processes:67 running, 912 sleeping, 1 zombie, 40 lock
CPU states:  3.0% user,  0.0% nice, 96.7% system,  0.3% interrupt,
0.0% idle" - this is the problem.

after this load average is 20-30 and dropping in 2-3min to 0.5. during
this time system is very slow. even ssh session is freezing.
most of processes are fastcgi/php, so there is not one big resource
hungry process.

found similar problem here: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2007-11/msg00551.html
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: miks@skynet.lv
To: bug-followup@FreeBSD.org, miks@skynet.lv
Cc:  
Subject: Re: amd64/127451: top(1): incorrect load shown on quad core
Date: Thu, 18 Sep 2008 21:50:06 +0300

 problem name is not correct - "top(1): incorrect load shown on quad core"
 I believe with top command there everything is ok.
 Problem is that after 2 or 3 minutes system suddenly got ~60 running  
 proceses, ~40 locks and cpu is ~90% busy system, not user. system is  
 unusable. old dual core system was faster and more stable than brand  
 new dual quad-core cpu with 16gb ram.
 So problem by the fact is totally different, and I can't figure where  
 and what is responsible for new, powerful server acting as low-budget  
 desktop computer.
 

From: miks@skynet.lv
To: bug-followup@FreeBSD.org, miks@skynet.lv
Cc:  
Subject: Re: amd64/127451: top(1): incorrect load shown on quad core
Date: Thu, 18 Sep 2008 22:22:56 +0300

 to understand better, this happen once in 2-3 minutes:
 "
 last pid: 98618;  load averages: 29.81, 17.28, 15.03    up 6+23:13:22   
 22:15:50
 1234 processes:159 running, 986 sleeping, 64 zombie, 25 lock
 CPU states:  1.1% user,  0.0% nice, 98.8% system,  0.0% interrupt,  0.0% idle
 "
 before 3 sec in this situation there was only 1 process running and  
 load average was around 1.
 
 is it somehow related with lockmgr?
 
 

From: Andriy Gapon <avg@freebsd.org>
To: bug-followup@freebsd.org, miks@skynet.lv
Cc:  
Subject: Re: amd64/127451: [scheduler] incorrect load on quad core
Date: Sun, 05 Dec 2010 13:15:51 +0200

 Is this still reproducible?
 What kind of processes are running when that happens?
 top -SPH output may be of help.
 
 -- 
 Andriy Gapon

From: =?iso-8859-4?Q?Miks_Mi=F3elsons?= <miks@skynet.lv>
To: Andriy Gapon <avg@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: amd64/127451: [scheduler] incorrect load on quad core
Date: Mon, 6 Dec 2010 22:20:11 +0200

  No,  it's not happening anymore.
 
 On 2010.12.05, at 13:15, Andriy Gapon wrote:
 
 >=20
 > Is this still reproducible?
 > What kind of processes are running when that happens?
 > top -SPH output may be of help.
 >=20
 > --=20
 > Andriy Gapon
 
 --=20
 Miks Mi=F3elsons
 
 SKYNET
 web:   =20
 http://www.skynet.lv
 
 email: =20
 miks@skynet.lv
 
 GSM: +371 2 86 48 669
 
 
State-Changed-From-To: open->closed 
State-Changed-By: avg 
State-Changed-When: Mon Dec 6 21:43:31 UTC 2010 
State-Changed-Why:  
iClosing per submitter's feedback, the issue seems to be resolved. 

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