Hi Guosheng,
If I understand correctly, you want to use only MTCP (single-process)
and not the more general DMTCP. If that is so, the easiest way to see
how to use it will be to do:
cd mtcp
make check
[ When the program starts, type anything followed by <return>.
As you continue to interact with the program, you will see it
checkpoint, and automatically restart. ]
You can read the 'check' target of mtcp/Makefile to see how it works.
Essentially, assuming libmtcp.so is in the current directory, it's:
# Compile
env LD_LIBRARY_PATH=. ${CC} $(MTCP_CFLAGS) -o testmtcp testmtcp.o
-Wl,--export-dynamic libmtcp.so
# Run (will checkpoint itself at intervals; Read testmtcp.c)
env LD_LIBRARY_PATH=. ./testmtcp
# Restart it this way.
./mtcp_restart testmtcp.mtcp
Best,
- Gene
On Wed, Oct 30, 2013 at 05:57:40AM +0000, 高国胜 wrote:
> Hi,
> When restart the program from a checkpoint file,
> the mtcp_restart routine directly reads the mtcp.so image into
> Memory from checkpoint file. And then call mtcp_restore_start to restore
> everything.
> My issue: is it necessary to save mtcp.so image when create a checkpoint file?
> Can we call mtcp_restore_start directly from mtcp.so lib like
> dmtcp_checkpoint?
>
> Best regards!
> ---------------------------------------------
> guosheng_gao 高国胜
> Realsil Microelectronics Inc.
> Tel: +86-512-6258-8966 ext.6617
> E-Mail: [email protected]<mailto:[email protected]>
> ---------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> Dmtcp-forum mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dmtcp-forum
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Dmtcp-forum mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum