From owner-freebsd-current@FreeBSD.ORG Sun Jun 17 17:02:14 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6AFF416A46C; Sun, 17 Jun 2007 17:02:14 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id DB1C013C469; Sun, 17 Jun 2007 17:02:13 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (dialup83.ach.sch.gr [81.186.70.83]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l5HGpJS6016675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 17 Jun 2007 19:51:30 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l5HGpAje001823; Sun, 17 Jun 2007 19:51:12 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l5HGWSmg001369; Sun, 17 Jun 2007 19:32:28 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Sun, 17 Jun 2007 19:32:27 +0300 From: Giorgos Keramidas To: Attilio Rao Message-ID: <20070617163227.GA1318@kobe.laptop> References: <20070614161632.GA3385@kobe.laptop> <3bbf2fe10706140936r4458343do95aa9f16baf2e79a@mail.gmail.com> <20070614170229.GA17675@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070614170229.GA17675@kobe.laptop> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.057, required 5, ALL_TRUSTED -1.80, AWL 0.34, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: current@freebsd.org Subject: Re: hard-lock with CPU spinning X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 17:02:14 -0000 On 2007-06-14 20:02, Giorgos Keramidas wrote: >On 2007-06-14 18:36, Attilio Rao wrote: >>2007/6/14, Giorgos Keramidas : >>> If I leave my laptop idle for a long period of time, it tends to lock up >>> with the CPU fan spinning fast (presumambly because some part of the >>> kernel tries to acquire a lock and spins constantly for it). >>> >>> Unfortunately, this happens when X11 is running and I can't break into >>> DDB to snoop around. Hi Attilio, thanks for the eagerness to help, but I was too quick in assuming this was a hard-lock. The kernel hasn't deadlocked, but the laptop is almost unresponsive because the X server eats up an enormous amount of CPU. I left an xterm window running: > cd /home/keramida > ( while true ; do \ uptime ; ps xaur | head -20 ; \ sleep 5 ; echo ; \ done ) 2>&1 | tee logfile and when hte CPU fan started spinning fast, I managed to shutdown normally by pressing the laptop's power-off button and waiting long enough for the X process to die. The ~/logfile file contains near its end entries like: % 6:43PM up 2:05, 1 user, load averages: 0.76, 0.39, 0.24 % USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND % root 1234 97.8 4.2 285648 21428 v1 R 4:41PM 3:22.41 X :0 -dpi 96 (Xorg) % root 12 97.1 0.0 0 8 ?? RL 4:37PM 112:19.80 [idle: cpu0] % root 11 2.2 0.0 0 8 ?? RL 4:37PM 110:16.80 [idle: cpu1] % % 6:43PM up 2:06, 1 user, load averages: 0.78, 0.40, 0.25 % USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND % root 1234 98.1 4.2 285648 21428 v1 R 4:41PM 3:27.51 X :0 -dpi 96 (Xorg) % root 12 97.3 0.0 0 8 ?? RL 4:37PM 112:24.75 [idle: cpu0] % root 11 1.7 0.0 0 8 ?? RL 4:37PM 110:16.83 [idle: cpu1] % % 6:43PM up 2:06, 1 user, load averages: 0.80, 0.41, 0.25 % USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND % root 1234 98.4 4.2 285648 21428 v1 R 4:41PM 3:32.51 X :0 -dpi 96 (Xorg) % root 12 97.5 0.0 0 8 ?? RL 4:37PM 112:29.71 [idle: cpu0] % root 11 1.3 0.0 0 8 ?? RL 4:37PM 110:16.84 [idle: cpu1] Apparently, there's a bug in my xorg 7.2 installation. Please don't spend time looking for a locking issue, until I verify that this is not a local installation problem.