Date: Wed, 19 Jun 2002 16:12:41 +0200 From: Bernd Walter <ticso@cicely5.cicely.de> To: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Is it possible to store process state and then restore process Message-ID: <20020619141241.GO43253@cicely5.cicely.de> In-Reply-To: <006401c21793$30721750$6d36120a@pm5149> References: <006401c21793$30721750$6d36120a@pm5149>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 19, 2002 at 04:14:05PM +0300, Andrey Simonenko wrote: > Hello FreeBSD developers, > > I have one principal question. > > Suppose there is a process, let this process doesn't have any > childs, open sockets, it has one thread, etc. But this process > can malloc() memory, open local files. Let's take very simple case. > > Is it possible to store process state to the file (i.e. say > somehow the kernel to do this), and then after rebooting restore > from the file this process back to system and continue executing it? > > I understand that it is not very simple, but I want to know if it is > possible. Are there any problem with memory addressetion? > > Some years ago I implemented the same thing under MS-DOS, so > in general I understand the way what it should look like, and I > successfuly stored process state and restored this process in MS-DOS > to continue very long calculations on slow PC (this wasn't my software, > so I could't patch it to store results in temporary file). Of course it is > impossible to compare how I did it for MS-DOS and how it can be > done on FreeBSD. Some programms dump theirself into an obj file after initialization. If you hold global resources such as filehandles, shared memory you should know how they are used to make restoring them easier. The kernel has no support to help you here. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020619141241.GO43253>