From b71bb5d39663544521b59c7b4bff45144df6e3c4 Mon Sep 17 00:00:00 2001 From: scjody Date: Tue, 26 May 2009 17:09:11 +0000 Subject: [PATCH] Branch b1_8 b=17086 i=adilger i=shuichi.ihara Original patch by Atul. Increase the maximum number of scatter gather entries for the MPT Fusion driver to 256, and use that setting in our RHEL 5 kernel config. --- .../patches/mpt-fusion-max-sge.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lustre/kernel_patches/patches/mpt-fusion-max-sge.patch diff --git a/lustre/kernel_patches/patches/mpt-fusion-max-sge.patch b/lustre/kernel_patches/patches/mpt-fusion-max-sge.patch new file mode 100644 index 0000000..d306088 --- /dev/null +++ b/lustre/kernel_patches/patches/mpt-fusion-max-sge.patch @@ -0,0 +1,36 @@ +diff -Nrup linux-2.6.18-92.1.10.orig/drivers/message/fusion/Kconfig linux-2.6.18-92.1.10/drivers/message/fusion/Kconfig +--- linux-2.6.18-92.1.10.orig/drivers/message/fusion/Kconfig 2008-12-11 10:27:02.000000000 +1100 ++++ linux-2.6.18-92.1.10/drivers/message/fusion/Kconfig 2008-12-11 10:28:42.000000000 +1100 +@@ -61,13 +61,13 @@ config FUSION_SAS + LSISAS1078 + + config FUSION_MAX_SGE +- int "Maximum number of scatter gather entries for SAS and SPI (16 - 128)" +- default "128" +- range 16 128 ++ int "Maximum number of scatter gather entries for SAS and SPI (16 - 256)" ++ default "256" ++ range 16 256 + help + This option allows you to specify the maximum number of scatter- +- gather entries per I/O. The driver default is 128, which matches +- SAFE_PHYS_SEGMENTS. However, it may decreased down to 16. ++ gather entries per I/O. The driver default is 256, which matches ++ MAX_PHYS_SEGMENTS. However, it may decreased down to 16. + Decreasing this parameter will reduce memory requirements + on a per controller instance. + +diff -Nrup linux-2.6.18-92.1.10.orig/drivers/message/fusion/mptbase.h linux-2.6.18-92.1.10/drivers/message/fusion/mptbase.h +--- linux-2.6.18-92.1.10.orig/drivers/message/fusion/mptbase.h 2008-12-11 10:27:03.000000000 +1100 ++++ linux-2.6.18-92.1.10/drivers/message/fusion/mptbase.h 2008-12-11 10:30:55.000000000 +1100 +@@ -168,8 +168,8 @@ + #ifdef CONFIG_FUSION_MAX_SGE + #if CONFIG_FUSION_MAX_SGE < 16 + #define MPT_SCSI_SG_DEPTH 16 +-#elif CONFIG_FUSION_MAX_SGE > 128 +-#define MPT_SCSI_SG_DEPTH 128 ++#elif CONFIG_FUSION_MAX_SGE > 256 ++#define MPT_SCSI_SG_DEPTH 256 + #else + #define MPT_SCSI_SG_DEPTH CONFIG_FUSION_MAX_SGE + #endif -- 1.8.3.1