[Samba] XP to Samba printer access delay

Andriy Rysin arysin at myrealbox.com
Thu Jan 12 04:47:51 GMT 2006


Hi all,

I've got a question, may be somebody can help me:
1. I've got a printer (Epson Stylus Photo R220)
2. Attached to Linux box via usb (Mandriva 2006+)
3. Configured with cups (cups-1.2.0-0.4892.1mdk)
4. Shared with samba (samba-server-3.0.21a-1mdk), user - tried guest and
real linux user
5.On WinXP native driver install from CD (later updated from Espon site)
6.From WinXP I can see the printer and can print ok, except one thing:
7.Every time when I open properties of the printer, print preview, every
page of the print wizard etc... I have a big delay (1st could up to
1min), during which WiFi card is blinking hard but network throughput is
far from reaching the limit of 802.11g

I tried to turn on debuggin on samba but even at level 3 it gives about
1.5-2 Mb of logs for each such delay, though that log info did not help
me to find the source of the problem.

Part of the log (the rest of the megabytes are almost the same pattern)
and config is listed below.

I also tried to turn off "bidirectional" option in the printer
properties on XP but that did not help.

Thanks in advance,
Andriy

P.S. <myWinXpBox>.log
Transaction 10152 of length 63
switch message SMBreadX (pid 12820) conn 0x803f5088
change_to_user: Skipping user change - already user
search for pipe pnum=72d7
readX-IPC pnum=72d7 min=4280 max=4280 nread=4280
Transaction 10153 of length 63
switch message SMBreadX (pid 12820) conn 0x803f5088
change_to_user: Skipping user change - already user
search for pipe pnum=72e5
readX-IPC pnum=72e5 min=4280 max=4280 nread=4280
Transaction 10154 of length 63
switch message SMBreadX (pid 12820) conn 0x803f5088
change_to_user: Skipping user change - already user
search for pipe pnum=72d7
readX-IPC pnum=72d7 min=4280 max=4280 nread=4280

smb.conf

...
printcap name = cups
  load printers = yes

# printcap cache time, so samba will automatically load new cups printers
  printcap cache time = 60

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
  printing = cups
...
  security = user
...
[printers]
  comment = All Printers
  path = /var/spool/samba
  browseable = yes
# to allow user 'guest account' to print.
  guest ok = yes
  writable = no
  printable = yes
  create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
  print command = lpr-cups -P %p -o raw %s -r   # using client side
printer drivers.
#   print command = lpr-cups -P %p %s # using cups own drivers (use
generic PostScript on clients).








More information about the samba mailing list