Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] "lttng enable-channel --tracefile-size" bug
@ 2016-05-27 22:11 John Smith
  2016-05-28 13:21 ` Julien Desfossez
  0 siblings, 1 reply; 4+ messages in thread
From: John Smith @ 2016-05-27 22:11 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

Hi,
it looks like for the "enable-channel" command, "tracefile-size" option
doesn't take effect, bellow are all the options, the resulted files have
the actual size the same as the size specified by subbuf-size option:

# lttng -V
lttng (LTTng Trace Control) 2.7.1 - Herbe à Détourne

$ lttng enable-channel chan_name -u -s session_name --discard --num-subbuf
8
            --subbuf-size 32M --tracefile-size 8K --tracefile-count 8
--buffers-pid

thanks, John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160527/262f3410/attachment.html>


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

* [lttng-dev] "lttng enable-channel --tracefile-size" bug
  2016-05-27 22:11 [lttng-dev] "lttng enable-channel --tracefile-size" bug John Smith
@ 2016-05-28 13:21 ` Julien Desfossez
  2016-05-28 21:59   ` John Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Julien Desfossez @ 2016-05-28 13:21 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

> Hi,
> it looks like for the "enable-channel" command, "tracefile-size" option
> doesn't take effect, bellow are all the options, the resulted files have
> the actual size the same as the size specified by subbuf-size option:
>  
> # lttng -V
> lttng (LTTng Trace Control) 2.7.1 - Herbe à Détourne
> 
> $ lttng enable-channel chan_name -u -s session_name --discard
> --num-subbuf 8 
>             --subbuf-size 32M --tracefile-size 8K --tracefile-count 8
> --buffers-pid

Yes, that is the expected behaviour, we work with packets (sub-buffers),
so the smallest unit we can store is the subbuf-size.

With 2.7.3 I get this warning when I try your command:
Warning: Tracefile size rounded up from (8192) to subbuffer size (33554432)

Julien


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

* [lttng-dev] "lttng enable-channel --tracefile-size" bug
  2016-05-28 13:21 ` Julien Desfossez
@ 2016-05-28 21:59   ` John Smith
  2016-05-29 19:48     ` Julien Desfossez
  0 siblings, 1 reply; 4+ messages in thread
From: John Smith @ 2016-05-28 21:59 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

Julien,
thanks, I was mislead by the 2.7 documentation saying:
"...parameters of enable-channel are --tracefile-sizeand --tracefile-count,
which respectively limit the size of each trace file and the their count
for a given channel. "
In this case the tracefile-size option should be removed, will it become
useful in the future releases or has a more subtle use?

thanks, John

On Sat, May 28, 2016 at 6:21 AM, Julien Desfossez <jdesfossez at efficios.com>
wrote:

> > Hi,
> > it looks like for the "enable-channel" command, "tracefile-size" option
> > doesn't take effect, bellow are all the options, the resulted files have
> > the actual size the same as the size specified by subbuf-size option:
> >
> > # lttng -V
> > lttng (LTTng Trace Control) 2.7.1 - Herbe à Détourne
> >
> > $ lttng enable-channel chan_name -u -s session_name --discard
> > --num-subbuf 8
> >             --subbuf-size 32M --tracefile-size 8K --tracefile-count 8
> > --buffers-pid
>
> Yes, that is the expected behaviour, we work with packets (sub-buffers),
> so the smallest unit we can store is the subbuf-size.
>
> With 2.7.3 I get this warning when I try your command:
> Warning: Tracefile size rounded up from (8192) to subbuffer size (33554432)
>
> Julien
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160528/a105eb0f/attachment-0001.html>


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

* [lttng-dev] "lttng enable-channel --tracefile-size" bug
  2016-05-28 21:59   ` John Smith
@ 2016-05-29 19:48     ` Julien Desfossez
  0 siblings, 0 replies; 4+ messages in thread
From: Julien Desfossez @ 2016-05-29 19:48 UTC (permalink / raw)


> Julien,
> thanks, I was mislead by the 2.7 documentation saying:
> "...parameters
> of |enable-channel| are |--tracefile-size|and |--tracefile-count|, which
> respectively limit the size of each trace file and the their count for a
> given channel. "
> In this case the tracefile-size option should be removed, will it become
> useful in the future releases or has a more subtle use? 

No, the tracefile-size options does what it says, the limitation is that
the smallest unit it can work with is the subbuf-size. So the smallest
tracefile size you can have is the subbuf-size.

If you are using 4k subbuffers and you limit the size of the tracefiles
to 4M, then you will have at most 1000 full packets in each tracefile.
But if you have subbuffers of 8M, the smallest tracefile size you can
have is 8M.

Julien


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

end of thread, other threads:[~2016-05-29 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-27 22:11 [lttng-dev] "lttng enable-channel --tracefile-size" bug John Smith
2016-05-28 13:21 ` Julien Desfossez
2016-05-28 21:59   ` John Smith
2016-05-29 19:48     ` Julien Desfossez

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