From owner-freebsd-stable@FreeBSD.ORG Sat Apr 16 15:24:42 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F614106564A for ; Sat, 16 Apr 2011 15:24:42 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from fep13.mx.upcmail.net (fep13.mx.upcmail.net [62.179.121.33]) by mx1.freebsd.org (Postfix) with ESMTP id 86A248FC13 for ; Sat, 16 Apr 2011 15:24:41 +0000 (UTC) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep13-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110416152439.TADQ1429.viefep13-int.chello.at@edge03.upcmail.net> for ; Sat, 16 Apr 2011 17:24:39 +0200 Received: from pinky ([95.96.138.26]) by edge03.upcmail.net with edge id YFQd1g01j0aMTqv03FQehF; Sat, 16 Apr 2011 17:24:39 +0200 X-SourceIP: 95.96.138.26 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-stable@freebsd.org References: <4DA596D3.1090803@chillt.de> Date: Sat, 16 Apr 2011 17:24:39 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <4DA596D3.1090803@chillt.de> User-Agent: Opera Mail/11.10 (Win32) X-Cloudmark-Analysis: v=1.1 cv=HQ3F56nxkum+cgCiDL7AXQpbvw7DWrWCBJRnYYnM0Zc= c=1 sm=0 a=rMDVPbX0lpwA:10 a=LJtIfV2HitoA:10 a=bgpUlknNv7MA:10 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=6PjnSY_ydW830xl364UA:9 a=zFgax8G5HK4MEl-jvaUA:7 a=CjuIK1q_8ugA:10 a=Hh4KRNH8I-wA:10 a=SV7veod9ZcQA:10 a=lpiIwGkjteAKp5en:21 a=hBNnSzeBzIKyM_bZ:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: Re: System extremely slow under light load X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2011 15:24:42 -0000 On Wed, 13 Apr 2011 14:28:03 +0200, Bartosz Fabianowski wrote: > Hi list > > I am having problems with my 8.2-STABLE laptop. At times, even a very > light load makes the system grind to a halt. Once an application is in > the foreground, I can interact with it just fine. But when I click on a > long-unused menu item or try to switch applications, I have to wait > dozens of seconds or even minutes. It feels as if things were being > swapped in very slowly. However, top says otherwise: > > The box has 4 GB of RAM with only 680 MB used. On top of that, 69 MB of > swap are in used. That last number does not seem to be changing, so > nothing is being swapped in or out. > > The load that seems to cause the worst problems is an import of > OpenStreetMap data into a PostgreSQL 9 database. This does not exercise > the CPU (a Core i7 Quad) much as CPU load hovers around the 20% mark > most of the time and powerd is happy to reduce the operating frequency > down to a few hundred MHz. There also does not seem to be much disk > activity. > > So, memory, CPU and disk all seem fine. And still, whenever I try to > switch applications, I have to wait minutes for them to appear. I am > having a hard time figuring out what is going on. Any tips would be > greatly appreciated. > > I am including the outputs of vmstat -c 2 and iostat -c 2 in the hope > that these may shed some light on this. > > Thanks, > - Bartosz Fabianowski > > > vmstat -c 2 > procs memory page disks faults cpu > r b w avm fre flt re pi po fr sr ad0 cd0 in sy cs > us sy id > 0 1 20 21376M 203M 1652 2 1 1 2993 289 0 0 90 949 > 2764 5 2 93 > 0 0 20 21378M 197M 1332 0 5 1 2165 0 58 0 208 7875 > 3614 2 2 96 > > > iostat -c 2 > tty ada0 cd0 pass0 cpu > tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy > in id > 188 2367 51.73 22 1.12 0.00 0 0.00 0.00 0 0.00 3 1 2 > 0 93 > 1 991 18.06 49 0.86 0.00 0 0.00 0.00 0 0.00 3 0 2 > 0 94 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" Just for an experiment, try to disable powerd and look if things improve. Ronald.