Whamcloud - gitweb
Branch b1_8
authoradilger <adilger>
Thu, 9 Apr 2009 00:05:16 +0000 (00:05 +0000)
committeradilger <adilger>
Thu, 9 Apr 2009 00:05:16 +0000 (00:05 +0000)
Reinstate upper limit on LDLM threads.
b=18688
i=robert.read

lustre/include/lustre_net.h

index c030d58..6a6db15 100644 (file)
  */
 
 #define LDLM_THREADS_AUTO_MIN (2)
-#define LDLM_THREADS_AUTO_MAX (num_online_cpus() * num_online_cpus() * 32)
+#define LDLM_THREADS_AUTO_MAX min(num_online_cpus()*num_online_cpus()*32, 128)
 #define LDLM_BL_THREADS  LDLM_THREADS_AUTO_MIN
 #define LDLM_NBUFS      (64 * num_online_cpus())
 #define LDLM_BUFSIZE    (8 * 1024)
  * except in the open case where there are a large number of OSTs in a LOV.
  */
 #define MDS_MAXREQSIZE  (5 * 1024)
-#define MDS_MAXREPSIZE  max(9 * 1024, 280 + LOV_MAX_STRIPE_COUNT * 56)
+#define MDS_MAXREPSIZE  max(9 * 1024, 362 + LOV_MAX_STRIPE_COUNT * 56)
 
 #define MGS_THREADS_AUTO_MIN 2
 #define MGS_THREADS_AUTO_MAX 32