Running lp or lpr to a remote server can take 8-10 seconds in RHEL 8

Solution Verified - Updated -

Issue

  • We have over 22,000 print queues. When testing with dozen queues, it prints in hundredths of a second. However, as the number of queues on the print server increases, the amount of time required to send a print queue to the server increases. For example, with "ServerName=10.1.2.3" set in /etc/cups/client.conf and 22,000 queues defined on the server with the IP address 10.1.2.3:

    time echo -e "\r\nTesting 1 2 3\r\nTesting 1 2 3\r\nTesting 1 2 3\r\nTesting 1 2 3\r\n" | lp -d pr99
    request id is pr99-142 (0 file(s))
    
    real    0m9.876s
    user    0m5.325s
    
  • Running something like

    lp -h 10.1.2.3 -p pr99 /etc/fstab
    

    or

    export SERVER_NAME=10.1.2.3:631
    lp -p pr999 /etc/fstab
    

    can take several seconds (or several minutes over a slow network link) if the remote server has tens of thousands of print queues defined.

Environment

  • Red Hat Enterprise Linux (RHEL) 8.0-8.5
  • Common Unix Printing System (CUPS) 2.2.6-40.el8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content