[PATCH 0/2] generalize {DEFINE|REF}_PROTO_INUSE was Re: [PATCH 0/4] NET : struct proto diet

2007-11-07 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 05, 2007 at 11:43:06PM -0800, David Miller escreveu: > From: Eric Dumazet <[EMAIL PROTECTED]> > Date: Mon, 05 Nov 2007 18:52:32 +0100 > > > This patch series does some cleanup and optimization. > > > > [PATCH 1/4] NET : defines an infrastructure to keep 'inuse' changes in > > an effi

Re: [PATCH 0/4] NET : struct proto diet

2007-11-05 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Mon, 05 Nov 2007 18:52:32 +0100 > This patch series does some cleanup and optimization. > > [PATCH 1/4] NET : defines an infrastructure to keep 'inuse' changes in > an efficent SMP/NUMA way. > [PATCH 2/4] NET : makes ipv4 use the {DEFINE|REF}_PROTO_I

[PATCH 0/4] NET : struct proto diet

2007-11-05 Thread Eric Dumazet
Hi After reading David's machines have NR_CPUS set to 4096, I realized how fat was 'struct proto', since it uses a stats[NR_CPUS] field to keep track of inuse sockets per protocol. With NR_CPUS = 4096, this means we allocate 4096*SMP_CACHE_BYTES bytes per 'struct proto'. As these structures