IBM Support

LSF CPU utilization (ut) configuration

Question & Answer


Question

How to configure CPU utilization thresholds within LSF

Answer

ut thresholds need to be specified as a floating-point number between 0 and 1.  
The detailed steps are:                                                     
1. go to $LSF_CONFDIR/lsbatch/<cluster name>/configdir/                    
2. edit lsb.hosts                                                         
3. in Host session,  set  ut value and add 'ut' column if it's not there.  For example:                                                    
Begin Host                                                              
HOST_NAME  ut MXJ  r1m  pg   ls  tmp  DISPATCH_WINDOW AFFINITY  # Keywords        
<host name>   0.90   !       ()      ()    ()     ()     ()             (Y)   # Example                                       
End Host                                                                
4. save changes and exit from lsb.hosts                                         
5. Run "badmin reconfig" to make the changes take effect                                                  
6. check the setting by 'bhosts -l <host name>'. It should look like:     
-------------------------------------------------------------------
HOST <host name>                                                        
STATUS    CPUF  JL/U   MAX  NJOBS   RUN  SSUSP  USUSP    RSV DISPATCH_WINDOW 
ok             60.00     -      2            0          0           0    0           0      -                                                                                                                                                        
CURRENT LOAD USED FOR SCHEDULING:                                       
r15s   r1m  r15m    ut   pg    io   ls    it   tmp   swp   mem  slots                                                       
Total   0.0   0.0   0.0    1%  0.0     8    2     0   11G    1.9G  1.6G      2                                     
Reserved        0.0   0.0   0.0    0%   0.0     0    0     0    0M  0M    0M      -                                                                                                                        
                                                                        
LOAD THRESHOLD USED FOR SCHEDULING:                                     
  r15s   r1m  r15m   ut      pg    io   ls    it    tmp    swp  mem                                                                 
loadSched   -     -     -   0.9      -     -    -     -     -      -    
      -                                                                 
loadStop    -     -     -     -       -     -    -     -     -      -   
      -                                                                                                                                      
CONFIGURED AFFINITY CPU LIST: all         
--------------------------------------------------------------------                          
 
The 'bhosts -l <host name>' output above shows the current ut is 1% and less than 90% set in        
loadSchd so the STATUS is 'ok'. The host will get new jobs. If the      
current ut value is >= the value in loadSched , the STATUS will be      
"closed_Busy" and the host will not get new jobs until the current ut   
value drops. 

[{"Product":{"code":"SSETD4","label":"Platform LSF"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 June 2018

UID

isg3T1023881