From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: Michael Snyder <msnyder@vmware.com>,
Marc Khouzam <marc.khouzam@ericsson.com>,
"'Mathew Yeates'" <mat.yeates@gmail.com>
Subject: Re: preserving checkpoints across sessions
Date: Tue, 27 Jul 2010 17:33:00 -0000 [thread overview]
Message-ID: <201007271833.08136.pedro@codesourcery.com> (raw)
In-Reply-To: <4C4F13B3.1040909@vmware.com>
On Tuesday 27 July 2010 18:13:23, Michael Snyder wrote:
> Marc Khouzam wrote:
> >> -----Original Message-----
> >> From: gdb-owner@sourceware.org
> >> [mailto:gdb-owner@sourceware.org] On Behalf Of Mathew Yeates
> >> Sent: Thursday, July 22, 2010 10:06 PM
> >> To: gdb@sourceware.org
> >> Subject: preserving checkpoints across sessions
> >>
> >> I looked at the checkpoint code and I "sort of" see how it could be
> >> done but I'm no gdb guru.
> >> Somebody add this! It would be a great feature. You could add
> >> checkpoints throughout your executable and be able to start a gdb
> >> session and go directly to a desired location.
> >
> > I also think this would be a nice feature.
> > In fact, I thought that is how checkpoints worked already :-O
> > I was planning on adding this support in Eclipse. I guess
> > I'll have to wait for it to be supported in GDB first.
>
> I frankly don't see any way to implement it.
> I'm open to suggestions.
>
I don't see a way with the forks based implementation, but
it may be interesting to try replacing it by a
backend based on something this:
<https://ftg.lbl.gov/CheckpointRestart/CheckpointRestart.shtml>
This might help target record too.
From the FAQ, linked above:
How is checkpoint/restart different than SIGSTOP/SIGCONT?
Putting a process to sleep (via the SIGSTOP signal) implies
stopping its execution. Taking a checkpoint writes a snapshot
of a process to disk: the process may either be allowed to
continue running after the checkpoint is complete, or you can
kill the process to release all of its resources .
With sleep, a process's resources are not all fully
released (such as virtual memory, network connections,
process id, etc.). Checkpointing then killing a process fully
releases all system resources.
Restarts from checkpoint files can be used across machine
reboots, and/or even on different machines than the one that
the checkpoint was taken on. This is not true for SIGCONT.
How is BLCR different than "user-level" checkpointing libraries
like Condor, etc.?
BLCR performs checkpointing and restarting inside the linux
kernel. While this makes it less portable than solutions that
use user-level libraries, it also means that it has full
access to all kernel resources, and can thus restore
resources (like process IDs) that user-level libraries
cannot. This also allows BLCR to checkpoint/restart groups of
processes (such as shell scripts and their subprocesses),
together with the pipes that connect them.
--
Pedro Alves
prev parent reply other threads:[~2010-07-27 17:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-23 2:06 Mathew Yeates
2010-07-27 12:59 ` Marc Khouzam
2010-07-27 17:13 ` Michael Snyder
2010-07-27 17:33 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201007271833.08136.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=marc.khouzam@ericsson.com \
--cc=mat.yeates@gmail.com \
--cc=msnyder@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox