From 1531cbeb412a8d9c35fc5c6a26d3736cf476e4b9 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 14 Dec 2010 00:33:11 -0700 Subject: [PATCH] b=23289 don't start more than minimum MDT threads Because there are many different portals running on the MDS node (MDT, readpage, setattr, SEQ, SEQ server, FLD, DLM), starting more than the minimum number of threads can result in thousands of threads running on large MDS nodes, even if many of those threads are not needed. Start only the minimum number of threads at mount time, and start more as required by the load. i=liang i=vitaly --- lustre/include/lustre_net.h | 3 --- lustre/mdt/mdt_handler.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/lustre/include/lustre_net.h b/lustre/include/lustre_net.h index 2c6ba51..d6634c7 100644 --- a/lustre/include/lustre_net.h +++ b/lustre/include/lustre_net.h @@ -135,9 +135,6 @@ #define MDT_MIN_THREADS 2UL #define MDT_MAX_THREADS 512UL -#define MDT_NUM_THREADS max(min_t(unsigned long, MDT_MAX_THREADS, \ - cfs_num_physpages >> (25 - CFS_PAGE_SHIFT)), \ - 2UL) /** Absolute limits */ #define MDS_THREADS_MIN 2 diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 7300d48..9ec7267 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -5776,8 +5776,6 @@ static int __init mdt_mod_init(void) } else { mdt_max_threads = MDT_MAX_THREADS; mdt_min_threads = MDT_MIN_THREADS; - if (mdt_min_threads < MDT_NUM_THREADS) - mdt_min_threads = MDT_NUM_THREADS; } lprocfs_mdt_init_vars(&lvars); -- 1.8.3.1