[lkml]   [2006]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectsysctls inside containers
Trimming the cc list down, because the scope has narrowed

On Mon, 2006-02-27 at 14:14 -0700, Eric W. Biederman wrote:
> So it looks like a good start. There are a lot of details yet to be filled
> in, proc, sysctl, cleanup on namespace release. (We can still provide
> the create destroy methods even if we don't hook the up).

Well, I at least got to the point of seeing how the sysctls interact
when I tried to containerize them. Eric, I think the idea of the sysv
code being nicely and completely isolated is pretty much gone, due to
their connection to sysctls. I think I'll go back and just isolate the
"struct ipc_ids" portion. We can do the accounting bits later.

The patches I have will isolate the IDs, but I'm not sure how much sense
that makes without doing the things like the shm_tot variable. Does
anybody think we need to go after sysctls first, perhaps? Or, is this a
problem graph with cycles in it? :)

I don't see an immediately clear solution on how to containerize sysctls
properly. The entire construct seems to be built around getting data
from in and out of global variables and into /proc files.

We obviously want to be rid of many of these global variables. So, does
it make sense to introduce different classes of sysctls, at least
internally? There are probably just two types: global, writable only
from the root container and container-private. Does it make sense to
have _both_? Perhaps a sysadmin

Eric, can you think of how you would represent these in the hierarchical
container model? How would they work?

On another note, after messing with putting data in the init_task for
these things, I'm a little more convinced that we aren't going to want
to clutter up the task_struct with all kinds of containerized resources,
_plus_ make all of the interfaces to share or unshare each of those.
That global 'struct container' is looking a bit more attractive.

-- Dave

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-03-04 04:22    [W:0.088 / U:1.300 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site