sysutils/slurm-wlm: Temporary patch to silence job accounting errors
Disables linux-specific code when using jobacct_gather/linux for now. Long-term solution is to revamp job accounting code for FreeBSD.
This commit is contained in:
parent
dcb013c2c3
commit
48326628c9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=512031
2 changed files with 27 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= slurm
|
||||
DISTVERSION= 19.05.1-2
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= sysutils python
|
||||
MASTER_SITES= https://download.schedmd.com/slurm/
|
||||
PKGNAMESUFFIX= -wlm
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
--- src/plugins/jobacct_gather/common/common_jag.c.orig 2019-09-13 13:35:31 UTC
|
||||
+++ src/plugins/jobacct_gather/common/common_jag.c
|
||||
@@ -250,6 +250,12 @@ static int _get_sys_interface_freq_line(uint32_t cpu,
|
||||
return 0;
|
||||
}
|
||||
|
||||
+
|
||||
+/*
|
||||
+ * Check for lightweight processes (POSIX threads)
|
||||
+ * Should be rewritten for FreeBSD so it doesn't depend on /proc
|
||||
+ */
|
||||
+
|
||||
static int _is_a_lwp(uint32_t pid)
|
||||
{
|
||||
char *filename = NULL;
|
||||
@@ -258,6 +264,10 @@ static int _is_a_lwp(uint32_t pid)
|
||||
ssize_t n;
|
||||
char *tgids = NULL;
|
||||
pid_t tgid = -1;
|
||||
+
|
||||
+ // Disable check for now, this will only skew process accounting
|
||||
+ // slightly by including threads
|
||||
+ return 0;
|
||||
|
||||
xstrfmtcat(filename, "/proc/%u/status", pid);
|
||||
|
Loading…
Reference in a new issue