Re: [PATCH] NET : tcp_memory_pressure and tcp_socket are__read_mostly candidates

2007-03-27 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Tue, 27 Mar 2007 15:25:13 +0200 > > tcp_memory_pressure and tcp_socket currently share a cache line with > tcp_memory_allocated, tcp_sockets_allocated. > (Very hot cache line) > It makes sense to declare these variables as __read_mostly, to avoid fals

[PATCH] NET : tcp_memory_pressure and tcp_socket are__read_mostly candidates

2007-03-27 Thread Eric Dumazet
tcp_memory_pressure and tcp_socket currently share a cache line with tcp_memory_allocated, tcp_sockets_allocated. (Very hot cache line) It makes sense to declare these variables as __read_mostly, to avoid false sharing on SMP. 8081d9c0 B tcp_orphan_count 8081d9c4 B tcp_memory_al