Thanks for revert.
Yes, LSB_ENABLE_HPC_ALLOCATION is set to Y and not using cpu affinity feature.
Here is complete bjobs -l output and cpu usage on execution host. We are trying to get total available, currently used (not as per -n, but actual usage of slots on exec host) and blocked slots information in a given cluster.
[ec2-user~]$ bjobs -l 165260
Job <165260>, User <ec2-user>, Project <default>, Status <RUN>, Queue <4core>,
Command </usr/local/share/LSF_TOP/tools/stress.o -c 4 -m 1
--vm-bytes 240000 --timeout 5m>
Fri Jun 18 18:37:56: Submitted from host <ip-10-0-1-167.us-east-2.compute.inter
nal>, CWD <$HOME>;
Fri Jun 18 18:37:57: Started 1 Task(s) on Host(s) <ip-178-1-113-245.us-east-2.c
ompute.internal>, Allocated 1 Slot(s) on Host(s) <ip-178-1
-113-245.us-east-2.compute.internal>, Execution Home </hom
e/ec2-user>, Execution CWD </home/ec2-user>;
Fri Jun 18 18:38:18: Resource usage collected.
The CPU time used is 108 seconds.
MEM: 2 Mbytes; SWAP: 0 Mbytes; NTHREAD: 11
PGID: 13727; PIDs: 13727 13728 13730 13731 13732 13733
13734 13735 13736 13737
MEMORY USAGE:
MAX MEM: 2 Mbytes; AVG MEM: 2 Mbytes
SCHEDULING PARAMETERS:
r15s r1m r15m ut pg io ls it tmp swp mem
loadSched - - - - - - - - - - -
loadStop - - - - - - - - - - -
RESOURCE REQUIREMENT DETAILS:
Combined: select[type == local] order[r15s:pg]
Effective: select[type == local] order[r15s:pg]
[ec2-user~]$ bhosts -w ip-178-1-113-245
HOST_NAME STATUS JL/U MAX NJOBS RUN SSUSP USUSP RSV
ip-178-1-113-245.us-east-2.compute.internal ok - 4 1 1 0 0 0
#SupportMigration#Support#Spectrum