lkml.org 
[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Oops assist...

Alan Cox wrote:
> Even more ideal would be to dump the oops to somewhere non volatile over
> a reboot. I'm not sure there are good candidates for this on a PC.

What about the swap file?
i.e. the Oops is dumped to the first (after the header) sector of the
swap file. The computer is restarted automatically. I don't
think that it a good idea to continue after an Oops:
if you kill a kernel thread, then you have memory corruptions,
lost spinlocks, lost semaphores: the computer will crash in a few
seconds anyway.

sys_swapoff() clears the first data sector,
sys_swapon() checks if the swap partition contains a oops, and if there
is an oops it transfers the oops into the system log, and then
clears the first sector.

AFAIK, this is would similar to the NT implemenation: if you have
no swap file, then the system cannot dump BSOD's.


Regards,
Manfred


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.088 / U:6.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site