Knowledge Center Contents Previous Next |
lsb_limitInfo()
gets resource allocation limit configuration and dynamic usage information
DESCRIPTION
Displays current usage of resource allocation limits configured in Limit sections in lsb.resources:
- Configured limit policy name
- Users
- Queues
- Hosts
- Project names
SYNOPSIS
#include <lsf/lsbatch.h> int lsb_limitInfo(limitInfoReq *req, limitInfoEnt **entRef, int * size, struct lsInfo* lsInfo) typedef struct _limitInfoReq { char * name; int consumerC; limitConsumer *consumerV; } limitInfoReq; typedef struct _limitConsumer { consumerType type; char * name; } limitConsumer typedef struct _limitInfoEnt { char * name; limitItem confInfo; int usageC; limitItem usageInfo; } limitInfoEnt; typedef struct _limitItem { int consumerC; limitConsumer *consumerV; int resourceC; limitResource *resourceV; } limitItem; typedef struct _ limitResource { char * rsrcName; int type; float val; } limitResource;PARAMETERS
req
input, the user request for limit information
entRef
output, the limit information array
size
output, the size of the limit information array
_limitInfoReq
The structure limitInfoReq contains the following fields:
name
Limit policy name given by the user.
jobid
Job ID of jobs with resource usage.
consumerC
consumerV
Consumer name, queue/host/user/project.
_limitConsumer
The structure limitConsumer contains the following fields:
type
Consumer type:
- Queues per-queue
- Users and per-user
- Hosts and per-host
- Projects and per-project
name
Consumer name
_limitInfoEnt
The structure limitInfoEnt contains the following fields:
name
limit policy name given by the user
confInfo
limit configuration
usageC
size of limit dynamic usage info array
usageInfo
limit dynamic usage info array
_limitItem
The structure limitItem contains the following fields:
consumerC
consumerV
queue/host/user/project
resourceC
resourceV
_limitResource
The structure limitResource contains the following fields:
rsrcName
val
RETURN VALUES
LSBE_NO_ERROR
Suceess; others, errors happened.
ERRORS
On failure, lsberrno is set to indicate the error.
SEE ALSO
Related API
lsb_freeLimitInfoEnt()
Equivalent command
blimits
Files
lsb.queues, lsb.users, lsb.hosts, lsb.resources
Platform Computing Inc.
www.platform.com |
Knowledge Center Contents Previous Next |