From owner-freebsd-stable@FreeBSD.ORG Mon Jan 14 17:13:41 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7BA516A419 for ; Mon, 14 Jan 2008 17:13:41 +0000 (UTC) (envelope-from joe@skyrush.com) Received: from shadow.wildlava.net (shadow.wildlava.net [67.40.138.81]) by mx1.freebsd.org (Postfix) with ESMTP id 5A46213C461 for ; Mon, 14 Jan 2008 17:13:41 +0000 (UTC) (envelope-from joe@skyrush.com) Received: from [10.1.2.160] (pawnee.wildlava.net [67.40.138.85]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by shadow.wildlava.net (Postfix) with ESMTP id 94EF58F437 for ; Mon, 14 Jan 2008 09:54:34 -0700 (MST) Message-ID: <478B938A.9000004@skyrush.com> Date: Mon, 14 Jan 2008 09:53:30 -0700 From: Joe Peterson User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: RELENG_7 jerky mouse and skipping sound (still a problem -BETA3) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 17:13:41 -0000 On 1 Jan, 14:17, Kris Kennaway wrote: > > OK, can you obtain a schedgraph trace when the problem is manifesting? > > See /usr/src/tools/sched/ and previous discussion in this or related > > threads. I just recently installed 7.0-RC1, and I am seeing pretty severe "mouse jerkiness" or "mouse freezing" while, e.g., compiling (as others have reported here). It's not just the mouse, but keyboard events are also delayed in the same manner (seen by holding down a key in xterm, e.g.). I am on a UP 2.4GHz P4, using PS/2 mouse (with moused) and keyboard. I'm glad I found this thread, since you are asking for traces. I really hope my traces help; this problem does seem like a regression from 6.2 (I had seen slight mouse non-interactivity there too at times, but not nearly as bad). Also, with Linux's new CFS making mouse movement *very* responsive, I think it's vital that FreeBSD address this to avoid such comparisons. I have tried both SCHED_4BSD and SCHED_ULE. 4BSD is a lot worse when compiling, say, the kernel. ULE is better when compiling, but still has issues with, e.g., firefox loading a page, catching up on multiple xterm window resizing (see below), etc. This trace is while using SCHED_4BSD and compiling the kernel / moving mouse: http://www.skyrush.com/downloads/ktr_4bsd.out And here are three traces using SCHED_ULE: http://www.skyrush.com/downloads/ktr_ule.out http://www.skyrush.com/downloads/ktr_ule_2.out http://www.skyrush.com/downloads/ktr_ule_3.out Please check out all three, in case I did not get a good sampling of mouse events and compiles in any one... Strangely, ULE exhibits mouse jerkiness more than 4BSD for the following: I opened an xterm and dragged the right edge of the window back and forth quickly, making the window wider/narrower. It is obvious in FreeBSD that this queues up events for X (after some time, the window border no longer follows the mouse at all), and if I release the mouse button at that time, leaving the window narrow and immediately move the mouse in circles, it is jerky for a while, then returns to smooth action after about 5 or 10 seconds. 4BSD is not as severe in this one case, and I never see this at all in Linux with CFS (i.e. kernel 2.6.23) - the window resizing never really gets behind like this. Here is a trace showing this for ULE (xterm still catching up, if I remember correctly, at end): http://www.skyrush.com/downloads/ktr_ule_resize.out Here is one for 4BSD (xterm caught up before trace stopped): http://www.skyrush.com/downloads/ktr_4bsd_resize.out As an aside, renicing Xorg and moused to -10 seems to help smooth the mouse when using 4BSD when compiling, whereas it is not needed (and seems to have little or no effect) when using ULE (even though, as I said, ULE still shows jerkiness). -Thanks, Joe