scheduling using real slots number

This commit is contained in:
Rongsong Shen 2025-12-30 18:13:15 +08:00
parent 8db4458375
commit 780e9fb313
22 changed files with 980 additions and 105 deletions

View file

@ -257,7 +257,7 @@ typedef struct {
typedef struct {
char* resname;
char* reserve;
uint32_t instid;
uint64_t instid;
double value;
uint64_t from;
int64_t duration;
@ -269,6 +269,14 @@ typedef struct {
double used;
} res_usage_t;
typedef struct {
uint64_t instid;
char* resname;
int residx;
double used;
double reserved;
} xce_res_account_t;
typedef struct {
xce_worker_t host;
char hostkey[XCE_MAXKEY_LEN];
@ -283,12 +291,28 @@ typedef struct {
xce_alloc_t** allocs;
} xce_host_alloc_t;
typedef struct {
char* host;
int naccount;
xce_res_account_t** accounts;
} xce_host_account_t;
typedef struct {
uint64_t jobid;
int nhosts;
xce_host_alloc_t** allocs;
int nres_shared;
xce_alloc_t** allocs_shared;
} xce_job_alloc_t;
typedef struct {
uint64_t jobid;
int nhosts;
xce_host_account_t** accounts;
int nres_shared;
xce_res_account_t** accounts_shared;
} xce_job_account_t;
typedef struct {
int njobs;
xce_job_alloc_t** allocs;
@ -440,6 +464,7 @@ typedef struct {
job_pidinfo_t* pidinfo;
unsigned int state;
xce_job_alloc_t* allocs;
xce_job_account_t* accounts;
int run_time;
xce_job_runusage_t* run_usage;
job_exitinfo_t* exit_info;