Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] Need for zipped traces ?
@ 2009-08-04 13:28 Ajit R
  2009-08-04 13:41 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: Ajit R @ 2009-08-04 13:28 UTC (permalink / raw)



Hi
  Just wondering if zipping traces as they are being generated makes sense. This would be useful on embedded targets which could quickly run out of resources.

Thanks
Ajit


      




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ltt-dev] Need for zipped traces ?
  2009-08-04 13:28 [ltt-dev] Need for zipped traces ? Ajit R
@ 2009-08-04 13:41 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2009-08-04 13:41 UTC (permalink / raw)


* Ajit R (ajitrzid at yahoo.com) wrote:
> 
> Hi
>   Just wondering if zipping traces as they are being generated makes sense. This would be useful on embedded targets which could quickly run out of resources.
> 

It could, but it requires extra CPU time while tracing.

I would rather use something based on gzip (zlib1). Using the most
lightweight compression levels should be able to compress one subbuffer
after another without wasting too much resources.

However, with the recent LTTng versions, given we use zero-copy splice
to write to disk, the "easy way" to do it (maybe not the best) is to
write data to a temporary file (which will stay in the buffer cache),
compress it and append it to the tracefile, and clear the temporary
file.

All this can be done by modifying lttd.

Mathieu

> Thanks
> Ajit
> 
> 
>       
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-04 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 13:28 [ltt-dev] Need for zipped traces ? Ajit R
2009-08-04 13:41 ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox