[cups] cups-lpd performance and scalability?

Tim Mooney Tim.Mooney at ndsu.edu
Mon Aug 24 06:34:34 PDT 2015


In regard to: Re: [cups] cups-lpd performance and scalability?, Helge...:

> My test configuration is as follows:
>
> Client: OS X Yosemite (10.10.5), cups 2.0.0
> Server: OS X Leopard (10.5.8), cups 1.3.11,
> So, what is the OS X client bug?

Hi Helge!

As I mentioned in those threads I quoted, with our Yosemite clients,
if we configure the IPP queue to send to our cups 1.3.7 (RHEL 5) server,
it failed with

 	E [19/Aug/2015:11:06:46 -0500] cupsdReadClient: 8 IPP Read Error!

After posting about that, Michael suggested the same thing you did, below:
Use a printer name that includes ?version=1.1 when defining the printer
on the Mac client.

We tried that (through the GUI, at least) and I have verified that the
printers.conf that's generated has the correct DeviceURI:

 	DeviceURI ipp://printserver.fqdn/printers/qbb-150-b?version=1.1

However, when a Mac client submits to that queue, here's what's logged on
our cups 1.3.7 server:

D [19/Aug/2015:16:33:19 -0500] cupsdAcceptClient: skipping getpeercon()
D [19/Aug/2015:16:33:19 -0500] cupsdAcceptClient: 8 from 10.134.71.172:631 (IPv4)
D [19/Aug/2015:16:33:19 -0500] [Job 3] Unloading...
D [19/Aug/2015:16:33:19 -0500] [Job 4] Unloading...
D [19/Aug/2015:16:33:19 -0500] [Job 5] Unloading...
D [19/Aug/2015:16:33:19 -0500] cupsdReadClient: 8 POST /printers/qbb-150-b?version=1.1 HTTP/1.1
D [19/Aug/2015:16:33:19 -0500] cupsdAuthorize: No authentication data provided.
E [19/Aug/2015:16:33:19 -0500] cupsdReadClient: 8 IPP Read Error!
D [19/Aug/2015:16:33:19 -0500] cupsdSendError: 8 code=400 (Bad Request)
D [19/Aug/2015:16:33:19 -0500] cupsdCloseClient: 8


After posting that log snippet, which shows that the Mac CUPS client is
including a literal ?version=1.1 as part of the printer name, Michael
suggested that it looks like a bug in the Mac client.

That's what's caused me to start (re)considering cups-lpd.

If you're able to make this work, getting the Yosemite client to
"downgrade" to IPP 1.1, I would be very interested in what you might be
doing that we've missed.

Thanks much!

Tim

>> Am 23.08.2015 um 20:23 schrieb Tim Mooney <Tim.Mooney at ndsu.edu>:
>>
>> In regard to: Re: [cups] cups-lpd performance and scalability?, Helge...:
>>
>>> As long as you specify the printers ?by hand? (at least), like e.g.
>>> ipp://hostname_or_ip_address:631/printers/display?version=1.1 <ipp://hostname_or_ip_address:631/printers/display?version=1.1>
>>> <ipp://hostname_or_ip_address:631/printers/display?version=1.1 <ipp://hostname_or_ip_address:631/printers/display?version=1.1>>
>>> it works with CUPS servers running 1.3.x (in my example above 1.3.11),
>>> thus no need to use cups-lpd.
>>
>> We tried that when defining the printer on the OS X client, as described
>> in the 2nd thread.  It appears there may be a bug with the OS X client,
>> as Michael suggested in his response in the thread.
>>
>> Tim
>>
>>
>>>
>>> Helge
>>>> Am 23.08.2015 um 01:32 schrieb Tim Mooney <Tim.Mooney at ndsu.edu>:
>>>>
>>>>
>>>> All-
>>>>
>>>> I've downloaded the cups mailing list archives and spent quite a bit of
>>>> time grepping them for anything related to cups-lpd, but I don't see where
>>>> the question I have about cups-lpd scalability has been addressed before.
>>>>
>>>> Because of the problems we've run into with Macs running Yosemite not
>>>> being able to submit print jobs to our cups 1.3.7 print server via IPP,
>>>> as described in these threads:
>>>>
>>>>       http://www.cups.org/pipermail/cups/2015-August/027009.html
>>>>       http://www.cups.org/pipermail/cups/2015-August/027012.html
>>>>
>>>> We're therefore exploring enabling cups-lpd, so Macs and any other systems
>>>> that can't do IPP 1.1 can submit print jobs to our cups 1.3.7 server.
>>>>
>>>> The cups-lpd PERFORMANCE section has some pretty dire warnings about
>>>> cups-lpd not scaling, though.  However, web searches I've done for
>>>> "cups-lpd performance" have turned up
>>>>
>>>>       https://bugzilla.redhat.com/show_bug.cgi?id=132949
>>>>
>>>> which leads to this CUPS STR:
>>>>
>>>>       http://www.cups.org/str.php?L804
>>>>
>>>> That implies that a lot of the original cups-lpd performance issues were
>>>> resolved in the 1.2 series when cupsGetDests() was improved.
>>>>
>>>> Does that mean that the performance warnings in the cups-lpd man page
>>>> are (somewhat) out of date?
>>>>
>>>> Does anyone have any idea how cups-lpd scales, when used in a mixed
>>>> IPP and LPD protocol environment?  We've converted our Windows labs to
>>>> use IPP exclusively, so the majority of jobs submitted to our print server
>>>> would be via IPP.  If cups-lpd is still a poor performer, though, we don't
>>>> want to enable it and cause problems for IPP job submittal too.
>>>>
>>>> Thanks much for any information you can provide!
>>>>
>>>> Tim
>>>> --
>>>> Tim Mooney                                             Tim.Mooney at ndsu.edu
>>>> Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
>>>> Room 242-J6, Quentin Burdick Building                  701-231-8541 (Fax)
>>>> North Dakota State University, Fargo, ND 58105-5164
>>>> _______________________________________________
>>>> cups mailing list
>>>> cups at cups.org
>>>> https://www.cups.org/mailman/listinfo/cups
>>>
>>> _______________________________________________
>>> cups mailing list
>>> cups at cups.org <mailto:cups at cups.org>
>>> https://www.cups.org/mailman/listinfo/cups <https://www.cups.org/mailman/listinfo/cups>
>>>
>>
>> --
>> Tim Mooney                                             Tim.Mooney at ndsu.edu <mailto:Tim.Mooney at ndsu.edu>
>> Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
>> Room 242-J6, Quentin Burdick Building                  701-231-8541 (Fax)
>> North Dakota State University, Fargo, ND 58105-5164
>> _______________________________________________
>> cups mailing list
>> cups at cups.org <mailto:cups at cups.org>
>> https://www.cups.org/mailman/listinfo/cups <https://www.cups.org/mailman/listinfo/cups>
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
>

-- 
Tim Mooney                                             Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building                  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164



More information about the cups mailing list