View | Details | Raw Unified | Return to ticket 287
Collapse All | Expand All

(-)a/NEWS (+1 lines)
Lines 23-28 documents those changes that are of interest to users and admins. Link Here
23
    start job to slurmdbd.
23
    start job to slurmdbd.
24
 -- If a prolog or epilog failure occurs, drain the node rather than setting it
24
 -- If a prolog or epilog failure occurs, drain the node rather than setting it
25
    down and killing all of its jobs.
25
    down and killing all of its jobs.
26
 -- Priority/multifactor - Avoid underflow in half-life calculation.
26
27
27
* Changes in Slurm 2.5.6
28
* Changes in Slurm 2.5.6
28
========================
29
========================
(-)a/config.h.in (+3 lines)
Lines 115-120 Link Here
115
/* Define to 1 if you have the `fdatasync' function. */
115
/* Define to 1 if you have the `fdatasync' function. */
116
#undef HAVE_FDATASYNC
116
#undef HAVE_FDATASYNC
117
117
118
/* Define to 1 if you have the <float.h> header file. */
119
#undef HAVE_FLOAT_H
120
118
/* Define to 1 if running slurmd on front-end only */
121
/* Define to 1 if running slurmd on front-end only */
119
#undef HAVE_FRONT_END
122
#undef HAVE_FRONT_END
120
123
(-)a/configure (-1 / +1 lines)
Lines 17971-17977 for ac_header in mcheck.h values.h socket.h sys/socket.h \ Link Here
17971
                 pty.h utmp.h \
17971
                 pty.h utmp.h \
17972
		 sys/syslog.h linux/sched.h \
17972
		 sys/syslog.h linux/sched.h \
17973
		 kstat.h paths.h limits.h sys/statfs.h sys/ptrace.h \
17973
		 kstat.h paths.h limits.h sys/statfs.h sys/ptrace.h \
17974
		 sys/termios.h
17974
		 sys/termios.h float.h
17975
17975
17976
do :
17976
do :
17977
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
(-)a/configure.ac (-1 / +1 lines)
Lines 127-133 AC_CHECK_HEADERS(mcheck.h values.h socket.h sys/socket.h \ Link Here
127
                 pty.h utmp.h \
127
                 pty.h utmp.h \
128
		 sys/syslog.h linux/sched.h \
128
		 sys/syslog.h linux/sched.h \
129
		 kstat.h paths.h limits.h sys/statfs.h sys/ptrace.h \
129
		 kstat.h paths.h limits.h sys/statfs.h sys/ptrace.h \
130
		 sys/termios.h
130
		 sys/termios.h float.h
131
		)
131
		)
132
AC_HEADER_SYS_WAIT
132
AC_HEADER_SYS_WAIT
133
AC_HEADER_TIME
133
AC_HEADER_TIME
(-)a/src/plugins/priority/multifactor/priority_multifactor.c (-4 / +12 lines)
Lines 40-45 Link Here
40
#  include "config.h"
40
#  include "config.h"
41
#endif
41
#endif
42
42
43
#if HAVE_FLOAT_H
44
#  include <float.h>
45
#endif
43
#if HAVE_STDINT_H
46
#if HAVE_STDINT_H
44
#  include <stdint.h>
47
#  include <stdint.h>
45
#endif
48
#endif
Lines 49-54 Link Here
49
#ifdef WITH_PTHREADS
52
#ifdef WITH_PTHREADS
50
#  include <pthread.h>
53
#  include <pthread.h>
51
#endif				/* WITH_PTHREADS */
54
#endif				/* WITH_PTHREADS */
55
#if HAVE_VALUES_H
56
#  include <values.h>
57
#endif
52
58
53
#include <sys/stat.h>
59
#include <sys/stat.h>
54
#include <stdio.h>
60
#include <stdio.h>
Lines 1015-1023 static void *_decay_thread(void *no_data) Link Here
1015
1021
1016
		if (run_delta <= 0)
1022
		if (run_delta <= 0)
1017
			goto get_usage;
1023
			goto get_usage;
1018
1024
		real_decay = pow(decay_factor, (double)run_delta);
1019
		real_decay = pow(decay_factor, run_delta);
1025
#ifdef DBL_MIN
1020
1026
		if (real_decay <= DBL_MIN)
1027
			real_decay = DBL_MIN;
1028
#endif
1021
		if (priority_debug)
1029
		if (priority_debug)
1022
			info("Decay factor over %g seconds goes "
1030
			info("Decay factor over %g seconds goes "
1023
			     "from %.15f -> %.15f",
1031
			     "from %.15f -> %.15f",
Lines 1025-1031 static void *_decay_thread(void *no_data) Link Here
1025
1033
1026
		/* first apply decay to used time */
1034
		/* first apply decay to used time */
1027
		if (_apply_decay(real_decay) != SLURM_SUCCESS) {
1035
		if (_apply_decay(real_decay) != SLURM_SUCCESS) {
1028
			error("problem applying decay");
1036
			error("priority/multifactor: problem applying decay");
1029
			running_decay = 0;
1037
			running_decay = 0;
1030
			slurm_mutex_unlock(&decay_lock);
1038
			slurm_mutex_unlock(&decay_lock);
1031
			break;
1039
			break;

Return to ticket 287