From owner-freebsd-hackers Tue May 2 8: 1:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from elisa.utopianet.net (elisa.utopianet.net [212.210.231.2]) by hub.freebsd.org (Postfix) with ESMTP id 4860137BB0D for ; Tue, 2 May 2000 08:01:27 -0700 (PDT) (envelope-from l.iania@sintesi.net) Received: from lorenzo (giorgia.sintesi.net [212.210.231.9]) by elisa.utopianet.net (8.9.1a/8.9.1) with SMTP id QAA16991 for ; Tue, 2 May 2000 16:49:52 +0200 (CEST) Message-ID: <027b01bfb446$0262c100$0500000a@sintesi.intr> Reply-To: "Lorenzo Iania" From: "Lorenzo Iania" To: References: <017c01bfb11f$ab144c80$0500000a@sintesi.net> <200005012009.OAA18596@harmony.village.org> Subject: Re: lpr: order of print requests Date: Tue, 2 May 2000 16:52:16 +0200 Organization: S.IN.TE.S.I. Srl MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warren Losh wrote: > LPR queues up the reuqests and prints them in order smallest to > largest to reduce the average wait time for a job at the expense of > having a larger standard deviation in the wait times for jobs. Maybe > this is what you are running into. I don't know if there's a way to > disable this behavior or not. At least that's what I recall lpd doing > years ago when I ran a unix lab in school. I didn't go check the code > to see if it still did that or not. > > Warner > I think you're right, because the process that generates the requests is only one. It consecutively opens pipes to lpr and then closes them. In effect it builds invoices from delivery documents and the printed numbers of invoices is effectively out of order, while the requests are ordered by number of invoice. Each pipe is opened and closed: so the processes are not concurrent: one begins after the other has finished. So, is there a way to disable this strange behavior? Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message