Platform LSF Administration Guide Version 6.2
Chapter 39
Tuning the Cluster
Administering Platform LSF
563
Tuning mbatchd on UNIX
On UNIX platforms that support thread programming, you can change default
mbatchd behavior to use multithreading and increase performance of query requests
when you use the
bjobs command.
Multithreading is beneficial for busy clusters with many jobs and frequent query
requests. This may indirectly increase overall
mbatchd performance.
Operating system
support
See the Online Support area of the Platform Computing Web site at
www.platform.com for the latest information about operating systems that support
multithreaded mbatchd.
In this section
◆
“How mbatchd works without multithreading” on page 563
◆
“How mbatchd works with multithreading” on page 563
◆
“Setting a query-dedicated port for mbatchd” on page 564
◆
“Specifying an expiry time for child mbatchds (option)” on page 564
How mbatchd works without multithreading
Ports
By default, mbatchd uses the port defined by the parameter LSB_MBD_PORT in
lsf.conf or looks into the system services database for port numbers to communicate
with LIM and job request commands.
It uses this port number to receive query requests from clients.
Servicing requests
For every query request received, mbatchd forks a child mbatchd to service the
request. Each child
mbatchd processes the request and then exits.
How mbatchd works with multithreading
To change mbatchd behavior to use multithreading, complete the following
procedures:
1
Required.
Specify a query-dedicated port for the
mbatchd by setting LSB_QUERY_PORT
in
lsf.conf.
See “Setting a query-dedicated port for mbatchd” on page 564.
2
Optional.
Set an interval of time to indicate when a new child
mbatchd is to be forked by
setting MBD_REFRESH_TIME in
lsb.params. The default value of
MBD_REFRESH_TIME is 5 seconds, and valid values are 5-300 seconds.
See “Specifying an expiry time for child mbatchds (option)” on page 564.
When
mbatchd has a dedicated port specified by the parameter LSB_QUERY_PORT
in
lsf.conf, it forks a child mbatchd which in turn creates threads to process query
requests.
As soon as
mbatchd has forked a child mbatchd, the child mbatchd takes over and
listens on the port to process more query requests. For each query request, the child
mbatchd creates a thread to process it.