Re: [PATCH 4/9] network namespaces: socket hashes

2006-09-21 Thread Daniel Lezcano
Andrey Savochkin wrote: The main reason is that socket hash tables should be large enough to work efficiently, but it isn't good to waste a lot of memory for each namespace. Namespaces should be cheap enough, to allow to have hundreds of them. This reason of memory efficiency, of course, has a p

Re: [PATCH 4/9] network namespaces: socket hashes

2006-09-20 Thread Andrey Savochkin
Hi, On Mon, Sep 18, 2006 at 05:12:49PM +0200, Daniel Lezcano wrote: > Andrey Savochkin wrote: > > Socket hash lookups are made within namespace. > > Hash tables are common for all namespaces, with > > additional permutation of indexes. > > Hi Andrey, > > why is the hash table common and not inst

Re: [PATCH 4/9] network namespaces: socket hashes

2006-09-18 Thread Daniel Lezcano
Andrey Savochkin wrote: Socket hash lookups are made within namespace. Hash tables are common for all namespaces, with additional permutation of indexes. Hi Andrey, why is the hash table common and not instanciated multiple times for each namespace like the routes ? - To unsubscribe from th

[PATCH 4/9] network namespaces: socket hashes

2006-08-16 Thread Andrey Savochkin
Socket hash lookups are made within namespace. Hash tables are common for all namespaces, with additional permutation of indexes. Signed-off-by: Andrey Savochkin <[EMAIL PROTECTED]> --- include/linux/ipv6.h |3 ++- include/net/inet6_hashtables.h |6 -- include/net/inet_h