Date: Tue, 24 Mar 2009 20:36:42 GMT From: Oleg Ginzburg <oleg.ginzburg@nevosoft.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/133027: sysutils/hal: take 100% cpu usage at core when execute Message-ID: <200903242036.n2OKag9Q036054@www.freebsd.org> Resent-Message-ID: <200903242040.n2OKe13d083582@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903242036.n2OKag9Q036054>