From owner-freebsd-sparc64@FreeBSD.ORG Wed Jun 16 10:25:30 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54EF416A4CE; Wed, 16 Jun 2004 10:25:30 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9745443D41; Wed, 16 Jun 2004 10:25:29 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i5GANkAh086810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 16 Jun 2004 19:23:46 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i5GAP51r009461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Jun 2004 19:25:05 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i5GAP4w6009460; Wed, 16 Jun 2004 19:25:05 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Wed, 16 Jun 2004 19:25:04 +0900 From: Pyun YongHyeon To: Scott Long Message-ID: <20040616102504.GB8881@kt-is.co.kr> References: <40CFC0A0.1000604@mWare.ca> <20040616034055.GE26532@electra.cse.Buffalo.EDU> <40CFC2CF.8080509@mWare.ca> <20040616085518.GA8881@kt-is.co.kr> <40D011A8.1030404@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40D011A8.1030404@freebsd.org> User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: freebsd-sparc64@freebsd.org Subject: Re: IT! WORKS! X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 10:25:30 -0000 On Wed, Jun 16, 2004 at 03:23:52AM -0600, Scott Long wrote: > Pyun YongHyeon wrote: > >On Tue, Jun 15, 2004 at 11:47:27PM -0400, Mykel wrote: > > > Ken Smith wrote: > >... > > > > > > Now how about the console? how can I make typing at least practical on > > > here? I was hoping to use this as a desktop machine. > > > > > > >Because I got big trouble while testing TCP/UDP cksum offload > >fix for hme(4) on console, I touched ofw_console code. I stole > >the code from OpenBSD. It seems that now the console works as > >expected. No more 1 sec. pause needed to see correct typing on > >keyboard. Here is patch. I'm not familiar with tty code, so > >it may be just dirty hack or it may not work except my Ultra2. > > > >Regards, > >Pyun YongHyeon > > > > Another nice patch =-) The only question that I have is, is it > possible to have more than OFBURSTLEN characters in the outq, and > if so, what happens to the extra charaters? Do they just stay in > the outq until the next poll cycle? I guess that it's hard to I'm sorry I don't know. I just thought OF_write() is too slow, it would be more efficient to write at once. So I stole the code from OpenBSD. > get 12,800 keypresses in a second, though. The only other > problem that I see is that I remember ofwcons taking up a lot of > CPU when the polling cycle is increased. This was several years > ago, though, so it might be different now. Have you compared > CPU usage with your patch? > top says "0.5% sys" when I use OFW_POLL_HZ with 100. But when I change the value to 20, top said "0.0% sys". With the value 20, I had no lost characters on console. So in practice, the OFW_POLL_HZ could be set to 20 or less than the value. Thank you for pointing out. > Scott Regards, Pyun YongHyeon -- Pyun YongHyeon