Self-Fixing?

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Self-Fixing?

Post by piranha »

If this idea is out already, tell me. It probably is.

During a crash, is it possible for an OS to save the state of the system (everything) and restart, but when it boots, analyze the saved state and then try to fix the problem? Or at least inform the user with readable data?

Let me know your thoughts.....

JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post by frank »

Yeah I guess that would be possible. It really depends on the severity of the error and the kernel type really. For example in a microkernel if an error occurs in a module you can just restart the module (I think they are called modules.) I would hope that all of the critical parts of the kernel would be directly restartable. Also if you have a BSOD you could store all of the information in computer readable format and then offer a more user readable format the next time the computer reboots, possibly consulting an online database in the process.
User avatar
bluecode
Member
Member
Posts: 202
Joined: Wed Nov 17, 2004 12:00 am
Location: Germany
Contact:

Post by bluecode »

And how exactly are you going to save the state on the disk? Without that fluffy disk/filesystem/vfs driver that crashed 2 nanoseconds ago? ;-)
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

Well, if it's possible....

and it could try to restart all the drivers...
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post by frank »

bluecode wrote:And how exactly are you going to save the state on the disk? Without that fluffy disk/filesystem/vfs driver that crashed 2 nanoseconds ago? ;-)
You could save to data to a location in memory and hope that on a restart the information will still be there. Or maybe have a reserved location on the disk assuming the disk driver didn't crash.
User avatar
binutils
Member
Member
Posts: 214
Joined: Thu Apr 05, 2007 6:07 am

Post by binutils »

earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post by earlz »

Actually, most computers keep power to RAM... OpenBSD for example, willl use the consistency of RAM to store a last-boot type dmesg. (iirc)

But yea... Ram is kept alive until you unplug your PC really, though I wouldn't rely on it for anything mission-critical or anything, but for somethign like you are talking, it should suffice...
Post Reply