From owner-freebsd-current@FreeBSD.ORG Wed Nov 5 02:29:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C60A16A4CE for ; Wed, 5 Nov 2003 02:29:01 -0800 (PST) Received: from anduin.net (anduin.net [212.12.46.226]) by mx1.FreeBSD.org (Postfix) with SMTP id C7B7E43FF3 for ; Wed, 5 Nov 2003 02:28:59 -0800 (PST) (envelope-from ltning@anduin.net) Received: (qmail 13555 invoked by uid 85); 5 Nov 2003 10:28:58 -0000 Received: from ltning@anduin.net by anduin.net by uid 82 with qmail-scanner-1.20rc1 (clamscan: 0.60. Clear:RC:1:. Processed in 1.109306 secs); 05 Nov 2003 10:28:58 -0000 X-Qmail-Scanner-Mail-From: ltning@anduin.net via anduin.net X-Qmail-Scanner: 1.20rc1 (Clear:RC:1:. Processed in 1.109306 secs) Received: from anduin.net (ltning@212.12.46.226) by anduin.net with SMTP; 5 Nov 2003 10:28:57 -0000 Message-ID: <3FA8D0E2.5060507@anduin.net> Date: Wed, 05 Nov 2003 11:28:50 +0100 From: Eirik Oeverby User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031017 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sheldon Hearn References: <20031104153820.GB73736@starjuice.net> <20031104154618.E10222-100000@mail.chesapeake.net> <20031105091007.GJ73736@starjuice.net> In-Reply-To: <20031105091007.GJ73736@starjuice.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Jeff Roberson cc: current@freebsd.org Subject: Re: More ULE bugs fixed. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 05 Nov 2003 10:29:01 -0000 Sheldon Hearn wrote: > On (2003/11/04 15:46), Jeff Roberson wrote: > > >>>The thing is, I'm using 4BSD, not ULE, so I wouldn't trouble Jeff to >>>look for a cause for that specific problem in ULE. >> >>How long have you been seeing this? Are you using a usb mouse? Can you >>try with PS/2 if you are? > > > Since my last update, Fri Oct 24 17:47:22. > > I am using a USB mouse, but don't have a PS/2 one. I'm also using > moused, and my WM is sawfish. > > The problem with all these reports is that they're scattered. It's hard > to pin down exactly what the common elements are. Indeed, we may be > looking at combinations of elements. > > I don't have time to be more helpful, which is why I hadn't complained. > I just wanted to include the datapoint that over-active mouse behaviour > under load exists under SCHED_4BSD as well. > > Incidentally, this is under ATA disk load. I don't really push my CPU. Though I am not a hardcore C programmer, much less a FreeBSD contributor in any way, I do have some experience in tracking down problems like this. Used to have a lot of them on some of the more obscure platforms I've been using in the past. My feeling is (and it might be completely wrong ofcourse) that we are dealing with atleast two completely separate issues here. The first has to do with mouse jerkiness, the second has to do with bogus mouse events. There is a significant difference between these two, and personally I am leaning towards concluding that the first has to do with the scheduler, and the second has to do with something entirely different - interrupt handler or something else of the sorts. The first is simply that the mouse stops for a brief moment and then continues from the point where it stopped. Perhaps this is the situation that is remedied by bypassing moused? Is moused perhaps not getting the CPU cycles it needs to process and pass on mouse messages? The second is that mouse messages are actually *lost*, or bogus ones are being generated. I guess it's the first, making moused or X misinterpret the messages it gets. Where along the chain it fails I obviously have no clue. The consequence of this is that when the mouse stops (like in #1) but then resumes from an entirely different point - be it 10 pixels away or at the other end of the screen - possibly even generating a button push (but not necessarily the corresponding button release) message. These two situations could at first sight be mistaken for being the same symptom, but I am pretty sure they are very different. One may influence the other, or they may by coincidence (or for some good reason) happen at the same time, but I believe the errors happen in different parts of the kernel. When you say you get the bogus mouse events (which I believe you are saying atleast ;) only during load, I'm immediately thinking that yes, that might make sense. But I guess that's better left to those who are in the know to decide ;) I have never seen it happen with the 4BSD scheduler, but that might have other reasons (hardware?). Why don't you try with the new interrupt handler? Helped me quite a lot.. :) /Eirik > > Ciao, > Sheldon.