From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 15 00:00:15 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BCA816A4CF for ; Tue, 15 Mar 2005 00:00:15 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2716143D49 for ; Tue, 15 Mar 2005 00:00:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2F00FlL091841 for ; Tue, 15 Mar 2005 00:00:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2F00EbS091837; Tue, 15 Mar 2005 00:00:15 GMT (envelope-from gnats) Date: Tue, 15 Mar 2005 00:00:15 GMT Message-Id: <200503150000.j2F00EbS091837@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jason Bacon Subject: Re: kern/78711: Parallel printer incredibly slow X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jason Bacon List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 00:00:15 -0000 The following reply was made to PR kern/78711; it has been noted by GNATS. From: Jason Bacon To: Bruce Evans Cc: Suporte Matik , freebsd-bugs@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/78711: Parallel printer incredibly slow Date: Mon, 14 Mar 2005 17:55:19 -0600 (CST) Mark another one resolved... sysctl hw.intr_storm_threshold=2500 seems to have done the trick. I printed a high quality photo from my iBook, and the job ran just fine. Top showed the CPU usage split between system and interrupt, whereas it was all system in polling mode as one might expect. I went back and checked my /var/log/messages from before the change, and noticed: Interrupt storm detected on "irq7: lpt0"; throttling interrupt source stray irq7 I also repeated the experiment for confidence: sysctl hw.intr_storm_threshold=500 re-ran same print job and watched it stall sysctl hw.intr_storm_threshold=2500 re-ran same print job and watched it complete If you're interested in collecting some data on the topic, I can play with the threshold values and look for a working minimum for my needs. Let me know, Jason On Sat, 12 Mar 2005, Bruce Evans wrote: > On Fri, 11 Mar 2005, Suporte Matik wrote: > >> On Friday 11 March 2005 19:42, Jason Bacon wrote: >>>> Description: >>> >>> The parallel printer runs ridiculously slow. It prints normally >>> for about 30 seconds, then prints one line every 5 or 10 minutes. >>> ... >> >> any two lines text file needs 15 minutes to be printed >> >>>> Fix: >>> >>> lptcontrol -s resolves the problem. This looks to me much >>> ... >> >> does not fix, the problem is as well with lpr and cups local/remote >> >> the only way to get "some more speed" is using b/w and 150 dpi on a HPDJ, >> any >> gray or color mode is slow > > Try changing the interrupt storm threshold (hw.intr_storm_threshold) to > something larger than the printer can generate. FreeBSD-5.3 has interrupt > storm detection that misdetects the very high interrupt rates that can > be caused by printers (combined with low quality interrupt handling in > the lpt driver) as interrupt storms. > >> doesn't matter what you set in the BIOS or whatever, any gray or colormode >> on >> 5.3 is that inacceptable slow >> >> using the exactly same printer and port settings on 5.2.1 or 4.11 brings >> you >> back to the expected printing speed > > FreeBSD-5.2 and FreeBSD-current have different bugs in interrupt storm > detection and handling. In at least some versions, the bugs make printers > go even slower if an interrupt storm is misdetected for them, but > misdetection is apparently rarer. > > FreeBSD-4 doesn't have interrupt storm detection, so any problems with > printer speed are local to the driver. > > Bruce >