From owner-freebsd-current@FreeBSD.ORG Mon Aug 2 11:50:17 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 C93CE16A4CE for ; Mon, 2 Aug 2004 11:50:17 +0000 (GMT) Received: from hetzner.co.za (lfw.hetzner.co.za [196.7.18.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D95043D53 for ; Mon, 2 Aug 2004 11:50:17 +0000 (GMT) (envelope-from ianf@hetzner.co.za) Received: from localhost ([127.0.0.1]) by hetzner.co.za with esmtp (Exim 3.36 #1) id 1BrbKD-000GdA-00; Mon, 02 Aug 2004 13:49:53 +0200 To: "Willem Jan Withagen" From: Ian FREISLICH In-Reply-To: Message from "Willem Jan Withagen" <006c01c47884$834e4ee0$471b3dd4@digiware.nl> Date: Mon, 02 Aug 2004 13:49:53 +0200 Sender: ianf@hetzner.co.za Message-Id: 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:50:17 -0000 "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. Ian -- Ian Freislich