Docs: lttng-version uses the intransitive form of "broke"
[lttng-tools.git] / doc / man / lttng-enable-rotation.1.txt
CommitLineData
980bb5fd
PP
1lttng-enable-rotation(1)
2========================
3
4
5NAME
6----
7lttng-enable-rotation - Set a tracing session's automatic rotation schedule
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-----------
19The `lttng enable-rotation` command sets an automatic rotation schedule
20for the current tracing session, or for the tracing session named
21'SESSION' if provided. See man:lttng-rotate(1) for more information
22about the concepts of a tracing session _rotation_ and a _trace chunk_.
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
33With both the option:--timer and option:--size options, LTTng checks the
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
39part of the current trace chunk is greater than 'SIZE'. See the
40nloption:--monitor-timer option in man:lttng-enable-channel(1) for more
41information about the monitor timer.
42
43The naming convention of a trace chunk archive which an automatic
44rotation creates is the same as with the manual rotation command,
45man:lttng-rotate(1).
46
47For a given tracing session, you cannot set multiple automatic rotation
48schedules with the option:--timer or the option:--size option.
49
50You can unset an automatic rotation schedule with the
51man:lttng-disable-rotation(1) command.
52
53See <<limitations,LIMITATIONS>> for important limitations regarding
54this command.
55
56
57include::common-cmd-options-head.txt[]
58
59
60Automatic rotation schedule condition
61~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62One of:
63
64option:--size='SIZE'::
65 Set an automatic rotation schedule so that an automatic rotation
66 occurs every time the total size of the flushed part of the current
67 trace chunk is at least 'SIZE' bytes. The `k` (kiB), `M` (MiB), and
68 `G` (GiB) suffixes are supported.
69
70option:--timer='PERIOD'::
71 Set an automatic rotation schedule so that an automatic rotation
72 occurs at least every 'PERIOD' microseconds. The
73 `ms` (milliseconds), `s` (seconds), `m` (minutes), and `h` (hours)
74 suffixes are supported.
75
76
77Target
78~~~~~~
79option:-s 'SESSION', option:--session='SESSION'::
80 Set an automatic rotation schedule for the tracing session named
81 'SESSION' instead of the current tracing session.
82
83
84include::common-cmd-help-options.txt[]
85
86
87[[limitations]]
88LIMITATIONS
89-----------
90The `lttng enable-rotation` command only works when:
91
92* The tracing session is created in normal mode or in network streaming
93 mode (see man:lttng-create(1)).
94
95* No channel was created with a configured trace file count or size
96 limit (see the nloption:--tracefile-size and
97 nloption:--tracefile-count options in man:lttng-enable-channel(1)).
98
99For a given tracing session, LTTng only performs an automatic rotation
100when no other rotation is currently happening.
101
102
103include::common-cmd-footer.txt[]
104
105
106SEE ALSO
107--------
108man:lttng-rotate(1),
109man:lttng-disable-rotation(1),
110man:lttng(1)
This page took 0.02919 seconds and 5 git commands to generate.