From owner-freebsd-current Thu Aug 16 2: 9:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 77F8237B403 for ; Thu, 16 Aug 2001 02:09:38 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.244.105.125.Dial1.SanJose1.Level3.net [209.244.105.125]) by falcon.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id CAA27193; Thu, 16 Aug 2001 02:09:15 -0700 (PDT) Message-ID: <3B7B8DE5.FB7F2C56@mindspring.com> Date: Thu, 16 Aug 2001 02:09:57 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Kazutaka YOKOTA Cc: freebsd-current@freebsd.org Subject: Re: psmintr: out of sync (was: Re: FreeBSD's aggressive keyboard probe/attach) References: <200108150924.SAA06230@zodiac.mech.utsunomiya-u.ac.jp> <3B7B6B9C.3866D87C@mindspring.com> <200108160752.QAA09356@zodiac.mech.utsunomiya-u.ac.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kazutaka YOKOTA wrote: > >o You may want to implement a rate throttling mechanism; > > init will stop respawning a getty on a port, if it is > > exiting too rapidly, while inetd will rate limit the > > number of connection attempts a second, as well. I > > guess you probably don't want to disable it, ala init, > > but limiting the number of reinitialize/resets per > > interval would address the "too expensive" and "reset > > causes additional resync errors" cases. > > We are not running getty on the mouse port. So, we don't need > to worry about this. I wasn't clear, I guess. What I meant was that you might want to rate throttle the mouse resets, in case the mouse driver ends up getting into one of those loops that people are afraid it might. If the moust can only reset once a second, you can't get stuck in a tight loop resetting the mouse. If it can only do it 10 times before it backs off a minute, then this will prevent someone grabbing the mouse and wiggling it to make it work breaking it forever. In other words, you control the rate at which you reset the mouse. This keeps it from being a problem, even if the new code breaks horribly. The worst that can happen is that you reset once a second (or whatever you tune the timer for), and then only do that 10 times every two minutes (or whatever you set the second timer for). So the idea is to make it behave like init behaves with getty: init -> getty psm0 -> mouse reset Does this make more sense? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message