Michael Carmody
2002-Sep-02 02:30 UTC
[Samba] Slow Samba Printer initialisation, status, and printing
OK, I have been wrestling with this for two weeks now, so somebody please help ! We have an existing Samba Print Server, running RedHat linux, kernel 2.2.19, that runs fine, but is a P133 with 64 mb ram. So we built a new PC, the slowest thing we could buy, a duron 1 ghz with 512 mb RAM. Old printer server is running Samba 2.2.5, new printer server is running samba 2.2.5, and Slackware 8.1, kernel 2.4.18. Both are using lprng as print spooler. Old is currently a WINS server, the new is pointing at the old smb WINS Server File browsing and creation is quick, easy and no problems. Printing takes nearly 30 seconds to open, and another 10 seconds to initialise, and the print jobs take forever to come up. It is functional, but very slow. The new print server runs rapidly with no problems, printing/initialisation and file browsing. In the machine specific logs I get the following error message repeated two or three times before it does actually connect: [2002/09/02 16:16:16, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(79) connect_to_client: Can't resolve address for PC194-70 There is nothing in the smbd or nmbd logs, they remain empty, except for server restarts, and then this error message appears in the nmbd log: [2002/09/02 16:11:35, 0] nmbd/nmbd_responserecordsdb.c:find_response_record(235) find_response_record: response packet id 31803 received with no matching record. But this only shows when server is started. The initial browse to host and open also takes a fair while (~10secs), are these delays normal ? Is there something I've configure wrong ? Any all help appreciated. checkpc produces no errors, and lprng directly from the server to the printers takes neglible time (less than 3 secs to printer receiving data). smb.conf follows: # Global parameters [global] workgroup = MDU server string = New MDU Print Server security = SERVER encrypt passwords = Yes password server = pv-mdu-server1 pv-mdu-server2 log file = /usr/local/samba/var/log.%m max log size = 50 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096 preferred master = False local master = No domain master = False dns proxy = No wins server = 128.250.194.14 printer admin = root, +ntadmin, johnm, michaelc printing = lprng [Test] comment = Temp Files path = /tmp read only = No [lp1] comment = HP5si Epi path = /usr/local/samba/spool printable = Yes print command = /usr/bin/lpr -U%U@%M -P %p -r %s lpq command = /usr/bin/lpq -U%U@%M -P %p lprm command = /usr/bin/lprm -Uroot -P %p %j printer name = lp1 [print$] path = /usr/local/samba/printers write list = root, michaelc, johnm [Print Room 4m+] comment = Print Room Laserjet 4MPlus path = /usr/local/samba/spool printable = Yes print command = /usr/bin/lpr -U%U@%M -P %p -r %s lpq command = /usr/bin/lpq -U%U@%M -P %p lprm command = /usr/bin/lprm -Uroot -P %p %j printer name = lp4 [hp8000] comment = Reception Printer path = /usr/local/samba/spool printable = Yes print command = /usr/bin/lpr -U%U@%M -P %p -r %s lpq command = /usr/bin/lpq -U%U@%M -P %p lprm command = /usr/bin/lprm -Uroot -P %p %j printer name = lp5 [Foods HP4000] comment = Foods HP4000 path = /usr/local/samba/spool printable = Yes print command = /usr/bin/lpr -U%U@%M -P %p -r %s lpq command = /usr/bin/lpq -U%U@%M -P %p lprm command = /usr/bin/lprm -Uroot -P %p %j printer name = lp2 [Molecular 4M+] comment = Molecular 4M+ path = /usr/local/samba/spool printable = Yes print command = /usr/bin/lpr -U%U@%M -P %p -r %s lpq command = /usr/bin/lpq -U%U@%M -P %p lprm command = /usr/bin/lprm -Uroot -P %p %j printer name = lp3 my printcap is as follows: HP5siEpi | lp1 :\ :server:\ :sd=/home/mdu-print/printers/lp1:\ :filter=/usr/libexec/filters/ifhp:\ :mx=0:\ :ifhp=model=hp5simx:\ :lp=128.250.194.58%9100: HP4kNFoods | lp2 :sd=/home/mdu-print/printers/lp2 :server :mx=0 :lp=128.250.194.54%9100 :ifhp=model=hp4000 :filter=/usr/libexec/filters/ifhp HP4MPMol | lp3 :sd=/home/mdu-print/printers/lp3 :server :mx=0 :lp=128.250.194.55%9100 :ifhp=model=hp4mplus :filter=/usr/libexec/filters/ifhp HP4MPPrint | lp4 :sd=/home/mdu-print/printers/lp4 :server :mx=0 :lp=128.250.194.56%9100 :ifhp=model=hp4mplus :filter=/usr/libexec/filters/ifhp HP8kNRecep | lp5 :sd=/home/mdu-print/printers/lp5 :server :mx=0 :lp=128.250.194.57%9100 :ifhp=model=hp8000 :filter=/usr/libexec/filters/ifhp Michael Carmody MDU, Public Health Lab Dept. of Microbiology and Immunology The University of Melbourne, Parkville
Joel Hammer
2002-Sep-02 08:38 UTC
[Samba] Slow Samba Printer initialisation, status, and printing
This sort of delay is usually a network problem or validation trouble. Have you looked in both the nmbd and the smbd logs? Have you looked at tcpdump during this delay? Joel On Mon, Sep 02, 2002 at 04:29:36PM +1000, Michael Carmody wrote:> > OK, I have been wrestling with this for two weeks now, so somebody please > help ! > > We have an existing Samba Print Server, running RedHat linux, kernel > 2.2.19, that runs fine, but is a P133 with 64 mb ram. So we built a new PC, > the slowest thing we could buy, a duron 1 ghz with 512 mb RAM. Old printer > server is running Samba 2.2.5, new printer server is running samba 2.2.5, > and Slackware 8.1, kernel 2.4.18. Both are using lprng as print spooler. > Old is currently a WINS server, the new is pointing at the old smb WINS Server > > File browsing and creation is quick, easy and no problems. Printing takes > nearly 30 seconds to open, and another 10 seconds to initialise, and the > print jobs take forever to come up. It is functional, but very slow. The > new print server runs rapidly with no problems, printing/initialisation and > file browsing. In the machine specific logs I get the following error > message repeated two or three times before it does actually connect: > > [2002/09/02 16:16:16, 0] > rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(79) > connect_to_client: Can't resolve address for PC194-70 > > There is nothing in the smbd or nmbd logs, they remain empty, except for > server restarts, and then this error message appears in the nmbd log: > > [2002/09/02 16:11:35, 0] > nmbd/nmbd_responserecordsdb.c:find_response_record(235) > find_response_record: response packet id 31803 received with no matching > record. > > But this only shows when server is started. > > The initial browse to host and open also takes a fair while (~10secs), are > these delays normal ? Is there something I've configure wrong ? > Any all help appreciated. > > checkpc produces no errors, and lprng directly from the server to the > printers takes neglible time (less than 3 secs to printer receiving data). > > smb.conf follows: > > # Global parameters > [global] > workgroup = MDU > server string = New MDU Print Server > security = SERVER > encrypt passwords = Yes > password server = pv-mdu-server1 pv-mdu-server2 > log file = /usr/local/samba/var/log.%m > max log size = 50 > socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 > SO_RCVBUF=4096 > preferred master = False > local master = No > domain master = False > dns proxy = No > wins server = 128.250.194.14 > printer admin = root, +ntadmin, johnm, michaelc > printing = lprng > > [Test] > comment = Temp Files > path = /tmp > read only = No > > [lp1] > comment = HP5si Epi > path = /usr/local/samba/spool > printable = Yes > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > lpq command = /usr/bin/lpq -U%U@%M -P %p > lprm command = /usr/bin/lprm -Uroot -P %p %j > printer name = lp1 > > [print$] > path = /usr/local/samba/printers > write list = root, michaelc, johnm > > [Print Room 4m+] > comment = Print Room Laserjet 4MPlus > path = /usr/local/samba/spool > printable = Yes > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > lpq command = /usr/bin/lpq -U%U@%M -P %p > lprm command = /usr/bin/lprm -Uroot -P %p %j > printer name = lp4 > > [hp8000] > comment = Reception Printer > path = /usr/local/samba/spool > printable = Yes > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > lpq command = /usr/bin/lpq -U%U@%M -P %p > lprm command = /usr/bin/lprm -Uroot -P %p %j > printer name = lp5 > > [Foods HP4000] > comment = Foods HP4000 > path = /usr/local/samba/spool > printable = Yes > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > lpq command = /usr/bin/lpq -U%U@%M -P %p > lprm command = /usr/bin/lprm -Uroot -P %p %j > printer name = lp2 > > [Molecular 4M+] > comment = Molecular 4M+ > path = /usr/local/samba/spool > printable = Yes > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > lpq command = /usr/bin/lpq -U%U@%M -P %p > lprm command = /usr/bin/lprm -Uroot -P %p %j > printer name = lp3 > > my printcap is as follows: > > HP5siEpi | lp1 :\ > :server:\ > :sd=/home/mdu-print/printers/lp1:\ > :filter=/usr/libexec/filters/ifhp:\ > :mx=0:\ > :ifhp=model=hp5simx:\ > :lp=128.250.194.58%9100: > > HP4kNFoods | lp2 > :sd=/home/mdu-print/printers/lp2 > :server > :mx=0 > :lp=128.250.194.54%9100 > :ifhp=model=hp4000 > :filter=/usr/libexec/filters/ifhp > > HP4MPMol | lp3 > :sd=/home/mdu-print/printers/lp3 > :server > :mx=0 > :lp=128.250.194.55%9100 > :ifhp=model=hp4mplus > :filter=/usr/libexec/filters/ifhp > > HP4MPPrint | lp4 > :sd=/home/mdu-print/printers/lp4 > :server > :mx=0 > :lp=128.250.194.56%9100 > :ifhp=model=hp4mplus > :filter=/usr/libexec/filters/ifhp > > HP8kNRecep | lp5 > :sd=/home/mdu-print/printers/lp5 > :server > :mx=0 > :lp=128.250.194.57%9100 > :ifhp=model=hp8000 > :filter=/usr/libexec/filters/ifhp > > > > > Michael Carmody > MDU, Public Health Lab > Dept. of Microbiology and Immunology > The University of Melbourne, Parkville > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Michael Carmody
2002-Sep-02 21:28 UTC
[Samba] Slow Samba Printer initialisation, status, and printing
Thanks Joel, TCP Dump, showed that the server as querying a defunct DNS ip, when the machine was taken off the DHCP and manually configured, it is behaving, and doing it reasonably fast as well. Why would the DNS affect the samba ? Doesn't it use WINS for everything to locate machines ? Now though I am getting a constant stream of the same error to the machine specific logs, again smb and nmbd logs are showing up nothing, error is as follows: [2002/09/03 11:08:15, 0] libsmb/cliconnect.c:attempt_netbios_session_request(1091) attempt_netbios_session_request: PC194-70 rejected the session for name *SMBSERVER with error Not listening on called name [2002/09/03 11:08:15, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(98) connect_to_client: machine PC194-70 rejected the NetBIOS session request. Machine 194-70 is my WinXP machine, why would the samba server be trying to establish a netbios session to it ? I have enabled Netbios over TCP for my WinXP machine, and it has the WINS server entered in the WINS field. The wins.dat on the samba WINS server (not the problem machine), contains this line for pc194-70: "PC194-70#00" 1031316178 128.250.194.70 64R And no others. Any clues as to what it causing the extraneous vomit in my logs ? -Michael smb.conf is at bottom of original email At 08:37 AM 2/09/2002 -0400, Joel Hammer wrote:>This sort of delay is usually a network problem or validation trouble. >Have you looked in both the nmbd and the smbd logs? >Have you looked at tcpdump during this delay? >Joel > > > > > >On Mon, Sep 02, 2002 at 04:29:36PM +1000, Michael Carmody wrote: > > > > OK, I have been wrestling with this for two weeks now, so somebody please > > help ! > > > > We have an existing Samba Print Server, running RedHat linux, kernel > > 2.2.19, that runs fine, but is a P133 with 64 mb ram. So we built a new > PC, > > the slowest thing we could buy, a duron 1 ghz with 512 mb RAM. Old printer > > server is running Samba 2.2.5, new printer server is running samba 2.2.5, > > and Slackware 8.1, kernel 2.4.18. Both are using lprng as print spooler. > > Old is currently a WINS server, the new is pointing at the old smb > WINS Server > > > > File browsing and creation is quick, easy and no problems. Printing takes > > nearly 30 seconds to open, and another 10 seconds to initialise, and the > > print jobs take forever to come up. It is functional, but very slow. The > > new print server runs rapidly with no problems, printing/initialisation > and > > file browsing. In the machine specific logs I get the following error > > message repeated two or three times before it does actually connect: > > > > [2002/09/02 16:16:16, 0] > > rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(79) > > connect_to_client: Can't resolve address for PC194-70 > > > > There is nothing in the smbd or nmbd logs, they remain empty, except for > > server restarts, and then this error message appears in the nmbd log: > > > > [2002/09/02 16:11:35, 0] > > nmbd/nmbd_responserecordsdb.c:find_response_record(235) > > find_response_record: response packet id 31803 received with no > matching > > record. > > > > But this only shows when server is started. > > > > The initial browse to host and open also takes a fair while (~10secs), are > > these delays normal ? Is there something I've configure wrong ? > > Any all help appreciated. > > > > checkpc produces no errors, and lprng directly from the server to the > > printers takes neglible time (less than 3 secs to printer receiving data). > > > > smb.conf follows: > > > > # Global parameters > > [global] > > workgroup = MDU > > server string = New MDU Print Server > > security = SERVER > > encrypt passwords = Yes > > password server = pv-mdu-server1 pv-mdu-server2 > > log file = /usr/local/samba/var/log.%m > > max log size = 50 > > socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 > > SO_RCVBUF=4096 > > preferred master = False > > local master = No > > domain master = False > > dns proxy = No > > wins server = 128.250.194.14 > > printer admin = root, +ntadmin, johnm, michaelc > > printing = lprng > > > > [Test] > > comment = Temp Files > > path = /tmp > > read only = No > > > > [lp1] > > comment = HP5si Epi > > path = /usr/local/samba/spool > > printable = Yes > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > > lpq command = /usr/bin/lpq -U%U@%M -P %p > > lprm command = /usr/bin/lprm -Uroot -P %p %j > > printer name = lp1 > > > > [print$] > > path = /usr/local/samba/printers > > write list = root, michaelc, johnm > > > > [Print Room 4m+] > > comment = Print Room Laserjet 4MPlus > > path = /usr/local/samba/spool > > printable = Yes > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > > lpq command = /usr/bin/lpq -U%U@%M -P %p > > lprm command = /usr/bin/lprm -Uroot -P %p %j > > printer name = lp4 > > > > [hp8000] > > comment = Reception Printer > > path = /usr/local/samba/spool > > printable = Yes > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > > lpq command = /usr/bin/lpq -U%U@%M -P %p > > lprm command = /usr/bin/lprm -Uroot -P %p %j > > printer name = lp5 > > > > [Foods HP4000] > > comment = Foods HP4000 > > path = /usr/local/samba/spool > > printable = Yes > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > > lpq command = /usr/bin/lpq -U%U@%M -P %p > > lprm command = /usr/bin/lprm -Uroot -P %p %j > > printer name = lp2 > > > > [Molecular 4M+] > > comment = Molecular 4M+ > > path = /usr/local/samba/spool > > printable = Yes > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s > > lpq command = /usr/bin/lpq -U%U@%M -P %p > > lprm command = /usr/bin/lprm -Uroot -P %p %j > > printer name = lp3 > > > > my printcap is as follows: > > > > HP5siEpi | lp1 :\ > > :server:\ > > :sd=/home/mdu-print/printers/lp1:\ > > :filter=/usr/libexec/filters/ifhp:\ > > :mx=0:\ > > :ifhp=model=hp5simx:\ > > :lp=128.250.194.58%9100: > > > > HP4kNFoods | lp2 > > :sd=/home/mdu-print/printers/lp2 > > :server > > :mx=0 > > :lp=128.250.194.54%9100 > > :ifhp=model=hp4000 > > :filter=/usr/libexec/filters/ifhp > > > > HP4MPMol | lp3 > > :sd=/home/mdu-print/printers/lp3 > > :server > > :mx=0 > > :lp=128.250.194.55%9100 > > :ifhp=model=hp4mplus > > :filter=/usr/libexec/filters/ifhp > > > > HP4MPPrint | lp4 > > :sd=/home/mdu-print/printers/lp4 > > :server > > :mx=0 > > :lp=128.250.194.56%9100 > > :ifhp=model=hp4mplus > > :filter=/usr/libexec/filters/ifhp > > > > HP8kNRecep | lp5 > > :sd=/home/mdu-print/printers/lp5 > > :server > > :mx=0 > > :lp=128.250.194.57%9100 > > :ifhp=model=hp8000 > > :filter=/usr/libexec/filters/ifhp > > > > > > > > > > Michael Carmody > > MDU, Public Health Lab > > Dept. of Microbiology and Immunology > > The University of Melbourne, Parkville > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/sambaMichael Carmody MDU, Public Health Lab Dept. of Microbiology and Immunology The University of Melbourne, Parkville
Gerald Carter
2002-Sep-02 23:15 UTC
[Samba] Slow Samba Printer initialisation, status, and printing
On Mon, 2 Sep 2002, Michael Carmody wrote:> File browsing and creation is quick, easy and no problems. Printing takes > nearly 30 seconds to open, and another 10 seconds to initialise, and the > print jobs take forever to come up. It is functional, but very slow. The > new print server runs rapidly with no problems, printing/initialisation and > file browsing. In the machine specific logs I get the following error > message repeated two or three times before it does actually connect: > > [2002/09/02 16:16:16, 0] > rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(79) > connect_to_client: Can't resolve address for PC194-70This is the print notification back channel needed to send asynchronous updates to connected clients. smbd cannot resolve the address to the client name used in the netbios session setup. Fix your name resolution and the delay will go away.> [global] > workgroup = MDU > server string = New MDU Print Server > security = SERVER^^^^^^^^^^^^^^^^^> encrypt passwords = Yes > password server = pv-mdu-server1 pv-mdu-server2Why are you using server mode security? It is not very good for the health of you samba PDC as compared to domain mode security. cheers, 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--