diff options
author | David Chinner <dgc@sgi.com> | 2006-03-13 21:13:09 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-03-13 21:13:09 -0500 |
commit | 8d280b98cfe3c0b69c37d355218975c1c0279bb0 (patch) | |
tree | 2dc1deaec23a7da29b72152a4225c2600dacf1d4 /fs/xfs/linux-2.6/xfs_linux.h | |
parent | 9f4cbecd7e5ee6390fecd6032dc04ca8c9805dc9 (diff) |
[XFS] On machines with more than 8 cpus, when running parallel I/O
threads, the incore superblock lock becomes the limiting factor for
buffered write throughput. Make the contended fields in the incore
superblock use per-cpu counters so that there is no global lock to limit
scalability.
SGI-PV: 946630
SGI-Modid: xfs-linux-melb:xfs-kern:25106a
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_linux.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_linux.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_linux.h b/fs/xfs/linux-2.6/xfs_linux.h index 67389b745526..377a9f54a049 100644 --- a/fs/xfs/linux-2.6/xfs_linux.h +++ b/fs/xfs/linux-2.6/xfs_linux.h | |||
@@ -100,6 +100,11 @@ | |||
100 | */ | 100 | */ |
101 | #undef HAVE_REFCACHE /* reference cache not needed for NFS in 2.6 */ | 101 | #undef HAVE_REFCACHE /* reference cache not needed for NFS in 2.6 */ |
102 | #define HAVE_SENDFILE /* sendfile(2) exists in 2.6, but not in 2.4 */ | 102 | #define HAVE_SENDFILE /* sendfile(2) exists in 2.6, but not in 2.4 */ |
103 | #if CONFIG_SMP | ||
104 | #define HAVE_PERCPU_SB /* per cpu superblock counters are a 2.6 feature */ | ||
105 | #else | ||
106 | #undef HAVE_PERCPU_SB /* per cpu superblock counters are a 2.6 feature */ | ||
107 | #endif | ||
103 | 108 | ||
104 | /* | 109 | /* |
105 | * State flag for unwritten extent buffers. | 110 | * State flag for unwritten extent buffers. |