25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tuning mbatchd on UNIX<br />

Operating system<br />

support<br />

Chapter 37<br />

Tuning the Cluster<br />

On UNIX platforms that support thread programming, you can change default<br />

mbatchd behavior to use multithreading and increase performance of query<br />

requests when you use the bjobs command.<br />

Multithreading is beneficial for busy clusters with many jobs and frequent<br />

query requests. This may indirectly increase overall mbatchd performance.<br />

See the Online Support area of the <strong>Platform</strong> Computing Web site at<br />

www.platform.com for the latest information about operating systems that support<br />

multithreaded mbatchd.<br />

In this section ◆ “How mbatchd works without multithreading” on page 491<br />

◆ “How mbatchd works with multithreading” on page 491<br />

◆ “Setting a query-dedicated port for mbatchd” on page 492<br />

◆ “Specifying an expiry time for child mbatchds” on page 492<br />

How mbatchd works without multithreading<br />

Ports<br />

Servicing<br />

Requests<br />

By default, mbatchd uses the port defined by the parameter LSB_MBD_PORT<br />

in lsf.conf or looks into the system services database for port numbers to<br />

communicate with LIM and job request commands.<br />

It uses this port number to receive query requests from clients.<br />

For every query request received, mbatchd forks a child mbatchd to service<br />

the request. Each child mbatchd processes the request and then exits.<br />

How mbatchd works with multithreading<br />

To change mbatchd behavior to use multithreading, complete the following<br />

procedures:<br />

1 Mandatory.<br />

Specify a query-dedicated port for the mbatchd. You do this by setting the<br />

parameter LSB_QUERY_PORT in lsf.conf.<br />

See “Setting a query-dedicated port for mbatchd” on page 492.<br />

2 Optional.<br />

Set an interval of time to indicate when a new child mbatchd is to be<br />

forked. You do this by setting the parameter MBD_REFRESH_TIME in<br />

lsb.params. The default value of MBD_REFRESH_TIME is 5 seconds, and<br />

valid values are 5-300 seconds.<br />

See “Specifying an expiry time for child mbatchds” on page 492.<br />

When mbatchd has a dedicated port specified by the parameter<br />

LSB_QUERY_PORT in lsf.conf, it forks a child mbatchd which in turn<br />

creates threads to process query requests.<br />

As soon as mbatchd has forked a child mbatchd, the child mbatchd takes over<br />

and listens on the port to process more query requests. For each query request,<br />

the child mbatchd creates a thread to process it.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 491

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!