FS 'namespace' [message #16858] |
Thu, 07 December 2006 19:47 |
Herbert Poetzl
Messages: 239 Registered: February 2006
|
Senior Member |
|
|
just a question: why do we keep the fs (struct_fs)
outside of nsproxy?
TIA,
Herbert
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
|
|
|
|
Re: FS 'namespace' [message #16862 is a reply to message #16858] |
Fri, 08 December 2006 17:19 |
serue
Messages: 750 Registered: February 2006
|
Senior Member |
|
|
Quoting Herbert Poetzl (herbert@13thfloor.at):
> On Fri, Dec 08, 2006 at 08:40:59AM -0600, Serge E. Hallyn wrote:
> > Quoting Herbert Poetzl (herbert@13thfloor.at):
> > >
> > > just a question: why do we keep the fs (struct_fs)
> > > outside of nsproxy?
> >
> > Good question. So we have a mounts namespace, and you
> > would consider the per-process fs root to be an fs
> > namespace? Practically, it would mean that chroot
> > and pivot_mount would create a new nsproxy, but i guess
> > that's not a real problem.
> >
> > It might force us to stop our current lazy checks for
> > 'current->nsproxy==&init_nsproxy', since the pivot_mount
> > in early boot would make that not true.
>
> well, IMHO those are broken anyway, I can imagine
Yeah I wasn't defending them by calling them lazy :)
> a number of applications using private namespaces
> (the old ones) without running in 'containers'
Do you have a patch to move the fs_struct into nsproxy? I'd be
interested in running some benchmarks with and without such a
patch to see the effect of dereferencing the nsproxy so frequently.
-serge
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
|
|
|
Re: FS 'namespace' [message #16874 is a reply to message #16861] |
Fri, 08 December 2006 16:41 |
Herbert Poetzl
Messages: 239 Registered: February 2006
|
Senior Member |
|
|
On Fri, Dec 08, 2006 at 08:40:59AM -0600, Serge E. Hallyn wrote:
> Quoting Herbert Poetzl (herbert@13thfloor.at):
> >
> > just a question: why do we keep the fs (struct_fs)
> > outside of nsproxy?
>
> Good question. So we have a mounts namespace, and you
> would consider the per-process fs root to be an fs
> namespace? Practically, it would mean that chroot
> and pivot_mount would create a new nsproxy, but i guess
> that's not a real problem.
>
> It might force us to stop our current lazy checks for
> 'current->nsproxy==&init_nsproxy', since the pivot_mount
> in early boot would make that not true.
well, IMHO those are broken anyway, I can imagine
a number of applications using private namespaces
(the old ones) without running in 'containers'
best,
Herbert
> -serge
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
|
|
|