From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 24 20:40:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D8261065688 for ; Tue, 24 Mar 2009 20:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 182EB8FC13 for ; Tue, 24 Mar 2009 20:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2OKe1YT083583 for ; Tue, 24 Mar 2009 20:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2OKe13d083582; Tue, 24 Mar 2009 20:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 24 Mar 2009 20:40:01 GMT Resent-Message-Id: <200903242040.n2OKe13d083582@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oleg Ginzburg Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1413C106566B for ; Tue, 24 Mar 2009 20:36:43 +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 0242E8FC1A for ; Tue, 24 Mar 2009 20:36:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2OKagRj036055 for ; Tue, 24 Mar 2009 20:36:42 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n2OKag9Q036054; Tue, 24 Mar 2009 20:36:42 GMT (envelope-from nobody) Message-Id: <200903242036.n2OKag9Q036054@www.freebsd.org> Date: Tue, 24 Mar 2009 20:36:42 GMT From: Oleg Ginzburg To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/133027: sysutils/hal: take 100% cpu usage at core when execute X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 20:40:03 -0000 >Number: 133027 >Category: ports >Synopsis: sysutils/hal: take 100% cpu usage at core when execute >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 24 20:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Oleg Ginzburg >Release: 8.0-CURRENT >Organization: nevosoft >Environment: FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Fri Mar 20 18:25:11 MSK 2009 root@:/usr/obj/usr/src/sys/GENERIC amd64 >Description: After system startup, hald smothness (in 1 minute after system boot) get system usage to 100% (my system have 4 core, so one of them is fully under hald): (head lines from "TOP -P" command): -- last pid: 12922; load averages: 1.18, 1.00, 0.54 up 0+00:08:44 20:19:05 158 processes: 2 running, 156 sleeping CPU 0: 0.8% user, 0.0% nice, 0.0% system, 0.0% interrupt, 99.2% idle CPU 1: 0.0% user, 0.0% nice, 0.4% system, 0.4% interrupt, 99.2% idle CPU 2: 9.7% user, 0.0% nice, 90.3% system, 0.0% interrupt, 0.0% idle CPU 3: 0.7% user, 0.0% nice, 2.6% system, 0.0% interrupt, 96.6% idle Mem: 736M Active, 151M Inact, 347M Wired, 9208K Cache, 296M Buf, 1981M Free Swap: 2048M Total, 2048M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 1340 haldaemon 1 118 0 42148K 6640K CPU2 2 7:55 100.00% hald 1424 olegkde 1 45 0 234M 41712K select 3 0:10 0.98% kded4 .. -- (100% load from hald do not depend on working/not working Xorg) If i've doing (from root user) command truss -p 1340 where 1340 - pid of hald i see repeating output: --- poll({5/POLLIN 9/POLLIN 11/POLLIN|POLLPRI 16/POLLIN 7/POLLIN 10/POLLIN 8/POLLIN 88/POLLIN 13/POLLIN},9,588) = 1 (0x1) gettimeofday({1237915288.562078 },0x0) = 0 (0x0) read(13,0x7fffffffe6f0,400) = 0 (0x0) gettimeofday({1237915288.562149 },0x0) = 0 (0x0) poll({5/POLLIN 9/POLLIN 11/POLLIN|POLLPRI 16/POLLIN 7/POLLIN 10/POLLIN 8/POLLIN 88/POLLIN 13/POLLIN},9,588) = 1 (0x1) gettimeofday({1237915288.562232 },0x0) = 0 (0x0) read(13,0x7fffffffe6f0,400) = 0 (0x0) gettimeofday({1237915288.562304 },0x0) = 0 (0x0) poll({5/POLLIN 9/POLLIN 11/POLLIN|POLLPRI 16/POLLIN 7/POLLIN 10/POLLIN 8/POLLIN 88/POLLIN 13/POLLIN},9,588) = 1 (0x1) ... --- and after this command, 100% load of core magically is smothness fall to 0.00% usage with changing "STATE" to STOP in TOP screen: 1340 haldaemon 1 76 0 42148K 6640K STOP 1 10:14 0.00% hald But mouse/keyboard working fine (if i've stoping hald, then mouse is dying) >How-To-Repeat: I've reproduce this situation on 8-HEAD (kern.osrevision: 199506) with USB2.0 support (all soft & kernel & usernanld has been recompile after changing USB stack, old libusb.so remove and "Legacy USB support (1.0) disabling in Bios) Version of hal: hal-0.5.11_21 >Fix: >Release-Note: >Audit-Trail: >Unformatted: