1st workable scheduler with resource from controller
This commit is contained in:
parent
780e9fb313
commit
bef32ace38
8 changed files with 238 additions and 24 deletions
15
src/include/misc.h
Normal file
15
src/include/misc.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#if !defined(_MISC_H_)
|
||||
|
||||
#define _MISC_H_ 1
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "xce/types.h"
|
||||
|
||||
extern int reset_resval(xce_val_t*);
|
||||
extern void free_res_account(xce_res_account_t*);
|
||||
extern void free_host_account(xce_host_account_t*);
|
||||
extern void free_job_account(xce_job_account_t*);
|
||||
|
||||
#endif
|
||||
|
|
@ -263,18 +263,13 @@ typedef struct {
|
|||
int64_t duration;
|
||||
} xce_alloc_t;
|
||||
|
||||
typedef struct {
|
||||
uint64_t jobid;
|
||||
xce_alloc_t alloc;
|
||||
double used;
|
||||
} res_usage_t;
|
||||
|
||||
typedef struct {
|
||||
uint64_t instid;
|
||||
char* resname;
|
||||
int residx;
|
||||
double used;
|
||||
double reserved;
|
||||
double allocated;
|
||||
} xce_res_account_t;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue