Most space-efficient way to store log entries

Chris Angelico rosuav at gmail.com
Wed Oct 28 20:40:45 EDT 2015


On Thu, Oct 29, 2015 at 11:21 AM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
>> Though one also has to consider the speed of reading it off the drive
>> for processing.  If you have spinning-rust drives, it's pretty slow
>> (and SSD is still not like accessing RAM), and reading zipped
>> content can shovel a LOT more data at your CPU than if it is coming
>> off the drive uncompressed.  Logs aren't much good if they aren't
>> being monitored and processed for the information they contain.  If
>> nobody is monitoring the logs, just write them to /dev/null for 100%
>> compression. ;-)
>>
>> -tkc
>>
>
> Can you get better than 100% compression if you write them to somewhere
> other than /dev/null/ ?

If you write them to /dev/sda, you might be able to create free space
where there was none before. It all depends on the exact content of
your logs :)

ChrisA



More information about the Python-list mailing list