Re: Flight recorder mode

Mathieu Desnoyers <[email protected]> Tue, 19 Feb 2008 15:15:59 -0500
Newsgroups gmane.linux.kernel.tracing
Message-ID <20080219201559.GA15981@Krystal>
This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--===============1726464999==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=_Krystal-16230-1203452159-0001-2"
Content-Disposition: inline

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_Krystal-16230-1203452159-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Jan Kiszka ([email protected]) wrote:
> Mathieu Desnoyers wrote:
> > * Jan Kiszka ([email protected]) wrote:
> >> Hi,
> >>
> >> I'm trying to understand the flight recorder mode (including the hybrid
> >> one) of LTTng. I originally expected that this mode means:
> >>
> >>  1. Fixed set of buffers, older data will be overwritten on wrap-around
> >>  2. Limited size of trace files
> >>
> >> While 1. seems to be true, 2. is neither what I observe in the output
> >> directory (flight-cpu_* get larger and larger) nor what I can find in
> >> lttd's code. Intentionally?
> >>
> >=20
> > Yep, see the other lttctl options and the quickstart guide to see how to
> > spawn one lttd for the "normal" channels and a different one for the
> > flight recorder channels (should be done after you stop tracing).
>=20
> Sorry, /me is too blind: The quickstart guide is not mentioning flight
> recorder or hybrid mode, and also lttctl --help gives me no hint what
> pattern to apply for achieving limited trace file sizes.
>=20

Hrm, or do I recall doing documentaion I haven't done, let's see :)

Ah, it's in a mailing list, not in the documentation yet :

http://osdir.com/ml/linux.kernel.tracing/2006-09/msg00015.html

It explains how to use the hybrid mode.  I'll cut'n'paste it at the end
of the quickstart guide.

There is not trace file size limit you can give to lttctl nor lttd. You
can only specify the buffer size. The idea is that you can decide at
which moment you want to take you flight recorder "snapshot" by running
lttctl -f at the correct moment.

Mathieu

> Jan
>=20



--=20
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

--=_Krystal-16230-1203452159-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHuzj/PyWo/juummgRAnRSAJ0a2/vVh048JB5jPTv1kbaRWMh7LgCfR1rW
fAulm//bdfK8fp/reAMz+og=
=S6XD
-----END PGP SIGNATURE-----

--=_Krystal-16230-1203452159-0001-2--

--===============1726464999==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ltt-dev mailing list
[email protected]
http://listserv.shafik.org/mailman/listinfo/ltt-dev

--===============1726464999==--