public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michel Dagenais <michel.dagenais@polymtl.ca>
To: linux-kernel@vger.kernel.org, Martin@m3.polymtl.ca,
	J.Bligh@m3.polymtl.ca (Martin.Bligh@us.ibm.com)
Cc: Tony.P.Lee@nokia.com, kessler@us.ibm.com,
	alan@lxorguk.ukuu.org.uk, Dave Jones <davej@suse.de>,
	karym@opersys.com, lmcmpou@lmc.ericsson.se,
	lmcleve@lmc.ericsson.se
Subject: Re: Event logging vs enhancing printk
Date: 09 Apr 2002 10:21:21 -0400	[thread overview]
Message-ID: <m2it71uf4u.fsf@m3.polymtl.ca> (raw)
In-Reply-To: <87960000.1018307908@flay>


> People want to be able to get better debug information, with more detail
> than is currently possible with printk, hence the Event logging project.

I would like to emphasize that point; logging and tracing is of prime 
importance in several areas:

- Telecom and Security. Logging and auditing is a requirement in Telecom 
  applications. It is for instance one of the important features of the 
  Distributed Security Infrastructure proposed by Ericsson Research and to 
  be presented in a couple of months at the Ottawa Linux Symposium.
  The OSDL "Carrier Grade Linux" is certainly no different.

- Real time systems. A low overhead trace is often the only way to debug
  these systems. Lineo, Monte-Vista, and FSM labs all have logging solutions,
  most based on the Linux Trace Toolkit (www.opersys.com/LTT). It would be 
  relatively easy to merge the best features of these two systems, present 
  on the 2.5 status list, (high volume low overhead of LTT and event 
  templates and filtering of EVLOG).

- Kernel/device drivers debugging.

- Detailed performance analysis. Using the Linux Trace Toolkit, it is possible
  to extract very detailed information like the time spent by a process
  executing, executing on behalf of client x, waiting for file y 
  (read/page fault), waiting for process z... 

The current printk simply does not cut it for these applications. There are
over 80000 printk statements in the kernel, using many different conventions.
A few tens of driver specific tracing facilities (SCSI, ftape, wireless...)
were implemented each with its own mechanism to compile/not the debugging
statements, trigger massive debugging output at runtime...

The EVLOG proposition strikes me as a good balance between solid features,
simplicity, and ease of integration/transition with the current printk.

Here are some of the advantages of more structured logging:

- More consistent activation mechanisms for logging points
  troughout the kernel at configuration/compilation time and at runtime.

- Structured data events for which it is easier to apply filtering, querying,
  analysis and detection tools.

- More compact format, when desired, where data and text descriptions are 
  separated. This facilitates high volume applications (lower logging 
  overhead, smaller files) and also enables customization/i18n of the static 
  text descriptions.

- In its current configuration, klogd rapidly looses events under high volumes.
  The Linux Trace Toolkit with its zero-copy, kernel-daemon shared memory,
  does much better under heavy debugging/tracing output.

  parent reply	other threads:[~2002-04-09 14:05 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-08 23:18 Event logging vs enhancing printk Martin J. Bligh
2002-04-08 22:38 ` Andrew Morton
2002-04-08 23:54   ` Martin J. Bligh
2002-04-08 23:07     ` Andrew Morton
2002-04-09  2:14       ` Martin J. Bligh
2002-04-10  1:23         ` Andrea Arcangeli
2002-04-10  5:28           ` Martin J. Bligh
2002-04-11  0:15             ` Andrea Arcangeli
2002-04-09 14:34     ` Bill Davidsen
2002-04-09 14:50       ` Martin J. Bligh
2002-04-09 13:24 ` Denis Vlasenko
2002-04-09 14:42   ` Martin J. Bligh
2002-04-09 18:17     ` John Alvord
2002-04-09 14:21 ` Michel Dagenais [this message]
2002-04-09 20:49   ` Brian Beattie
2002-04-09 21:16     ` Martin J. Bligh
2002-04-09 22:28       ` Brian Beattie
2002-04-10  0:29         ` Brian Beattie
2002-04-10  1:17         ` Martin J. Bligh
2002-04-10 11:24     ` Denis Vlasenko
2002-04-11 15:11     ` Michel Dagenais
     [not found] <OF7FF94B66.91DD315B-ON88256B95.00811EF0@boulder.ibm.com>
2002-04-10  8:21 ` Zoltan Menyhart
  -- strict thread matches above, loose matches on Subject: below --
2002-04-10 13:08 Michael Holzheu
     [not found] <OF58E93BB4.1862769F-ON85256B97.0047811A@pok.ibm.com>
2002-04-10 14:19 ` sullivan
2002-04-10 15:55 Larry Kessler
2002-04-10 17:13 Francois-Xavier Kowalski
2002-04-10 19:43 Larry Kessler
     [not found] <Pine.LNX.4.33.0204111358000.20722-100000@coffee.psychology.mcmaster.ca>
2002-04-12  9:30 ` Zoltan Menyhart
2002-04-12 12:41   ` Mark Hahn
2002-04-12 14:38     ` Martin J. Bligh
2002-04-12 18:04       ` Karim Yaghmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2it71uf4u.fsf@m3.polymtl.ca \
    --to=michel.dagenais@polymtl.ca \
    --cc=J.Bligh@m3.polymtl.ca \
    --cc=Martin@m3.polymtl.ca \
    --cc=Tony.P.Lee@nokia.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davej@suse.de \
    --cc=karym@opersys.com \
    --cc=kessler@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lmcleve@lmc.ericsson.se \
    --cc=lmcmpou@lmc.ericsson.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox