From owner-freebsd-questions@FreeBSD.ORG Sat May 27 13:24:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 792DF16A460 for ; Sat, 27 May 2006 13:24:20 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19FB743D4C for ; Sat, 27 May 2006 13:24:20 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 6F8765F7D; Sat, 27 May 2006 09:24:19 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V64YEJ2AHa5A; Sat, 27 May 2006 09:24:18 -0400 (EDT) Received: from [192.168.1.251] (pool-68-160-242-211.ny325.east.verizon.net [68.160.242.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 263C95DF3; Sat, 27 May 2006 09:24:18 -0400 (EDT) Message-ID: <447852FE.9040706@mac.com> Date: Sat, 27 May 2006 09:24:14 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Shawn References: <20060527011413.738aecd3@freeBSD> In-Reply-To: <20060527011413.738aecd3@freeBSD> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Strange pauses and cpu usage - FreeBSD 6.1 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: Sat, 27 May 2006 13:24:35 -0000 Shawn wrote: > I'm having a strange problem with cpu usage with my Athlon XP. Every so > often there seems to be a pause where the system comes under heavy > load for no apparent reason. If xmms was playing then I get a buzz sound > and the mouse pointer stops just for a split second, the same with > mplayer and vlc. Using Opera or firefox also seems to have a strange > effect where the mouse pointer freezes while pages load, and if there > is an animated gif on the page the cpu usage goes to 100%. > > The jabber client Gajim also makes the cpu get stuck at 100%. When I > used gnome, nautilus did the same thing until i stopped and started the > process in the system monitor. I have searched around and found this > tip from the handbook but it had no effect. To some extent, that kind of behavior is normal for FreeBSD and most other systems which do not make hard or soft real-time guarantees. However, there may also be things you can do to improve the situation or a legitimate problem to be fixed as well...having the mouse pointer freeze implies that interrupts were being blocked or at least the Xserver was. If you're using USB devices, try using a PS/2 mouse instead and see whether that makes any difference. Is the system OK with memory, or are you running low enough to page out X, perhaps? Check top & "vmstat -s". Try increasing the amount of buffer space available to the PCM or whatever sound card driver you're using (there's a sysctl or loader.conf setting which I forget, but it probably googles)... -- -Chuck