From owner-freebsd-stable@FreeBSD.ORG Wed Jan 2 16:49:49 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 6AB5716A41B for ; Wed, 2 Jan 2008 16:49:49 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.235]) by mx1.freebsd.org (Postfix) with ESMTP id 225CE13C442 for ; Wed, 2 Jan 2008 16:49:49 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so900159nzf.13 for ; Wed, 02 Jan 2008 08:49:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=pst9aZnuWPD+ghhEZd7ky2qKJ+vZ/IvnXo07WBvpDQU=; b=JIZ/0EY4W3cqab9bImuvt1FmEjgRKa//7A43jjwG4/hIbrfPZgmyWIjTFO5JaidI6UYVzDd3L0pzaELHP09FE5AFJsji7dx26yOZf/5j9ZnBHSijQhqbEJH4iVphmT5ieGDl4ismTixcofQtP6M/fmvK1uaLAKgDfF67hE5jIuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oiUo9+WqoWSKXTfCIaxxwNVgm/Ysk7pwYdsno2+uNoXUJwq2ymtWXzeoV2XS9Rp1MpQ3Ni6utXm4RO1XwHccQ9NwyyrVSZDX15FXLIe6uuSG+wS22n3Ey7OXKuNykz0rRpx6WOdg95xfTtANW6Bp2brRJl8++hj5l7+6sMReElE= Received: by 10.142.225.11 with SMTP id x11mr52648wfg.115.1199292587597; Wed, 02 Jan 2008 08:49:47 -0800 (PST) Received: by 10.142.255.9 with HTTP; Wed, 2 Jan 2008 08:49:47 -0800 (PST) Message-ID: <8cb6106e0801020849n6f504a05wddd315c663932bc5@mail.gmail.com> Date: Wed, 2 Jan 2008 11:49:47 -0500 From: "Josh Carroll" To: "Anish Mistry" In-Reply-To: <200801020136.54856.mistry.7@osu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710171228.39123.mistry.7@osu.edu> <4777942D.9010209@FreeBSD.org> <200801020136.54856.mistry.7@osu.edu> Cc: Kip Macy , Kris Kennaway , freebsd-stable@freebsd.org, "\[LoN\]Kamikaze" 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 Reply-To: josh.carroll@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2008 16:49:49 -0000 > > Can you confirm that this fix helped for you? i.e. do you still > > see the problem? > FreeBSD 7.0-RC1 #14: Sun Dec 30 21:50:59 EST 2007 > I'm still seeing this problem, but it isn't nearly as bad. I still > get some jerky mouse movement, but music doesn't skip now when I'm > compiling. I noticed severe sluggishness in X.org the other day when I logged into the console on my 7.0-RC1 box. With firefox open, the mouse was very unresponsive, and at one point I counted and it took ~10 seconds to register a mouse click in firefox. The mouse jerkiness I fixed by starting moused and using /dev/sysmouse instead of /dev/psm0. However, the sluggishness overall in X was still there, and firefox took a lot longer than it should to render pages. I then noticed in my xorg.conf, I had the Depth set to 16-bit (this is on the X.org nv driver). I switched to 24-bit and it is MUCH faster. I ran the wm_torture (http://www.rasterman.com/files/wm_torture-0.1.tar.gz) response test for both 16-bit and 24-bit, and here are the results: 16-bit: Test: map_response MIN: 0.042016s, MAX: 0.046576, AVG: 0.044307 24-bit: Test: map_response MIN: 0.002540s, MAX: 0.005877, AVG: 0.004306 That's over a 10x speed up. I believe those numbers are saying with 16-bit it took an average of 44ms to draw a window, while at 24-bit it took 4.3ms. So, for anyone using the nv (perhaps this applies to other cards/drivers?), check that you are not using 16-bit color depth, as it really seems to hinder performance. Note: this is on an 7.0-RC1 box (running ULE), so the ithread inversion has already been included in the kernel I'm running, so that may have helped as well. But I did not need to set FULL_PREEMPTION or HZ to achieve the good performance. Thanks, Josh