From owner-freebsd-hackers Wed Jun 19 6:23:48 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from relay1.ntu-kpi.kiev.ua (www.ntu-kpi.kiev.ua [212.111.192.161]) by hub.freebsd.org (Postfix) with ESMTP id CD49537B410 for ; Wed, 19 Jun 2002 06:23:21 -0700 (PDT) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id F423219DEA for ; Wed, 19 Jun 2002 16:23:12 +0300 (EEST) Received: from pm5149 (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with SMTP id g5JDQYw54464 for ; Wed, 19 Jun 2002 16:26:34 +0300 (EEST) Message-ID: <006401c21793$30721750$6d36120a@pm5149> From: "Andrey Simonenko" To: Subject: Is it possible to store process state and then restore process Date: Wed, 19 Jun 2002 16:14:05 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message