Skip to content

Commit

Permalink
mxq_job: add a string version of host_cpu_set
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Oct 30, 2015
1 parent 61ddd6f commit 7dee7ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mxq_job.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct mxq_job {
uint32_t host_pid;
uint32_t host_slots;
cpu_set_t host_cpu_set;
char * host_cpu_set_str;

int64_t date_submit;
int64_t date_start;
Expand Down
3 changes: 2 additions & 1 deletion mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,8 @@ unsigned long start_job(struct mxq_group_list *group)
group->group.user_name, group->group.user_uid, group->group.group_id, mxqjob.job_id);

cpuset_init_job(&mxqjob.host_cpu_set,&server->cpu_set_available,&server->cpu_set_running,group->slots_per_job);
cpuset_log(" job assigned cpus: ",&mxqjob.host_cpu_set);
mxqjob.host_cpu_set_str=mx_cpuset_to_str(&mxqjob.host_cpu_set);
mx_log_info("job assigned cpus: [%s]",mxqjob.host_cpu_set_str);

mx_mysql_disconnect(server->mysql);

Expand Down

0 comments on commit 7dee7ef

Please sign in to comment.