From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 03:16:59 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C93616A4CE for ; Wed, 10 Dec 2003 03:16:59 -0800 (PST) Received: from smtp04.wxs.nl (smtp04.wxs.nl [195.121.6.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id C466B43D2B for ; Wed, 10 Dec 2003 03:16:57 -0800 (PST) (envelope-from marco@beishuizen.info) Received: from tsunami.bsd (ipd50a233c.speed.planet.nl [213.10.35.60]) by smtp04.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HPO0008EFC430@smtp04.wxs.nl> for freebsd-questions@freebsd.org; Wed, 10 Dec 2003 12:16:52 +0100 (MET) Date: Wed, 10 Dec 2003 12:13:52 +0100 (CET) From: Marco Beishuizen In-reply-to: <20031210092716.75903.qmail@web21107.mail.yahoo.com> Sender: marco@tsunami.bsd To: Mark Terribile Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT FreeBSD: Homepage: References: <20031210092716.75903.qmail@web21107.mail.yahoo.com> cc: freebsd-questions@freebsd.org Subject: Re: How to make printer print faster? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marco Beishuizen List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 11:16:59 -0000 On stardate Wed, 10 Dec 2003, the wise Mark Terribile entered: > When something is slow, the first thing to learn is _why_ it is slow. > With it running, call up systat 1 -vmstat (systat-one-dash-vmstat) and > look at the bar graph from the lhs to the center of the display. If you > see lots of dashes or angle brackets, the problem is with user-level code > such as ghostscript . If you see lots of equal signs, then something in > the kernel (a driver?) is eating the time. If you see lots of plus signs, > then a lot of time is being spent fielding interrupts, which suggests that > the communication between the computer and the printer is not well handled. > (Parallel ports are horrible in this way.) If there is not a lot of CPU > being used, then the problem lies in the printer or in the precise > instructions is is being given -- or else in some other source of delay in > the computer. In an extreme case, heavy disk I/O could do this; you'll see > that in the display on the bottom left to bottom center. > > Once you know where the bottleneck is, or at least where it ISN'T, you > can look for the precise problem and the real fix. > > systat -vmstat may be the best thing a performance-concious developer > will find in FreeBSD. Apart, that is, from a system which wants to run > fast if only you'll let it. I did the test: - When ps is busy processing the document, a lot of angle brackets are visible in the middle of the graph (under user). But only for a second or two. - When the data is sent to the printer, a split second one plus sign is visible under sys. After that everything returns to "normal" as if nothing is busy and the data is being sent to the printer and the printer starts printing. At first I thought the bottleneck is the speed of my network and the speed the data is sent tot the printer. But it has to be something else because when I attach a laptop to my network (with Win2000) it's printing 10 ppm. I got the impression that the printer is processing the data coming from Windows a lot faster than when the data is coming from FreeBSD. Marco -- A [golf] ball hitting a tree shall be deemed not to have hit the tree. Hitting a tree is simply bad luck and has no place in a scientific game. The player should estimate the distance the ball would have traveled if it had not hit the tree and play the ball from there, preferably atop a nice firm tuft of grass. -- Donald A. Metz