On 12/22/05, David S. Miller <[EMAIL PROTECTED]> wrote:
> From: Eric Dumazet <[EMAIL PROTECTED]>
> Date: Sat, 17 Dec 2005 11:55:06 +0100
>
> > This patch makes sure a 'struct proto_ops' can be declared as const, so that
> > all cpus can share all parts of it without false sharing.
> ...
> > This s
From: Eric Dumazet <[EMAIL PROTECTED]>
Date: Sat, 17 Dec 2005 11:55:06 +0100
> This patch makes sure a 'struct proto_ops' can be declared as const, so that
> all cpus can share all parts of it without false sharing.
...
> This should reduce the possibility of false sharing on SMP, and speedup so
I noticed that some of 'struct proto_ops' used in the kernel may share a cache
line used by locks or other heavily modified data. (default linker alignement
is 32 bytes, and L1_CACHE_LINE is 64 or 128 at least)
This patch makes sure a 'struct proto_ops' can be declared as const, so that
all cp