* stop checkpointed process
@ 2009-11-27 2:15 Jianwei Liao
[not found] ` <2f0d4790911261815s6ba92aa1w9dce17b0c582bb62-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jianwei Liao @ 2009-11-27 2:15 UTC (permalink / raw)
To: containers-qjLDD68F18O7TbgM5vRIOg
hi all,
I am using ckpt-v18, everything is fine.
i have read some of the code of ckpt, but i was wondering that where does
kernel module to stop the checkpointee? (something related to context?) i
hope you can point me out how to find such stuff.
Can i use SIGSTOPand SIGCONT to do such things?
Thank you very much.
Liao
^ permalink raw reply [flat|nested] 2+ messages in thread[parent not found: <2f0d4790911261815s6ba92aa1w9dce17b0c582bb62-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: stop checkpointed process [not found] ` <2f0d4790911261815s6ba92aa1w9dce17b0c582bb62-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2009-11-29 15:45 ` Serge E. Hallyn 0 siblings, 0 replies; 2+ messages in thread From: Serge E. Hallyn @ 2009-11-29 15:45 UTC (permalink / raw) To: Jianwei Liao; +Cc: containers-qjLDD68F18O7TbgM5vRIOg Quoting Jianwei Liao (liaotoad1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org): > hi all, > I am using ckpt-v18, everything is fine. > i have read some of the code of ckpt, but i was wondering that where does > kernel module to stop the checkpointee? (something related to context?) i > hope you can point me out how to find such stuff. > Can i use SIGSTOPand SIGCONT to do such things? > Thank you very much. > Liao Userspace should do this in advance by using the freezer cgroup. So for instance if you are wanting to checkpoint /usr/bin/myapp, then one way to do it is: (terminal 1) mkdir -p /cgroup mount -t cgroup -o freezer freezer /cgroup mkdir /cgroup/myapp (terminal 2) echo $$ > /cgroup/myapp/tasks /usr/bin/myapp (terminal 1) echo FROZEN > /cgroup/myapp/freezer.state pid=`pidof myapp` checkpoint $pid > myapp.ckpt echo THAWED > /cgroup/myapp/freezer.state If the application hasn't been frozen using the freezer cgroup, then sys_checkpoint() will return -EBUSY. -serge ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-29 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-27 2:15 stop checkpointed process Jianwei Liao
[not found] ` <2f0d4790911261815s6ba92aa1w9dce17b0c582bb62-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-29 15:45 ` Serge E. Hallyn
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox