performance of IPP vs. SAMBA + CUPS
I have a Debian disribution 3.1 installed on PIII 400Mhz and a hp psc1110 printer connected to the USB port. I want to use my linux machine as a printer server so to print from XP machines.
I've set up CUPS and access my printer from XP through IPP protocole. It is very easy to install and reliable. Unfortunately it is very slow (2 min to print the windows test page).
The other solution is SAMBA + CUPS.
--------------------------------------------------------------------------
Did anybody compared the speed of IPP vs SAMBA + CUPS?
---------------------------------------------------------------------------
One could argue "why don't you try?". The problem is I never succeeded to make SAMBA + CUPS works. When I try to print the test page from Windows XP it the job stay eternally in the queue.
Here is my smb.conf file
[global]
workgroup = WORKGROUP
load printers = yes
printing = cups
printcap name = cups
encrypt passwords = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = root, @ntadmins
I modified in CUPS mimes.type and mimes.conv to allow raw printing.
I added the printer on windows XP (\\Hpvectra\psc1110) and its windows driver.
Then I tried to print a test page. The job appear on the printer monitor of windows XP but in practice nothing happen.
By checking the logs of samba I found the following:
/var/log/samba/log.smbd
[2005/07/02 00:34:18, 0] lib/util_sock.c:send_smb(647)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2005/07/02 00:37:30, 0] lib/util_sock.c:get_peer_addr(1150)
getpeername failed. Error was Transport endpoint is not connected
[2005/07/02 00:37:30, 0] lib/util_sock.c:read_socket_data(384)
read_socket_data: recv failure for 4. Error = Connection reset by peer
[2005/07/02 00:37:30, 0] lib/util_sock.c:get_peer_addr(1150)
getpeername failed. Error was Transport endpoint is not connected
[2005/07/02 00:37:30, 0] lib/util_sock.c:read_socket_data(384)
read_socket_data: recv failure for 4. Error = Connection reset by peer
[2005/07/02 00:38:44, 0] lib/util_sock.c:get_peer_addr(1150)
getpeername failed. Error was Transport endpoint is not connected
[2005/07/02 00:38:44, 0] lib/util_sock.c:read_socket_data(384)
read_socket_data: recv failure for 4. Error = Connection reset by peer
a file smbprn.00000010.uJReOf is created in the directory /var/spool/samba but its size is null.
/var/pool/samba is in 777+sticky bit.
drwsrwsrwx 2 root root 4096 2005-07-01 23:52 samba
This is strange because I have no problems sharing files.
--------------------------------------------------------------------------
Did anybody encountered similar issue? I'm running out of solutions.
---------------------------------------------------------------------------
Thx
Benjamin
|