2002-07-09 16:11:44

by jbradford

[permalink] [raw]
Subject: Recoverable RAM Disk

Just wondering - has anyone ever given any thought to the idea of a RAM disk that is not erased on a warm boot?

Obviously this is a bit architechture-specific - I don't think it's easily do-able on i386, but maybe it is other architechtures?

The idea of a recoverable, (even bootable), RAM disk was common on the Amiga, and it would be useful to, E.G. quickly re-boot in to several different kernels.

John.


2002-07-09 16:37:56

by Chris Friesen

[permalink] [raw]
Subject: Re: Recoverable RAM Disk

[email protected] wrote:
>
> Just wondering - has anyone ever given any thought to the idea of a RAM disk that is not erased on a warm boot?
>
> Obviously this is a bit architechture-specific - I don't think it's easily do-able on i386, but maybe it is other architechtures?

We did it for a product using PowerPC on compactPCI. Critical logs are stored
in ram beyond what the kernel uses, and it can be mapped in for processes to use
it.

As long as the card has power, the information remains available, including
resets of the card.

The only tricky bit is that I don't know if a warm boot on a PC wipes ram or
not...

Chris

--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: [email protected]

2002-07-09 17:21:54

by Roy Sigurd Karlsbakk

[permalink] [raw]
Subject: Re: Recoverable RAM Disk

> The only tricky bit is that I don't know if a warm boot on a PC wipes ram
> or not...

Normally it does, but in the old days, you could - in DOS DEBUG or somewhere
set 0040:0072 to a given value and then jmp f000:fff0.

IIRC, the value in 0040:0072 was these:

0x0000: cold reboot
0x1234: warm reboot
0x5678: warm reboot without memory clear

h?pp

roy
--
Roy Sigurd Karlsbakk, Datavaktmester

Computers are like air conditioners.
They stop working when you open Windows.

2002-07-10 11:08:26

by jbradford

[permalink] [raw]
Subject: Re: Recoverable RAM Disk

Looks interesting for saving debug info between re-boots, but I was thinking more of reserving an area at the top of system memory, (say 4 megs), and putting a root filesystem, and some kernel images there.

The theory being that if you haven't got a hard disk, (e.g. nodes of a beowulf cluster), doing a warm boot to change kernels is 'expensive', because you're either booting from a floppy over the LAN.

Alternatively, you could preserve the in-memory filesystem cache between re-boots, (although why anyone should be re-booting that much, I don't know).

> I've recently stumbled about this:
> http://oss.missioncriticallinux.com/projects/mcore/
>
> Maybe that's about what you're looking for.