[Devel] [PATCH 06/16] net: Add a network namespace parameter to struct sock
Denis V. Lunev
den at sw.ru
Thu Sep 20 22:04:59 PDT 2007
Daniel Lezcano wrote:
>> This place is a very tricky, indeed. If we keep the namespace until
>> timewait bucket death - we'll keep the namespace alive at least 5
>> _minutes_ after all process death.
>
> Yes, that's right. And for me that makes totally sense. The namespace
> should not be destroyed until it is referenced somewhere.
If all incoming interfaces are stopped, sure they do, no incoming
packets will be. So, it is completely pointless to keep TW bucket for 5
minutes. This is a resources wastage.
>> If we stop a VE (in terms of OpenVz) and restart it, we'll 100% have an
>> _OLD_ namespace with all buckets shown :( So, in OpenVz we use a number
>> of VE instead of pointer to a VE. Additionally, on VE death we can wipe
>> all TW buckets. VE start stop from outside world looks very much like a
>> computer power on/off.
>
> That makes sense too. But if you wipe out the sockets when stopping the
> VE where is the problem with the restart ?
>
>
classical egg/chicken problem. If TW bucket holds namespace, how to
decide when to destroy it? :(
More information about the Devel
mailing list