From: Michael Neumann Date: 2004-11-24T19:57:36+09:00 Subject: Re: [Ann] Checkpointing Ruby applications (DragonFlyBSD only) Lothar Scholz wrote: > Hello Michael, > > MN> Checkpoint.checkpoint('dump') do > MN> # setup sockets on resume > MN> $conn = TCPServer.open('localhost', 9999) > MN> end > > MN> If you resume from "dump" (type 'checkpt -r dump' on command line, or > MN> 'ruby -r checkpoint -e 'Checkpoint.resume("dump")'), the block will be > MN> executed. > > Did you any measurements how much time is saved for startup of a > complexer ruby program with lots of requires ? Something like > FreeRide would be nice. I don't have BSD installed so i can't do it myself. Not yet. I never had timing problems with lots of requires... If I can compile freeride (FX...) easily I'll report my results. > Also why isn't it possible to directly run the checkpoint file from > the shell ? It is possible: checkpt -r checkpoint-file Well, it's in reality a core-dump (or so I'm told), and it has to be sent the CKPTEXIT signal, so that it can perform some setup-tasks... and it will return from the sys_checkpoint syscall with a given value. Not sure how this all could be done easily with a directly executable file, without modifying the core-dump to much. Regards, Michael