Files
twx-linux/include/linux
Eric Dumazet 3f4bb1f419 [PATCH] struct dentry: place d_hash close to d_parent and d_name to speedup lookups
dentry cache uses sophisticated RCU technology (and prefetching if
available) but touches 2 cache lines per dentry during hlist lookup.

This patch moves d_hash in the same cache line than d_parent and d_name
fields so that :

1) One cache line is needed instead of two.

2) the hlist_for_each_rcu() prefetching has a chance to bring all the
   needed data in advance, not only the part that includes d_hash.next.

I also changed one old comment that was wrong for 64bits.

A further optimisation would be to separate dentry in two parts, one that
is mostly read, and one writen (d_count/d_lock) to avoid false sharing on
SMP/NUMA but this would need different field placement depending on 32bits
or 64bits platform.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-07 16:57:41 -07:00
..
…
…
…
2005-09-03 16:45:02 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2005-08-29 15:59:42 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2005-09-07 16:57:21 -07:00
…
…
…
…
…
…
2005-09-07 16:57:20 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2005-09-05 00:06:09 -07:00
…
…
…
…
2005-09-07 16:57:21 -07:00
…
…
…
2005-07-13 11:25:24 -07:00
…
…
…
…
…
…
…
…
…
2005-09-07 16:57:32 -07:00
…
2005-09-07 16:57:40 -07:00
2005-07-12 16:01:03 -07:00
…
…
…
…
…
…
…
…
…
…
2005-09-05 09:14:13 -07:00
…
2005-09-05 09:26:56 -07:00
…
…
…
…
…
…
…
…
…
…
2005-08-29 16:01:32 -07:00
2005-08-29 16:01:32 -07:00
…
…
…
2005-08-29 16:01:32 -07:00
2005-08-29 15:32:25 -07:00
…
2005-08-29 16:01:32 -07:00
…
2005-08-29 15:49:46 -07:00
…
…
…
…
…
…
…
…
2005-08-29 15:43:19 -07:00
…
…
…
…
…
…
…
…
…
…
2005-09-07 16:57:19 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2005-08-03 09:12:05 -07:00
…
…
…
2005-07-12 16:00:58 -07:00
…
…
…
…
…
…
…
…
…
…
2005-08-29 16:01:32 -07:00
2005-08-29 16:01:32 -07:00
2005-08-29 16:01:35 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2005-08-16 21:06:24 -07:00
…
…
…
2005-08-28 20:28:25 -04:00
…
2005-09-07 16:57:24 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2005-07-26 14:35:41 -07:00
2005-09-07 16:57:18 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2005-08-29 16:01:32 -07:00
…
…
…
…
2005-08-29 16:01:54 -07:00
…
…
…
…
2005-08-29 16:01:32 -07:00
…
…
…
…
…
…
…
…
…
2005-09-05 00:05:45 -07:00
…
2005-07-27 16:26:04 -07:00
…
…
…
…
…
…
…
…
…
2005-09-07 16:57:34 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…