[lttng-dev] Will LTTng overwrite existing trace files after reboot, or continue where the previous instance left off?
David Goulet
dgoulet at efficios.com
Wed Jun 12 10:52:01 EDT 2013
It's possible yes if the session path is exactly the same but this is why we add
the date and time to the session directory so we don't end up overwriting old
traces with the same session name.
Can you tell me what is the full path of the session directory. It should look
something like (with some variations).
~/lttng-traces/fo-20130612-104743/ust/uid/1000/64-bit
Upon reboot, can you confirm that the path is different ?
Thanks!
David
Amit Margalit:
> Hi,
>
> My situation is this:
>
> lttng-sessiond --no-kernel
> lttng-create foo
> lttng enable-channel channel0 -u --tracefile-size 67108864 --tracefile-count 13
> --buffers-uid --switch-timer 1000000 --num-subbuf 32
> lttng enable-event -u -a
> lttng start foo
>
> Now this runs for a while collecting traces. I've run du -s on the trace
> directory, and saw that lttng-traces/ takes 2376KB.
>
> The system was reboot, and upon startup, the exact same scenario as above is
> reproduced.
>
> When I ran du to see the size of the lttng-traces/ directory, it was 1740KB.
>
> Can you please help explain this? Is LTTng overwriting the existing trace files?
>
> Thanks,
>
> Amit Margalit
> IBM XIV - /Storage Reinvented/
> XIV-NAS Development Team
> Tel. 03-689-7774
> Fax. 03-689-7230
>
>
> This body part will be downloaded on demand.
More information about the lttng-dev
mailing list