Hi, I have done some experiment for this topic, to checkpoint a X windows application And restart a different host which may have different X environment. The X server is not started with dmtcp_launch.
An X application seems to keep some x windows related resource when they Open a windows. Our idea is to dlclose all X window related library. And dlopen them after restart. But still, we get a coredump at restart when trying to turn on GUI. When turn on gui, the X¹s shared library will have some mmap file in memory, Like fontconfig, locale-cache,gconv-modules. These resource keep in memory even we dlclose all GUI related shared library. I am not sure if these resource have something to do with the coredump. More research is needed. Thanks. Nausca. On 2016/4/23 06:25, "Rohan Garg" <rohg...@ccs.neu.edu> wrote: >DMTCP doesn't support checkpointing of GUI-based applications by default. >Please see >https://urldefense.proofpoint.com/v2/url?u=http-3A__dmtcp.sourceforge.net_ >FAQ.html-23xwindowsSupport&d=CwICAg&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s3GZ >-_haXqY&r=yTrYtXirB43TLybS8rmjdSEHLuNfd5w_za3LlC3F5ag&m=ijFSoBXjS_JFEBtfix >206J5QSSlXIJgV7bJUPF0kXlU&s=LWGcCeMgoUHwm2YYrLZ1q1nRhMZH_dZ6GXXCuxcXb3s&e= > for >a workaround. > >You can also try starting your application under XPRA server, which is >supported. >Example: > > # Run the xpra server and an instance of the dbus server under DMTCP > $ dmtcp_launch /usr/bin/dbus-launch /usr/bin/xpra --no-daemon --no-mdns >--no-pulseaudio start :100 --start-child=xclock > > # Run the following command from a separate terminal to connect with >your application > $ xpra attach :100 > > # Detach from xpra server before checkpointing; re-attach after >checkpointing if needed > $ dmtcp_command --checkpoint > > # Try restarting after killing the xpra session > $ ./dmtcp_restart_script.sh > > >On Fri, Apr 22, 2016 at 10:11:06PM +0000, Ashutosh Varma wrote: >> If an application needs DISPLAY to launch some GUI, it seems that >>DISPLAY env from the shell from which dmtcp_launch is invoked is not >>passed to the application. >> >> For e.g.: >> >> dmtcp_launch xclock >> >> fails with error: >> >> Error: Can't open display: >> >> While xclock directly works on the shell using DISPLAY env set. >> >> Am I missing something here? Docs don't say anything special needs to >>be done. >> >> -Ash >> > >> >>------------------------------------------------------------------------- >>----- >> Find and fix application performance issues faster with Applications >>Manager >> Applications Manager provides deep performance insights into multiple >>tiers of >> your business applications. It resolves application problems quickly and >> reduces your MTTR. Get your free trial! >> >>https://urldefense.proofpoint.com/v2/url?u=https-3A__ad.doubleclick.net_d >>dm_clk_302982198-3B130105516-3Bz&d=CwICAg&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7 >>kl3s3GZ-_haXqY&r=yTrYtXirB43TLybS8rmjdSEHLuNfd5w_za3LlC3F5ag&m=ijFSoBXjS_ >>JFEBtfix206J5QSSlXIJgV7bJUPF0kXlU&s=U74YFAskV53y75PNlVNGtdnkWw9FjYcMMP_Bw >>GWIdhQ&e= > >> _______________________________________________ >> Dmtcp-forum mailing list >> Dmtcp-forum@lists.sourceforge.net >> >>https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.ne >>t_lists_listinfo_dmtcp-2Dforum&d=CwICAg&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl >>3s3GZ-_haXqY&r=yTrYtXirB43TLybS8rmjdSEHLuNfd5w_za3LlC3F5ag&m=ijFSoBXjS_JF >>EBtfix206J5QSSlXIJgV7bJUPF0kXlU&s=aEd1f9JPeD6loqgiHGlJkx-tbWrnu9ZXpo771hU >>SEeI&e= > > >-------------------------------------------------------------------------- >---- >Find and fix application performance issues faster with Applications >Manager >Applications Manager provides deep performance insights into multiple >tiers of >your business applications. It resolves application problems quickly and >reduces your MTTR. Get your free trial! >https://urldefense.proofpoint.com/v2/url?u=https-3A__ad.doubleclick.net_dd >m_clk_302982198-3B130105516-3Bz&d=CwICAg&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl >3s3GZ-_haXqY&r=yTrYtXirB43TLybS8rmjdSEHLuNfd5w_za3LlC3F5ag&m=ijFSoBXjS_JFE >Btfix206J5QSSlXIJgV7bJUPF0kXlU&s=U74YFAskV53y75PNlVNGtdnkWw9FjYcMMP_BwGWId >hQ&e= >_______________________________________________ >Dmtcp-forum mailing list >Dmtcp-forum@lists.sourceforge.net >https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net >_lists_listinfo_dmtcp-2Dforum&d=CwICAg&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s >3GZ-_haXqY&r=yTrYtXirB43TLybS8rmjdSEHLuNfd5w_za3LlC3F5ag&m=ijFSoBXjS_JFEBt >fix206J5QSSlXIJgV7bJUPF0kXlU&s=aEd1f9JPeD6loqgiHGlJkx-tbWrnu9ZXpo771hUSEeI >&e= ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Dmtcp-forum mailing list Dmtcp-forum@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dmtcp-forum