Read/Write size

angelb angelb at bugarin.us
Thu Mar 8 11:38:37 PST 2007


Hello all.

I'm testing a CUPS server and noticed the following after printing
a 3Kb file. Server is set at debug.

D [08/Mar/2007:13:26:53 -0600] [Job 20] backendRunLoop(print_fd=0, device_fd=4,
use_bc=1)
D [08/Mar/2007:13:26:53 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 4096 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 4096 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:56 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Before copy_setup - %%Page: 1 1
D [08/Mar/2007:13:26:57 -0600] [Job 20] Before page loop - %%Page: 1 1
D [08/Mar/2007:13:26:57 -0600] [Job 20] Copying page 1...
D [08/Mar/2007:13:26:57 -0600] Discarding unused job-progress event...
D [08/Mar/2007:13:26:57 -0600] [Job 20] pagew = 576.0, pagel = 720.0
D [08/Mar/2007:13:26:57 -0600] [Job 20] bboxw = 612, bboxl = 792
D [08/Mar/2007:13:26:57 -0600] [Job 20] PageLeft = 18.0, PageRight = 594.0
D [08/Mar/2007:13:26:57 -0600] [Job 20] PageTop = 756.0, PageBottom = 36.0
D [08/Mar/2007:13:26:57 -0600] [Job 20] PageWidth = 612.0, PageLength = 792.0
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] PID 8050 (/opt/TWWfsw/cups124/lib/filter/texttops
) exited with no errors.
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 1 pages...
D [08/Mar/2007:13:26:57 -0600] PID 8051 (/opt/TWWfsw/cups124/lib/filter/pstops)
exited with no errors.
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 8192 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Read 1374 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] [Job 20] Wrote 1374 bytes of print data...
D [08/Mar/2007:13:26:57 -0600] PID 8052 (/opt/TWWfsw/cups124/lib/backend/socket)
 exited with no errors.
D [08/Mar/2007:13:26:57 -0600] [Job 20] File 0 is complete.

ROOT @ localhost # ls -al angel
-rw-r--r--   1 cups  staff          3402 Mar  8 12:32 angel

ROOT @ localhost # cksum angel
3836953612 3402 angel

Here's a sample content of the file:
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnop
"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopq
#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqr
$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrs
. 
. 

What's with the 8Kb Read/Write entries? Is there a way to accurately
determine the total size sent to the printer?

Thanks,
Angel




More information about the cups mailing list