Hi,
I've noticed some strange debug print statements that I don't
understand, for example:
[2011-08-19T11:24:46] Fairshare priority of job 218244 for user perl in acct
nsc is 2**(-0.001227/0.000541) = 0.207854
...
[2011-08-19T11:24:46] Weighted Fairshare priority is 0.000000 * 1000000 =
207853.56
Where I'd expect the last line to print
[2011-08-19T11:24:46] Weighted Fairshare priority is 0.207854 * 1000000 =
207853.56
This might be caused by an insufficient copy (note: untested):
--- slurm-2.2.7/src/plugins/priority/multifactor/priority_multifactor.c~
2011-06-10 18:57:28.000000000 +0200
+++ slurm-2.2.7/src/plugins/priority/multifactor/priority_multifactor.c
2011-09-06 11:04:56.042934202 +0200
@@ -549,7 +549,7 @@
/* figure out the priority */
_get_priority_factors(start_time, job_ptr);
memcpy(&pre_factors, job_ptr->prio_factors,
- sizeof(job_ptr->prio_factors));
+ sizeof(*(job_ptr->prio_factors)));
job_ptr->prio_factors->priority_age *= (double)weight_age;
job_ptr->prio_factors->priority_fs *= (double)weight_fs;
--
Per Lundqvist
National Supercomputer Centre
Linköping University, Sweden
http://www.nsc.liu.se