lkml.org 
[lkml]   [2006]   [May]   [5]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromAndi Kleen <>
SubjectRe: [PATCH 7/7] uts namespaces: Implement CLONE_NEWUTS flag
DateFri, 5 May 2006 13:02:42 +0200
> But, either the nsproxy is shared between tasks and you need to copy
> youself a new one as soon as any ns changes

That would be the case. But it is only shared between tasks where 
all the name spaces are the same.

> , or it is not shared, and 
> you don't need  that info at all (just make the change in the nsproxy
> immediately)

Don't follow you here.

Basically the goal is to have a minimum number of nsproxies in the system without
having to maintain a global hash table. So instead you assume that name space
changes are infrequent. In the common case of clone without a name space change
you just share the nsproxy of the parent. If there is a name space change of
any kind you get a new one.

This won't get the absolute minimum number of nsproxies, but should be reasonably
good without too much effort.

-Andi

> 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-05 11:08    [from the cache]
©2003-2008