From owner-freebsd-current@FreeBSD.ORG Mon Aug 2 11:59:25 2004 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 053EF16A4CE for ; Mon, 2 Aug 2004 11:59:25 +0000 (GMT) Received: from freebee.digiware.nl (dsl390.iae.nl [212.61.63.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D8A943D5D for ; Mon, 2 Aug 2004 11:59:24 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from dual (dual [212.61.27.71]) by freebee.digiware.nl (8.12.10/8.12.10) with SMTP id i72Bx2Db008284; Mon, 2 Aug 2004 13:59:02 +0200 (CEST) (envelope-from wjw@withagen.nl) Message-ID: <007601c47888$1cf15580$471b3dd4@digiware.nl> From: "Willem Jan Withagen" To: "Ian FREISLICH" References: Date: Mon, 2 Aug 2004 13:59:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 cc: current@FreeBSD.ORG Subject: Re: LPT interruptstorm 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: Mon, 02 Aug 2004 11:59:25 -0000 From: "Ian FREISLICH" > "Willem Jan Withagen" wrote: > > Hi, > > > > Must be a FAQ, but I did not find anything ... > > > > When wanting to print thru /dev/lpt0 the kernel now starts to complain about > > interruptstorms. Something I can imagine, since printing can generate > 1000 > > ints/sec. > > Problem is that the current document (500k) is now printed at 100 > > interrupts/sec. > > > > That's going to take some time.... > > How do I prevent this from happening? > > /etc/sysctl.conf: hw.intr_storm_threshold=2000 > > OR > > /boot/device.hints: hint.ppc.0.flags="0x8" > > Make sure your bios is set to ecp/epp for the printer port, or the > second option will fail. A couple of people around here have also > suggested 'lptcontrol -e', but every time I've tried that (even > with lpd stopped) I get 'lptcontrol: open: Device busy'. I'm not > sure what keeps the printer port open other than lpd. Setting the sysctl worked. But now watching it with sysstat, I see that the interrupts go up as high as 65.000 ???? But instead of > 40 minutes, it now is printed in 3 secs. Thanx, --WjW