lttng-enable-rotation.1.txt: add that SIZE/PERIOD are approximations
[lttng-tools.git] / doc / man / lttng-enable-rotation.1.txt
CommitLineData
980bb5fd
PP
1lttng-enable-rotation(1)
2========================
3
4
5NAME
6----
31099add 7lttng-enable-rotation - Set a tracing session's rotation schedule
980bb5fd
PP
8
9
10SYNOPSIS
11--------
12[verse]
13*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *enable-rotation* (option:--timer='PERIOD' | option:--size='SIZE')
14 [option:--session='SESSION']
15
16
17DESCRIPTION
18-----------
31099add
PP
19The `lttng enable-rotation` command sets a rotation schedule for the
20current tracing session, or for the tracing session named 'SESSION' if
21provided. See man:lttng-rotate(1) for more information about the
22concepts of a tracing session _rotation_ and a _trace chunk_.
980bb5fd
PP
23
24With the option:--timer option, the rotation schedule is set so that an
25automatic rotation occurs at least every 'PERIOD' (microseconds without
26a unit suffix).
27
28With the option:--size option, the rotation schedule is set
29so that an automatic rotation occurs every time the total size of the
30flushed part of the current trace chunk is at least 'SIZE' (bytes
31without a unit suffix).
32
17bb414d 33For both option:--timer and option:--size options, LTTng checks the
980bb5fd
PP
34schedule condition periodically using the monitor timers of the tracing
35session's channels. This means that, with the option:--timer option, the
36automatic rotation can occur when the elapsed time since the last
37automatic rotation is greater than 'PERIOD', and with the option:--size
38option, the automatic rotation can occur when the size of the flushed
17bb414d
PP
39part of the current trace chunk is greater than 'SIZE'. Therefore the
40'PERIOD' and 'SIZE' arguments are approximations. See the
980bb5fd
PP
41nloption:--monitor-timer option in man:lttng-enable-channel(1) for more
42information about the monitor timer.
43
44The naming convention of a trace chunk archive which an automatic
31099add 45rotation creates is the same as with the immediate rotation command,
980bb5fd
PP
46man:lttng-rotate(1).
47
31099add
PP
48You can unset a rotation schedule with the man:lttng-disable-rotation(1)
49command.
980bb5fd
PP
50
51See <<limitations,LIMITATIONS>> for important limitations regarding
52this command.
53
54
55include::common-cmd-options-head.txt[]
56
57
31099add
PP
58Rotation schedule condition
59~~~~~~~~~~~~~~~~~~~~~~~~~~~
980bb5fd
PP
60One of:
61
62option:--size='SIZE'::
31099add
PP
63 Set a rotation schedule so that an automatic rotation occurs every
64 time the total size of the flushed part of the current trace chunk
65 is at least 'SIZE' bytes. The `k` (kiB), `M` (MiB), and `G` (GiB)
66 suffixes are supported.
980bb5fd
PP
67
68option:--timer='PERIOD'::
31099add
PP
69 Set a rotation schedule so that an automatic rotation occurs at
70 least every 'PERIOD' microseconds. The `ms` (milliseconds), `s`
71 (seconds), `m` (minutes), and `h` (hours) suffixes are supported.
980bb5fd
PP
72
73
74Target
75~~~~~~
76option:-s 'SESSION', option:--session='SESSION'::
31099add
PP
77 Set a rotation schedule for the tracing session named 'SESSION'
78 instead of the current tracing session.
980bb5fd
PP
79
80
81include::common-cmd-help-options.txt[]
82
83
84[[limitations]]
85LIMITATIONS
86-----------
87The `lttng enable-rotation` command only works when:
88
89* The tracing session is created in normal mode or in network streaming
90 mode (see man:lttng-create(1)).
91
92* No channel was created with a configured trace file count or size
93 limit (see the nloption:--tracefile-size and
94 nloption:--tracefile-count options in man:lttng-enable-channel(1)).
95
96For a given tracing session, LTTng only performs an automatic rotation
97when no other rotation is currently happening.
98
99
100include::common-cmd-footer.txt[]
101
102
103SEE ALSO
104--------
105man:lttng-rotate(1),
106man:lttng-disable-rotation(1),
107man:lttng(1)
This page took 0.027124 seconds and 4 git commands to generate.