[Samba] Printing eats my CPU

Martin Zielinski m.zielinski at seh.de
Tue Jul 2 02:01:02 GMT 2002


Hi all,
I still have several problems with the printing system.

The most critical is, that some drivers seem to cause an infinite RPC loop.
I have a KYOCERA Mita KM 4230 KX driver installed. In this moment I can see
SPOOLSS_GET_PRINTER and SPOOLSS_GET_PRINTERDATA requests and 
RPC responses on the net. Stracing the smbd process looks like this:
...
pread(16, "\30\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1406, 
6938) = 1406
fcntl(16, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=196, len=1}) = 0
fcntl(16, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=452, len=1}) = 0
pread(16, "0\24\0\0", 4, 456)           = 4
pread(16, "\0\0\0\0\274\0\0\0\25\0\0\0\240\0\0\0\205_\275\245\231"..., 24, 
5168) = 24
pread(16, "SECDESC/KM4230-LABOR\0", 21, 5192) = 21
pread(16, "\224\0\0\0\1\0\0\0\224\0\0\0\1\0\4\200\24\0\0\0\0\0\0\0"..., 160, 
5213) = 160
fcntl(16, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=452, len=1}) = 0
...

This takes about 90 percent of my CPU.

2nd: 
I find messages like this in my samba logs:
(from srv_spoolss_nt.c / _spoolss_enumprinterdataex()):

talloc_realloc failed to allocate more memory for data!

meminfo shows a memory usage of 25 percent, swap space is not used.

I use a 2.4.4 kernel with reiserfs - I remember that there was something with 
flocks on journaling fs - but can't find the posts.

Any hints? Thanks.

-- 
Martin Zielinski m.zielinski at seh.de





More information about the samba mailing list