From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,acf0b72f20f226d5,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 1051a8,acf0b72f20f226d5,start X-Google-Attributes: gid1051a8,public X-Google-Thread: 10f9b1,acf0b72f20f226d5,start X-Google-Attributes: gid10f9b1,public X-Google-ArrivalTime: 1989-11-06 20:47:10 PST Path: gmdzi!unido!mcsun!uunet!samsung!brutus.cs.uiuc.edu!wuarchive!udel!gatech!utkcs2!alphard!battle From: battle@alphard.cs.utk.edu (David Battle) Newsgroups: comp.unix.wizards,comp.sys.mips,comp.sys.dec Subject: "Check pointing" on BSD Unix (or Ultrix) Summary: Is it possible to save a "process" in a file? Keywords: gcore checkpoint dbx Message-ID: <1326@utkcs2.cs.utk.edu> Date: 6 Nov 89 19:36:41 GMT Sender: news@utkcs2.cs.utk.edu Reply-To: battle@alphard.cs.utk.edu (David Battle) Followup-To: comp.unix.wizards Organization: Oak Ridge National Labs, Environmental Sciences Division Xref: gmdzi comp.unix.wizards:16499 comp.sys.mips:176 comp.sys.dec:1545 Posted: Mon Nov 6 20:36:41 1989 Does anyone out there know of any way to "check point" a process under BSD unix? In particular I am interested in a way to do it on a Ultrix VAX and possibly on a DECStation 3100. What I would like to be able to do would be to stop a running process, save it's core image to a file (similar to what gcore(1) does), kill the original process, and then later (like, say, after rebooting) restart the process from the saved core image. I am perfectly willing to write a program to do this, I don't expect utilities to already to exist, I'm just looking for pointers. I had though ptrace(2) might could be used, although it would be slow since you must make a system call for every 4 bytes you read from the process's address space. However, I haven't been able to ptrace anything other than a child of the calling process (ie, the process calling ptrace). Things that would help would be: source to gcore(1), source to dbx, or (obviously) source for a utility which does exactly what I am wanting. (Or, just tell me how to do it, and I'll take care of the details. :-) Pointers to commercial products would be helpful too, especially if they are available for DEC/Ultrix (including DECStations) machines. David L. Battle battle@battle.esd.ornl.gov battle@utkcs2.cs.utk.edu