将整个过程状态存储在磁盘上并在以后还原? (在Linux/Unix上) [英] Storing entire process state on disk and restoring it later? (On Linux/Unix)

查看:103
本文介绍了将整个过程状态存储在磁盘上并在以后还原? (在Linux/Unix上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道:是否可以使用系统调用,库,内核模块或命令行工具将正在运行的程序的 complete 状态存储在磁盘上?

I would like to know: Is there a system call, library, kernel module or command line tool I can use to store the complete state of a running program on the disk?

也就是:我想将当前正在使用的进程的内存,页面布局,堆栈,寄存器,线程和文件描述符完全转储到硬盘驱动器上的文件,并能够稍后无缝地将其还原,就像模拟器"savestate"或虚拟机快照".

That is: I would like to completely dump the memory, page layout, stack, registers, threads and file descriptors a process is currently using to a file on the hard drive and be able to restore it later seamlessly, just like an emulator "savestate" or a Virtual Machine "snapshot".

如果可能的话,我还希望有多个程序状态的备份副本",所以如果程序由于某种原因死了,我可以恢复到上一个​​执行点.

I would also like, if possible, to have multiple "backup copies" of the program state, so I can revert to a previous execution point if the program dies for some reason.

这可能吗?

推荐答案

类似于?您还可以检出维基百科上的检查点页面.

Something like this? You can also check out the checkpointing page on wikipedia.

这篇关于将整个过程状态存储在磁盘上并在以后还原? (在Linux/Unix上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆