SAMBA 2.2.2 - slow print queue update

Gerald Carter jerry at samba.org
Thu Jan 24 06:45:13 GMT 2002


On Thu, 24 Jan 2002, Klaus Jungbauer wrote:

> a customer of us asked me to analyse the performance problems at his
> Samba 2.2.2 (Solaris 8) print server (E250 single CPU, 1GB Mem).
>
> The first issue is a huge amount of 390 (!) network printers to serve.

That is a lot. :-)

> Using the new SpoolSS feature, he needs printer driver download
> support, we found problems using the printer folder below server view,
> as it needs an inacceptable time to get the result (some minutes and
> server CPU at 100%).  Some times it looks like a timeout will be
> reached and the client may freeze. Same behavior can be seen while
> viewing properties of a printer.
>
> Looking into source and using smbd debug level 3 shows, that most time
> would be used at printing/printing.c->print_queue_status. truss shows,
> the most time will be consumed by a very hugh amount of fcntl() system
> calls.

But up the lpq cache time to something larger than 10 seconds.
Maybe 60?


> As i could see in source the smbd have to do update the print queue
> status by itself. That would be fine for only a few printers, but gets
> very complex for a greater amount of printers.
>
> Are there any ideas to update print queue status in a more efficient
> way, e.g. a dedicated process/thread?

Yeah.  This is on the TODO list.  JF had a stab at it initially.
Not done yet.









chau, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba mailing list