From owner-freebsd-stable@FreeBSD.ORG Tue May 19 11:45:13 2009 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 986C510656BE for ; Tue, 19 May 2009 11:45:13 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 04C288FC13 for ; Tue, 19 May 2009 11:45:12 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id C0B921B10EFB; Tue, 19 May 2009 13:45:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-9.1 required=5.0 tests=ALL_TRUSTED,BAYES_05, HTML_MESSAGE autolearn=ham version=3.2.5 Received: from postal.dev.moneybookers.net (postal.dev.moneybookers.net [192.168.3.200]) by blah.sun-fish.com (Postfix) with ESMTP id F29B01B10ED2 for ; Tue, 19 May 2009 13:45:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by postal.dev.moneybookers.net (Postfix) with ESMTP id 85BFF936B16 for ; Tue, 19 May 2009 13:45:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at moneybookers.com Received: from postal.dev.moneybookers.net ([127.0.0.1]) by localhost (postal.dev.moneybookers.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uYnDIRQ+asJS for ; Tue, 19 May 2009 13:45:35 +0200 (CEST) Received: from hater.cmotd.com (hater.cmotd.com [192.168.3.125]) by postal.dev.moneybookers.net (Postfix) with ESMTP id 18553936B00 for ; Tue, 19 May 2009 13:45:35 +0200 (CEST) Message-Id: <7F3CB337-C914-43D0-9C02-34F6A3358A48@moneybookers.com> From: Stefan Lambrev To: freebsd-stable@freebsd.org Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 19 May 2009 14:45:03 +0300 X-Mailer: Apple Mail (2.935.3) X-Virus-Scanned: ClamAV 0.94/9369/Tue May 19 05:46:18 2009 on blah.cmotd.com X-Virus-Status: Clean Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: top - proc accounting does not work on freebsd 7.2 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: Tue, 19 May 2009 11:45:14 -0000 Greetings, I'm tracking i386 releng_7 on kind of old single CPU machine and I see very annoying problem. top (-S) is not reporting things properly: last pid: 20337; load averages: 0.43, 0.11, 0.04 up 0+13:20:07 14:37:44 123 processes: 3 running, 102 sleeping, 18 waiting CPU: 75.0% user, 0.0% nice, 25.0% system, 0.0% interrupt, 0.0% idle Mem: 108M Active, 702M Inact, 232M Wired, 1212K Cache, 112M Buf, 1958M Free Swap: 4096M Total, 4096M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 10 root 1 171 ki31 0K 8K RUN 769:35 56.15% idle: cpu0 19375 root 1 8 0 3464K 1616K wait 0:00 0.20% sh 13 root 1 -44 - 0K 8K WAIT 7:35 0.00% swi1: net 33 root 1 -80 - 0K 8K WAIT 1:57 0.00% irq18: vgapci0 11 root 1 -32 - 0K 8K WAIT 0:59 0.00% swi4: clock sio 46 root 1 20 - 0K 8K syncer 0:46 0.00% syncer 1066 user 1 44 0 32508K 26368K select 0:27 0.00% kdeinit 977 root 1 44 0 71956K 50668K select 0:23 0.00% Xorg As you can see the CPU is 0% idle but the idle process is accounted 56.15% It doesn't matter how the load is created - web browser, X, compilation or something else. Top just reports that only idle process is eating CPU. Here is part of dmesg info: FreeBSD 7.2-STABLE #10: Sat May 16 09:05:31 EEST 2009 root@cheffo.freebsd-bg.org:/usr/obj/usr/src/sys/CORE Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3200+ (2200.22-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20ff0 Stepping = 0 Features = 0x78bfbff < FPU ,VME ,DE ,PSE ,TSC ,MSR ,PAE ,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> Features2=0x1 AMD Features=0xe2500800 AMD Features2=0x1 real memory = 3221159936 (3071 MB) avail memory = 3140956160 (2995 MB) I'm using in my kernel: options SCHED_ULE # ULE scheduler options SMP # tried without it - no difference options HWPMC_HOOKS device hwpmc There are other changes from GENERIC, but they are removed/added drivers and I'm sure the problem is not there. Any idea why top does not work properly? -- Best Wishes, Stefan Lambrev ICQ# 24134177