From owner-freebsd-questions Thu Jun 20 2:29:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id EF0FE37B406 for ; Thu, 20 Jun 2002 02:29:15 -0700 (PDT) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g5K9NmSc064392 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 20 Jun 2002 11:23:52 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g5K9NjFJ018565 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 20 Jun 2002 11:23:45 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g5K9Nipo018564; Thu, 20 Jun 2002 11:23:44 +0200 (CEST)?g (envelope-from ticso) Date: Thu, 20 Jun 2002 11:23:43 +0200 From: Bernd Walter To: Andrey Simonenko Cc: ticso@cicely.de, freebsd-questions@freebsd.org Subject: Re: Is it possible to store process state and then restore process Message-ID: <20020620092343.GU43253@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <006401c21793$30721750$6d36120a@pm5149> <20020619141241.GO43253@cicely5.cicely.de.lucky.freebsd.hackers> <007501c21839$3caabc60$6d36120a@pm5149> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007501c21839$3caabc60$6d36120a@pm5149> User-Agent: Mutt/1.3.99i X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jun 20, 2002 at 12:02:42PM +0300, Andrey Simonenko wrote: > > ----- Original Message ----- > From: "Bernd Walter" > Newsgroups: lucky.freebsd.hackers > Sent: Wednesday, June 19, 2002 5:16 PM > Subject: Re: Is it possible to store process state and then restore process > > > > 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. > > I meaned _potential_ ability of FreeBSD kernel to dump a process > state (image) and when it is needed to restore process image back to > the system and restored process should continue its executing. > I didn't mean that application's object files should be relinked > with some special library for checkpointing and restoring or > an application should be designed for this (any modifications to > existing application code). > > Of course it is clear for me that parent/childs relations can't > be restored, as well as TCP connections, shared file descriptors, etc. But that's the main problem: You almost ever have shared filedescriptors (stdin, ...). Such a mechanism wouldn't work without the application support unless you build the complete support into the kernel. You could dump core and convert the dump into an object format. Nevertheless you have to know your application to do it in a usefull way. -- 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-questions" in the body of the message