Files
linux/include/net
Eric Dumazet 4b9d9be839 inetpeer: remove unused list
Andi Kleen and Tim Chen reported huge contention on inetpeer
unused_peers.lock, on memcached workload on a 40 core machine, with
disabled route cache.

It appears we constantly flip peers refcnt between 0 and 1 values, and
we must insert/remove peers from unused_peers.list, holding a contended
spinlock.

Remove this list completely and perform a garbage collection on-the-fly,
at lookup time, using the expired nodes we met during the tree
traversal.

This removes a lot of code, makes locking more standard, and obsoletes
two sysctls (inet_peer_gc_mintime and inet_peer_gc_maxtime). This also
removes two pointers in inet_peer structure.

There is still a false sharing effect because refcnt is in first cache
line of object [were the links and keys used by lookups are located], we
might move it at the end of inet_peer structure to let this first cache
line mostly read by cpus.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Andi Kleen <andi@firstfloor.org>
CC: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-06-08 17:05:30 -07:00
..
2011-05-25 08:46:38 -05:00
2011-06-01 21:15:38 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-06-01 15:12:28 -04:00
2011-05-05 11:10:14 -07:00
2010-12-31 10:47:46 -08:00
2010-06-03 03:21:52 -07:00
2011-05-24 13:50:52 -04:00
2010-10-27 11:37:32 -07:00
2011-03-31 11:26:23 -03:00
2011-06-08 17:05:30 -07:00
2010-10-25 13:09:45 -07:00
2011-06-08 17:05:30 -07:00
2010-10-27 11:37:32 -07:00
2011-05-19 16:21:22 -04:00
2011-03-31 11:26:23 -03:00
2009-12-26 20:46:28 -08:00
2010-06-03 03:21:52 -07:00
2011-05-17 14:16:58 -04:00
2011-03-31 11:26:23 -03:00
2011-01-24 15:32:47 -08:00
2010-11-24 11:16:43 -08:00
2011-05-19 16:21:22 -04:00
2011-03-01 12:35:03 -08:00
2011-03-01 12:35:03 -08:00
2011-03-31 11:26:23 -03:00
2010-11-28 11:12:20 -08:00