From owner-freebsd-questions@FreeBSD.ORG Wed Oct 10 12:37:09 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24DBF16A417 for ; Wed, 10 Oct 2007 12:37:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 937AB13C4B7 for ; Wed, 10 Oct 2007 12:37:08 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id l9ACaiX3013697 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 10 Oct 2007 15:36:58 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l9ACaUkd004012; Wed, 10 Oct 2007 15:36:44 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l9ACaT7F004006; Wed, 10 Oct 2007 15:36:29 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 10 Oct 2007 15:36:29 +0300 From: Giorgos Keramidas To: Paul Schmehl Message-ID: <20071010123629.GC3577@kobe.laptop> References: <639B1B9B25D010433F197CCD@paul-schmehls-powerbook59.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <639B1B9B25D010433F197CCD@paul-schmehls-powerbook59.local> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.98, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.42, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: questions@freebsd.org Subject: Re: X (xorg 7.3) consumes all the CPU X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Oct 2007 12:37:09 -0000 On 2007-10-09 22:01, Paul Schmehl wrote: > Is there a way to start a process so that memory and CPU usage can be > tracked closely enough to determine what the cause of 100% CPU use > would be? I've got a box, recently installed 6.2 RELEASE with xorg > 7.3 installed, and when X is started, CPU goes to 100% and stays > there. > > Here's the bad machine > 1510 pauls 1 0 0 277M 7076K rdnrel 0 13:41 100.05% Xorg > > Here's my desktop > 868 root 1 96 0 202M 134M select 119:09 0.00% Xorg > > As you can see, memory and CPU use is sky high on the "bad" box. > Rather than blow it away and reinstall, I'd like to try to figure out > what's wrong and fix it. What utilities could I use to do that? Are you running `powerd' in `adaptive' mode on the 100%-CPU system? I've seen this happening on FreeBSD 7.0-CURRENT a few times, when powerd(8) lowered the CPU frequency to a minimum and X.org started consuming 100% CPU.