Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Re: Apache: Logging: how-to pipe logs orlogtoanothermachine (was Disk



On Mon, 2002-09-09 at 01:45, Viktor Pavlenko wrote:
>     TD> Always repeating the same value compresses _very_ well of course :-)
>     TD> You should try random values instead...
> 
> Just to wrap it up, playing with numbers in the perl one-liner I
> posted earlier shows that gzip uses buffer size 49152, for both print
> $_ and print rand.

strace on gzip gives:
[...]
read(0, "VIDIA NVdriver Kernel Module  1."..., 8192) = 8192
read(0, "(li) CMD (cd /www/li-bridge; wge"..., 32768) = 8192
read(0, "] Rejected at IN(default) filter"..., 24576) = 8192
write(1, "\266\255\334\221\322\\\333\272$)\315\267\255\272\332!I"...,
16384) = 16384
[...]

This means that the input buffer is BUFSIZ, and output buffer is
2*BUFSIZ.

br.

-- 
GPG Key: 653514E5 (http://www.raoult.com/gpg)
--
Unix is user friendly. He's just very picky about who his friends are...

Attachment: signature.asc
Description: This is a digitally signed message part


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links