Eric Dumazet fa3536cc14 [PATCH] Use __read_mostly on some hot fs variables
I discovered on oprofile hunting on a SMP platform that dentry lookups were
slowed down because d_hash_mask, d_hash_shift and dentry_hashtable were in
a cache line that contained inodes_stat.  So each time inodes_stats is
changed by a cpu, other cpus have to refill their cache line.

This patch moves some variables to the __read_mostly section, in order to
avoid false sharing.  RCU dentry lookups can go full speed.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-26 08:56:56 -08:00
..
2006-01-11 18:42:13 -08:00
2006-03-23 07:38:13 -08:00
2006-03-24 18:23:14 +01:00
2006-03-24 18:42:13 +01:00
2006-03-26 08:56:55 -08:00
2006-01-18 19:20:23 -08:00
2006-03-26 08:56:55 -08:00
2006-03-26 08:56:55 -08:00
2006-03-25 08:22:56 -08:00
2006-03-26 08:56:55 -08:00
2006-03-24 07:33:19 -08:00
2006-03-24 14:58:29 -08:00
2005-11-07 07:54:06 -08:00
2006-03-26 08:56:55 -08:00
2006-03-26 08:56:53 -08:00
2006-03-24 18:21:44 +01:00
2006-01-11 18:42:13 -08:00
2005-05-05 16:36:47 -07:00
2006-01-10 08:01:25 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-08 20:12:40 -08:00
2006-03-07 09:16:35 -08:00
2005-10-30 17:37:32 -08:00
2006-01-11 18:42:13 -08:00
2006-01-11 18:42:13 -08:00
2006-03-23 23:44:19 -05:00
2006-03-23 07:38:12 -08:00
2006-03-24 07:33:19 -08:00
2006-03-24 07:33:24 -08:00
2005-11-07 18:18:11 -08:00
2005-04-16 15:20:36 -07:00
2006-03-23 07:38:11 -08:00
2006-03-23 07:38:11 -08:00
2006-02-17 13:59:28 -08:00
2006-03-23 07:38:12 -08:00
2006-02-11 21:41:10 -08:00
2006-03-26 08:56:55 -08:00
2005-04-16 15:20:36 -07:00