Comment 49 for bug 98955

Revision history for this message
Sergei Ivanov (svivanov) wrote : Re: [Bug 98955] Re: logd not running

> i cant make the buffer big enough to log it all. my boot process takes
> 23 seconds and the biggest buffer that i can get to work is 975kb
> (999,999 bytes) which will only log 18 seconds.

This is a strange constant. The 32-bit integer overflows near 2Gb.
What is wrong with larger values? Doesn't the program compile,
or doesn't it start?

Do you measure the 18 seconds by the wall clock or by the timestamps
in the log file?

I'm not a great expert in bootlogd, but I thought that the internal buffer
is used until /var is writeable, then it writes directly to the file.

So if a buffer in bootlogd overflows *after* /var is made writeable,
then this is a bug in bootlogd. Otherwise there is no way other than
enlarging the buffer - it has to remember the messages somewhere
until the disk is ready.

> also is there a way to
> log the shutdown messages?

This is hard. You cannot save anything after the filesystems are unmounted.
I've heard of someone who used a video camera to record screen messages.