Enable/Disable Logging next up previous contents
Next: Binary to Text Conversion Up: Using Klogger at Runtime Previous: Using Klogger at Runtime   Contents


Enable/Disable Logging

Klogger's main control switch -- toggling logging on or off -- is done via the /proc/sys/klogger/enabled file. By writing the text string ``1'' or ``0'' into that file, you can enable or disable logging, respectively.

Logs are saved in binary form into per-CPU files residing under the /tmp directory. These dump files are named /tmp/kernlog.dump.cpuN where N is the CPU number. The dump files might get very big, depending on the rate by which events are logged -- as such, make sure you have adequate space on the filesystem inside which /tmp resides.

Note of caution for SMP users: inter-CPU synchronization is based on the Linux kernel synchronization, and we have not tested its accuracy, nor the drift between CPU clocks. While the assumption that the drift is very small due to the fact that different CPUs on the same machine experience the same operating conditions (temprature/power), the same does not hold for the accuracy of the mechanism resetting all CPU clocks during Linux boot time. This is definitely on our TODO list.


next up previous contents
Next: Binary to Text Conversion Up: Using Klogger at Runtime Previous: Using Klogger at Runtime   Contents
Yoav Etsion 2007-09-09