Linux Container Development
 help / color / mirror / Atom feed
From: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: Kapil Arya <kapil-1vnkWVZi4QaVc3sceRu5cw@public.gmane.org>,
	Gene Cooperman <gene-1vnkWVZi4QaVc3sceRu5cw@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ksummit-2010-discuss-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	Linux Containers
	<containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>,
	hch-jcswGhMUV9g@public.gmane.org
Subject: Re: [Ksummit-2010-discuss] checkpoint-restart: naked patch
Date: Thu, 18 Nov 2010 11:06:19 +0100	[thread overview]
Message-ID: <4CE4FA9B.1060104@kernel.org> (raw)
In-Reply-To: <20101117221713.GA27736-52DBMbEzqgQ/wnmkkaCWp/UQ3DHhIser@public.gmane.org>

Hello, Matt.

On 11/17/2010 11:17 PM, Matt Helsley wrote:
>> It may be harder but those will be localized for specific features
>> which would be useful for other purposes too.  With in-kernel CR,
>> you're adding a bunch of intrusive changes which can't be tested or
>> used apart from CR.
> 
> You seem to be arguing "Z is only testable/useful for doing the things Z
> was made for". I couldn't agree more with that. CR is useful for:

I'm saying it's way too narrow scoped and inflexible to be a kernel
feature.  Kernel features should be like the basic tools, you know,
hammers, saws, drills and stuff.  In-kernel CR is more like an over
complicated food processor which usually sits in the top drawer after
first several runs,

> 	Fault-tolerance (typical HPC)
> 	Load-balancing (less-typical HPC)
> 	Debugging (simple [e.g. instead of coredumps] or complex
> 		time-reversible)
> 	Embedded devices that need to deal with persistent low-memory
> 		situations.

which can do all of the above, a lot of which can be achieved in
less messy way than putting the whole thing inside the kernel.

> My personal favorite idea (that hasn't been implemented yet) is an
> application startup cache. I've been wondering if caching bash startup
> after all the shared libraries have been searched, loaded, and linked
> couldn't save a bunch of time spent in shell scripts. Post-link actually
> seems like a checkpoint in application startup which would be generally
> useful too. Of course you'd want to flush [portions of] the cache when
> packages get upgraded/removed or shell PATHs change and the caches
> would have to be per-user.

What does that have anything to do with the kernel?  If you want
post-link cache, implement it in ld.so where it belongs.  That's like
using food processor to mix cement.

> I'm less confident but still curious about caching after running rc
> scripts (less confident because it would depend highly on the content
> of the rc scripts). A scripted boot, for example, might be able to save
> some time if the same rc scripts are run and they don't vary over time.
> That in turn might be useful for carefully-tuned boots on embedded devices.
> 
> That said we don't currently have code for application caching. Yet we
> can't be expected to write tools for every possible use of our API in
> order to show just how true your tautology is.

Continuing the same line of thought.  It _CAN_ be used to do that in a
convoluted way but there are better ways to solve those problems.

> Most of the time, in fact, the fields we output are there only because
> they reflect the 'model' of how things work that the kernel presents to
> userspace. That model also rarely changes (we've never gotten rid of the
> POSIX concept of process groups in one extreme example). Perhaps the 
> closest thing we have to wholly-kernel-internal data structures are the
> signal/sighand structs which echo the way these fields are split from the
> task struct and shared between tasks. Though I'd argue that gets back into
> the 'model' presented to userspace (via fork/clone) anyway...

Yeah, exactly, so just do it inside the established ABI extending
where it makes sense.  No reason to add a whole separate set.

Thanks.

-- 
tejun

  parent reply	other threads:[~2010-11-18 10:06 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.64.1011021530470.12128@takamine.ncl.cs.columbia.edu>
     [not found] ` <4CD08419.5050803@kernel.org>
     [not found]   ` <AANLkTinOg6n3ZA+0gHzw9LouRuUmJ7DJwHtABRy5c=gM@mail.gmail.com>
     [not found]     ` <4CD26948.7050009@kernel.org>
     [not found]       ` <20101104164401.GC10656@sundance.ccs.neu.edu>
     [not found]         ` <4CD3CE29.2010105@kernel.org>
     [not found]           ` <20101106053204.GB12449@count0.beaverton.ibm.com>
     [not found]             ` <20101106204008.GA31077@sundance.ccs.neu.edu>
2010-11-07 21:44               ` [Ksummit-2010-discuss] checkpoint-restart: naked patch Oren Laadan
2010-11-07 23:31                 ` Gene Cooperman
     [not found]               ` <4CD5D99A.8000402@cs.columbia.edu>
     [not found]                 ` <20101107184927.GF31077@sundance.ccs.neu.edu>
     [not found]                   ` <20101107184927.GF31077-Rl5vdzG4YPwx/1z6v04GWfZ8FUJU4vz8@public.gmane.org>
2010-11-07 21:59                     ` Oren Laadan
2010-11-17 11:57                       ` Tejun Heo
2010-11-17 15:39                         ` Serge E. Hallyn
2010-11-17 15:46                           ` Tejun Heo
2010-11-18  9:13                             ` Pavel Emelyanov
     [not found]                               ` <4CE4EE21.6050305-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2010-11-18  9:48                                 ` Tejun Heo
2010-11-18 20:13                                   ` Jose R. Santos
2010-11-19  3:54                                   ` Serge Hallyn
2010-11-18 19:53                             ` Oren Laadan
2010-11-19  4:10                             ` Serge Hallyn
2010-11-19 14:04                               ` Tejun Heo
     [not found]                                 ` <4CE683E1.6010500-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2010-11-19 14:36                                   ` Kirill Korotaev
     [not found]                                     ` <04F4899E-B5C7-4BAF-8F2F-05D507A91408-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2010-11-19 15:33                                       ` Tejun Heo
2010-11-19 16:00                                         ` Alexey Dobriyan
2010-11-19 16:01                                           ` Alexey Dobriyan
2010-11-19 16:10                                             ` Tejun Heo
2010-11-19 16:25                                               ` Alexey Dobriyan
2010-11-19 16:06                                           ` Tejun Heo
2010-11-19 16:16                                             ` Alexey Dobriyan
2010-11-19 16:19                                               ` Tejun Heo
2010-11-19 16:27                                                 ` Alexey Dobriyan
     [not found]                                                   ` <AANLkTin7kd3crS+fTLLea5PhAii7B3dz=n7p7YtQ6d4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-19 16:32                                                     ` Tejun Heo
2010-11-19 16:38                                                       ` Alexey Dobriyan
2010-11-19 16:50                                                         ` Tejun Heo
2010-11-19 16:55                                                           ` Alexey Dobriyan
2010-11-20 17:58                                         ` Oren Laadan
2010-11-20 18:08                                   ` Oren Laadan
2010-11-20 18:11                                   ` Oren Laadan
     [not found]                                     ` <4CE69B8C.6050606-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2010-11-20 18:15                                       ` Oren Laadan
2010-11-20 19:33                                         ` Tejun Heo
2010-11-21  8:18                                           ` Gene Cooperman
2010-11-21  8:21                                             ` Gene Cooperman
2010-11-22 18:02                                               ` Sukadev Bhattiprolu
2010-11-23 17:53                                               ` Oren Laadan
2010-11-24  3:50                                                 ` Kapil Arya
2010-11-25 16:04                                                   ` Oren Laadan
2010-11-29  4:09                                                     ` Gene Cooperman
2010-11-21 22:41                                             ` Grant Likely
2010-11-22 17:34                                             ` Oren Laadan
2010-11-22 17:18                                           ` Oren Laadan
2010-11-20 18:05                                 ` Oren Laadan
2010-11-17 22:17                         ` Matt Helsley
     [not found]                           ` <20101117221713.GA27736-52DBMbEzqgQ/wnmkkaCWp/UQ3DHhIser@public.gmane.org>
2010-11-18 10:06                             ` Tejun Heo [this message]
2010-11-18 20:25                             ` Oren Laadan
     [not found]           ` <AANLkTimDXKsBCxbsEOfgkYV2R8FK=bhFdmx9UQow5hqp@mail.gmail.com>
     [not found]             ` <4CD5DCE3.3000109@cs.columbia.edu>
     [not found]               ` <20101107194222.GG31077@sundance.ccs.neu.edu>
     [not found]                 ` <4CD71A6B.3020905@cs.columbia.edu>
     [not found]                   ` <20101107230516.GJ31077@sundance.ccs.neu.edu>
     [not found]                     ` <4CD774CA.8030004@cs.columbia.edu>
     [not found]                       ` <20101108162630.GN31077@sundance.ccs.neu.edu>
2010-11-08 18:14                         ` Oren Laadan
2010-11-08 18:37                           ` Gene Cooperman
2010-11-08 19:34                             ` Oren Laadan

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=4CE4FA9B.1060104@kernel.org \
    --to=tj-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=gene-1vnkWVZi4QaVc3sceRu5cw@public.gmane.org \
    --cc=hch-jcswGhMUV9g@public.gmane.org \
    --cc=kapil-1vnkWVZi4QaVc3sceRu5cw@public.gmane.org \
    --cc=ksummit-2010-discuss-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=matthltc-r/Jw6+rmf7HQT0dZR+AlfA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox