diff options
author | David Disseldorp <ddiss@samba.org> | 2014-07-11 17:00:05 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-08-08 14:10:38 +0200 |
commit | 4f4501ac1f35ab15f25d207c0d33e7c4d1abdf38 (patch) | |
tree | 13a9ffcdebbdc254b8305b1f24943a66ed49a569 /source3/printing/lpq_parse.c | |
parent | 1e83435eac2cef03fccb4cf69ef5e0bfbd710410 (diff) | |
download | samba-4f4501ac1f35ab15f25d207c0d33e7c4d1abdf38.tar.gz |
printing: only reload printer shares on client enum
Currently, automatic printer share updates are handled in the following
way:
- Background printer process (BPP) forked on startup
- Parent smbd and per-client children await MSG_PRINTER_PCAP messages
- BPP periodically polls the printing backend for printcap data
- printcap data written to printer_list.tdb
- MSG_PRINTER_PCAP sent to all smbd processes following update
- smbd processes all read the latest printer_list.tdb data, and update
their share listings
This procedure is not scalable, as all smbd processes hit
printer_list.tdb in parallel, resulting in a large spike in CPU usage.
This change sees smbd processes only update their printer share lists
only when a client asks for this information, e.g. via NetShareEnum or
EnumPrinters.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10652
Suggested-by: Volker Lendecke <vl@samba.org>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/printing/lpq_parse.c')
0 files changed, 0 insertions, 0 deletions