AW: [Samba] Printing from Windows to Samba takes a LOT of time.

Miguel Manso mmanso at amplitudenet.pt
Sun Jun 15 23:03:31 GMT 2003


Hi there,

I thought my problem was in Samba because the time is lost in the smbd process
and only after receiving all the information the cups system is triggers. This
was I thought.

After your message, I'll try changing to LPRNG to see it it works. Tomorrow I'll
send more news.

Thanks for the help.

-- 
Miguel Manso <mmanso at amplitudenet.pt>


Quoting Alexandros Gougousoudis <ag at aloha-systeme.de>:

> Hi,
> 
> I had nearly the same problem. In my opinition it was CUPS, I switched to
> LPRNG and all worked like it should.
> 
> ALex
> 
> 
> --
> 
> ------------------------------------------------------------
> Aloha-Systeme GmbH *  Tel: 030 / 627 08 630
> Wilmersdorfer Str. 79 * 10629 Berlin * Fax: 030 / 627 08 639
> 
> Alexandros Gougousoudis *  Mobil:  0172 / 310 64 63
> ** Netzwerke und Linux **  Email:  ag at aloha-systeme.de
> 
> Offizielle Homepage: http://www.aloha-systeme.de/
> 
> 
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: samba-bounces+ag=aloha-systeme.de at lists.samba.org
> > [mailto:samba-bounces+ag=aloha-systeme.de at lists.samba.org]Im
> > Auftrag von
> > Miguel Manso
> > Gesendet: Samstag, 14. Juni 2003 14:14
> > An: Karl Banasky
> > Cc: samba at lists.samba.org
> > Betreff: re: [Samba] Printing from Windows to Samba takes a
> > LOT of time.
> >
> >
> > Hi there,
> >
> > I've tryed the settings you've suggested me and the situation
> > is the same.
> >
> > The software versions I'm using are:
> >
> > Windows version: XP Pro
> > Samba version: 2.2.7a
> > CUPS version: 1.1.19-1
> >
> > Printing a 6 pages document takes 1 minute or so... Again, I
> > think it's a samba
> > related problem because until the process arrives the CUP
> > system, it takes that
> > minute. While the time passes, there's a smbd process working
> > and working and
> > working...
> >
> > Any clue?
> >
> > Thx.
> >
> >
> > --
> > Miguel Manso <mmanso at amplitudenet.pt>
> >
> >
> > Quoting Karl Banasky <kbanasky at heatcon.com>:
> >
> > > I thought you need a "guest = yes" in your printer file for
> > Slowdows to have
> > > free access to it.  Also I put the "printcap name = lpstat"
> > in the global
> > > settings.  Though some reading says it should be "printcap
> > name = cups".
> > > Your choice.
> > > It would be helpful to know what samba ver. and cups ver.
> > you are running
> > > even the (maybe more important) version of  Slowdows you
> > are using. :)
> > > Cheers.
> > >
> > > Karl-
> > >
> > >
> > >  >>  Hi there,
> > >
> > >  >>  I've a linux server (PII 233, 94mb ram) running
> > Mandrake Linux 9.1 with
> > > an
> > >  >>  HP
> > >  >>  printer attached to it.
> > >
> > >  >>  I've configured the printer (I'm using CUPS) and it
> > works fine. Next,
> > > I've
> > >  >>  configured samba:
> > >
> > >  >>  [global]
> > >  >>  .
> > >  >>  .
> > >  >>  .
> > >  >>  workgroup = MYWORKGROUP
> > >  >>  security = share
> > >  >>  log level = 2
> > >  >>  printing = cups
> > >  >>  .
> > >  >>  .
> > >  >>  .
> > >
> > >  >>  [hp]
> > >  >>  printer = hp
> > >  >>  printable = yes
> > >  >>  path = /var/spool/samba
> > >  >>  create mask = 0700
> > >
> > >
> > >  >>  Now, I've installed the printer on a windows machine,
> > it worked ok.
> > > I've
> > >  >>  tryed
> > >  >>  the test page and it works like a charm.
> > >
> > >  >>  Now, when I thought everything was doing fine, I've
> > noticed that for
> > >  >>  documents
> > >  >>  with more pages (4, 5, 6 ...) the printing takes a LOT
> > (1,5 minutes for
> > >  >>  those
> > >  >>  examples) to complete.
> > >
> > >  >>  My first guess was that CUPS was taking too much time
> > processing the
> > > job.
> > >  >>  After
> > >  >>  analising the system with the "top" utility and
> > configured CUPS to
> > >  >>  dissalow
> > >  >>  printing jobs, I've noticed that the time was spent
> > before CUPS. The
> > > smbd
> > >  >>  process takes a lot to end.
> > >
> > >  >>  I've looking at the /var/log/samba/log.user file and
> > I've found this:
> > >
> > >
> > >  >>  [2003/06/13 21:19:41, 2]
> > >  >>  rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
> > >  >>  find_printer_index_by_hnd: Printer handle not found:
> > >  >>  find_printer_index_by_hnd: Printer handle not found:
> > > close_printer_handle:
> > >  >>  Invalid handle (OTHER:2442:2255)
> > >  >>  [2003/06/13 21:19:41, 2]
> > >  >>  rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
> > >  >>  find_printer_index_by_hnd: Printer handle not found:
> > >  >>  find_printer_index_by_hnd: Printer handle not found:
> > > close_printer_handle:
> > >  >>  Invalid handle (OTHER:2442:2255)
> > >  >>  [2003/06/13 21:19:41, 2]
> > >  >>  rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
> > >  >>  find_printer_index_by_hnd: Printer handle not found:
> > >  >>  find_printer_index_by_hnd: Printer handle not found:
> > > close_printer_handle:
> > >  >>  Invalid handle (OTHER:2442:2255)
> > >  >>  [2003/06/13 21:19:43, 2]
> > >  >>  rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(263)
> > >  >>  find_printer_index_by_hnd: Printer handle not found:
> > >  >>  _spoolss_writeprinter:
> > >  >>  Invalid handle (OTHER:2809:2253)
> > >
> > >
> > >  >>  I thought that this only happed when I was printing,
> > but no, it's
> > > allways
> > >  >>  appearing on the log file.
> > >
> > >  >>  My two guesses for the occurence are:
> > >
> > >  >>  - My server is weak for the processing that samba needs
> > >  >>  - I've any problem in the samba configuration (judging
> > the logs)
> > >
> > >  >>  Could someone point me to any direction? I think I've
> > spent all my
> > >  >>  "guesses".
> > >
> > >  >>  Thanks a lot.
> > >
> > >  >>  --
> > >  >>  Miguel Manso <mmanso at amplitudenet.pt>
> > >
> > >  >>  --
> > >  >>  To unsubscribe from this list go to the following URL
> > and read the
> > >  >>  instructions:  http://lists.samba.org/mailman/listinfo/samba
> > >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> >
> >
> 
> 




More information about the samba mailing list