lkml.org 
[lkml]   [2004]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Memory image save/restore
Hi!

> I have been trying to implement some sort of save/restore kernel
> memory image for the linux kernel (x86 only right now), without much
> success. Let me explain the situation:
>
> I have a hardware device that I can generate interrupts with. I also
> have a machine with 512M of memory, and I am passing the kernel the
> command line mem=256M. My idea is to generate an interrupt with the
> hardware device, and then inside of the interrupt handler make a copy
> of the entire contents of RAM into the unused upper 256M of memory;
> later on, with another interrupt, I would like to restore that
> previously saved memory image. This way we can go "back in time",
> similar to what software suspend is doing, but without as many
> constraints (i.e. we have a hardware interrupt to work with, we
> reserved the same amount of physical memory to use, etc.). Before I
> went much further, I figured I would ask if anyone on the list has
> tried this, and if there are any reasons why this is not possible.

As swsusp shows, it definitely is possible...

...if you can live with system unresponsive for few seconds while it
does snapshotting.

Creating "bastardized swsusp" would actually be good way to start.
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

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

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