From nobody@FreeBSD.org  Tue Nov  9 20:52:08 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4458F16A4D8
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  9 Nov 2004 20:52:08 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2045143D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  9 Nov 2004 20:52:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iA9Kq7Dr098862
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 9 Nov 2004 20:52:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iA9Kq7o7098861;
	Tue, 9 Nov 2004 20:52:07 GMT
	(envelope-from nobody)
Message-Id: <200411092052.iA9Kq7o7098861@www.freebsd.org>
Date: Tue, 9 Nov 2004 20:52:07 GMT
From: bob frazier <bobf@mrp3.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: printing via cups causes "Interrupt storm" warning, throttles output
X-Send-Pr-Version: www-2.3

>Number:         73744
>Category:       kern
>Synopsis:       [lpt] printing via cups causes "Interrupt storm" warning, throttles output
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    vwe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 09 21:00:48 GMT 2004
>Closed-Date:    Wed Aug 18 18:59:24 UTC 2010
>Last-Modified:  Wed Aug 18 18:59:24 UTC 2010
>Originator:     bob frazier
>Release:        5.3-STABLE #1 (RELENG_5)
>Organization:
SFT Inc
>Environment:
FreeBSD BSDServer.SFT.local 5.3-STABLE FreeBSD 5.3-STABLE #1: Tue Oct 26 20:13:16 PDT 2004     root@:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
following a very recent portupgrade to RELEASE_5_3_0, printing via cups now causes the following error message to appear on the console:

Interrupt storm detected on "irq7:lpt0": throttling interrupt source

This caused printing to be GROSSLY unacceptably slow

stopping cups, then using 'lptcontrol -p /dev/lpt0', then restarting it again worked around the problem and restored acceptable print performance.

This is the first time I have seen this happen, and I have been printing on this machine for quite some time.

>How-To-Repeat:
a) install FBSD 5.3-STABLE #1, cups, and samba.  lpt0 is set up for IRQ 7 (this may be an automatic setting as I didn't enter anything in 'device.hints' for lpt0).
b) configure for 'RAW' output on /dev/lpt0 (in this case, with an HP DeskJet 660C connected to the port).
c) from a windows machine, print something to the printer via the SAMBA share using the correct windows driver and 'RAW' output.  This may also be possible using the 'print test page' options from the http "printer admin" interface for cups via the cups 'deskjet' driver (for postscript - I did not specifically test this).
d) Observe 'interrupt storm' warning on console
e) observe piss poor printing performance
f) shut down cups, enter command 'lptcontrol -p /dev/lpt0'
g) repeat the printer test, printing resumes normally

>Fix:
disable interrupt-driven printing via 'lptcontrol'


>Release-Note:
>Audit-Trail:

From: "Jin Guojun [VFFS]" <g_jin@lbl.gov>
To: bug-followup@FreeBSD.org
Cc: bobf@mrp3.com
Subject: Re: kern/73744: printing via cups causes "Interrupt storm" warning,
 throttles output
Date: Fri, 06 May 2005 19:46:40 -0700

 This problem is still existing in 5.4-RC4.
 
 First I thought this my be related to APIC issue since one of my machine is
 ASUS P2B-DS (dual P-III), which is on the APIC blacklist, that has to 
 have APIC disabled.
 The other of machine is AMD XP, which is APIC enabled. So, it seems not 
 APIC related.
 
 Both machines experience this problem:
 
 stray irq7
 stray irq7
 Interrupt storm detected on "irq7: lpt0"; throttling interrupt source
 stray irq7
 stray irq7
 too many stray irq 7's: not logging anymore
 
 This is not just for CUPS. It is for lpr or any printing job sent to 
 parallel printers.
 The printer will still print, but it speed is about two lines per minute.
 
 lptcontrol -p /dev/lpt0
 
 does work in this problem.
 
 -- 
 ------------ Jin Guojun -----------
 Distributed Systems Department		http://www.dsd.lbl.gov/~jin
 Lawrence Berkeley National Laboratory,	Berkeley, CA 94720
 
 
 --------------- original message --------------------
 
 following a very recent portupgrade to RELEASE_5_3_0, printing via cups now causes the following error message to appear on the console:
 
 Interrupt storm detected on "irq7:lpt0": throttling interrupt source
 
 This caused printing to be GROSSLY unacceptably slow
 
 stopping cups, then using 'lptcontrol -p /dev/lpt0', then restarting it again worked around the problem and restored acceptable print performance.
 
 This is the first time I have seen this happen, and I have been printing on this machine for quite some time.
 
     
 
 **
 

From: Leon Kos <leon.kos@lecad.uni-lj.si>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/73744: printing via cups causes "Interrupt storm" warning,
 throttles output
Date: Thu, 19 May 2005 07:17:20 +0200

 Same problem when upgrading from Legacy 4.11 to 5.4 on our Intel STL2 
 server board.
 
 
 Tried:
    1. acpi0 and isa0 driver module
    2.  all possible hint.ppc.0.flags (with irq enabled)
    3.  all possible bios configs (nibble, centronics, ECP, EPP). Even 
 upgraded bios.
    4.  various modes on printer (normal, high-speed, auto, nibble)
   
 Pool mode partly solves the problem as the CPU is overloaded with LPD jobs.
 
 Again. This was not the case when running 4.11
 

From: Leon Kos <leon.kos@lecad.uni-lj.si>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/73744: printing via cups causes "Interrupt storm" warning,
 throttles output
Date: Thu, 19 May 2005 07:23:39 +0200 (CEST)

 Same problem when upgrading from Legacy 4.11 to 5.4 on our Intel STL2 server 
 board.
 
 
 Tried:
    1. acpi0 and isa0 driver module
    2. all possible hint.ppc.0.flags (with irq enabled)
    3. all possible bios configs (nibble, centronics, ECP, EPP). Even 
 upgraded bios.
    4. various modes on printer (normal, high-speed, auto, nibble)
 
 Pool mode partly solves the problem as the CPU is overloaded with LPD jobs.
 
 Again. This was not the case when running 4.11
 
 
 Leon Kos, CAD lab, Mech.Eng., University of Ljubljana, Slovenia
 
State-Changed-From-To: open->closed 
State-Changed-By: vwe 
State-Changed-When: Wed Aug 18 18:56:46 UTC 2010 
State-Changed-Why:  
Bob, I'm sorry to see your PR still unsolved. Unfortunately 5.3-STABLE is out of support for quite a while now. 
IIRC this issue lasted for the 6.x branch, too but we believe it's not an issue with a recent, supported release. 
If you still see this issue with a supported branch, we'll be happy to re-open this PR and try to work on. 


Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Wed Aug 18 18:56:46 UTC 2010 
Responsible-Changed-Why:  
track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73744 
>Unformatted:
