Hendelman, Rob
2010-Mar-11 16:43 UTC
[Lustre-discuss] oss_num_threads & oss_num_create_threads
I''d like to make sure that I understand these 2 module options.>From googling a bit & searching bugzilla, here is my understanding:oss_num_threads = Maximum number of service threads across all ost''s on a single OSS. oss_num_create_threads = minimum number of threads across all ost''s on a single oss (Number of threads when module is loaded even if no i/o) Is this correct or am I misunderstanding? Thanks, Robert The information contained in this message and its attachments is intended only for the private and confidential use of the intended recipient(s). If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e- mail is strictly prohibited.
Johann Lombardi
2010-Mar-11 17:41 UTC
[Lustre-discuss] oss_num_threads & oss_num_create_threads
On Thu, Mar 11, 2010 at 10:43:28AM -0600, Hendelman, Rob wrote:> I''d like to make sure that I understand these 2 module options. > > >From googling a bit & searching bugzilla, here is my understanding: > > oss_num_threads = Maximum number of service threads across all ost''s on a single OSS. > oss_num_create_threads = minimum number of threads across all ost''s on a single oss (Number of threads when module is loaded even if no i/o) > > Is this correct or am I misunderstanding?Not exactly. First of all, oss_num_threads and oss_num_create_threads apply to different set of service threads. oss_num_create_threads is for the ll_ost_create threads which are in charge of statfs and object creation requests, while oss_num_threads is for the ll_ost and ll_ost_io threads which handle all the other requests (read/write, truncate, setattr, ...). By default, we start a mininum number of threads for each service and fork new service threads on demand based on load, up to a max value. Setting oss_num_threads/oss_num_create_threads disables dynamic thread creation and just starts the number of threads you''ve asked for. Cheers, Johann