All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Dave Hansen <dave-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Cc: containers <containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>,
	Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org>,
	Nathan Lynch <nathanl-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>,
	Alexey Dobriyan
	<adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
Subject: Re: thoughts on checkpointing /proc/mounts
Date: Mon, 2 Mar 2009 13:43:18 -0600	[thread overview]
Message-ID: <20090302194318.GA15043@us.ibm.com> (raw)
In-Reply-To: <1236019719.26788.505.camel@nimitz>

Quoting Dave Hansen (dave-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org):
> Christoph's suggestion that we go add f_ops individually is a really
> good way to get people thinking about individual cases that we have to
> deal with.
> 
> Can we checkpoint an *open* /proc/mounts?  I don't think we want to.  It
> could get really nasty really fast.  But, what if the f_pos is 0?  That
> makes it a lot easier.
> 
> If the "may checkpoint" flag is per-container (as Alexey has said) and
> one-way (as Ingo has said), does a single 'cat /proc/mounts' 5 days ago
> keep a container from being checkpointed today?
> 
> I just don't think the container-wide flag works if it is one way.
> 
> I think making it per-process or per-resource (so it can be more easily
> tracked at fork()/clone()/exec()) is the only way to go.  It makes it so
> simple since only the 'cat /proc/mounts' process becomes
> uncheckpointable.  Once it exits, we are OK and can checkpoint again.
> That all seems right to me. 
> 
> -- Dave

Well one way to look at it:

the files_struct may_checkpoint is the short-term big stick to put
pressure on us to fix things that are fixable.

the per-file ->checkpoint() will (I guess) always be able to return
an error.  So for now an open /proc/mounts fd will irreversibly make
the process non-checkpointable.  But eventually the files_struct
may_checkpoint flag will go away, and we'll just let each fd decide
at checkpoint time whether it's ok to checkpoint.

-serge

      reply	other threads:[~2009-03-02 19:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-02 18:48 thoughts on checkpointing /proc/mounts Dave Hansen
2009-03-02 19:43 ` Serge E. Hallyn [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=20090302194318.GA15043@us.ibm.com \
    --to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=adobriyan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=dave-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
    --cc=hch-jcswGhMUV9g@public.gmane.org \
    --cc=mingo-X9Un+BFzKDI@public.gmane.org \
    --cc=nathanl-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.