Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144571539
D52138.1775517878.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D52138.1775517878.diff
View Options
diff --git a/sysutils/slurm-wlm/Makefile b/sysutils/slurm-wlm/Makefile
--- a/sysutils/slurm-wlm/Makefile
+++ b/sysutils/slurm-wlm/Makefile
@@ -1,6 +1,6 @@
PORTNAME= slurm
DISTVERSION= 23.11.7
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= sysutils
MASTER_SITES= https://download.schedmd.com/slurm/
PKGNAMESUFFIX= -wlm
diff --git a/sysutils/slurm-wlm/files/patch-src_slurmd_slurmd_slurmd.c b/sysutils/slurm-wlm/files/patch-src_slurmd_slurmd_slurmd.c
new file mode 100644
--- /dev/null
+++ b/sysutils/slurm-wlm/files/patch-src_slurmd_slurmd_slurmd.c
@@ -0,0 +1,50 @@
+--- src/slurmd/slurmd/slurmd.c.orig 2024-05-21 17:19:51 UTC
++++ src/slurmd/slurmd/slurmd.c
+@@ -2191,10 +2191,17 @@ _slurmd_init(void)
+ build_all_frontend_info(true);
+
+ /*
++ * cgroups is unsupported on FreeBSD and would prevent slurmd from starting
++ */
++#if defined(__FreeBSD__)
++ info("FreeBSD: Skipping cgroup_conf_init() - cgroups unsupported");
++#else
++ /*
+ * This needs to happen before _read_config where we will try to read
+ * cgroup.conf values
+ */
+ cgroup_conf_init();
++#endif
+
+ xcpuinfo_refresh_hwloc(original);
+
+@@ -2214,6 +2221,10 @@ _slurmd_init(void)
+ * defaults and command line.
+ */
+ _read_config();
++
++#if defined(__FreeBSD__)
++ info("FreeBSD: Skipping cgroup_g_init() - cgroups unsupported");
++#else
+ /*
+ * This needs to happen before _resource_spec_init where we will try to
+ * attach the slurmd pid to system cgroup, and after _read_config to
+@@ -2223,6 +2234,7 @@ _slurmd_init(void)
+ error("Unable to initialize cgroup plugin");
+ return SLURM_ERROR;
+ }
++#endif
+
+ #ifndef HAVE_FRONT_END
+ if (!find_node_record(conf->node_name))
+@@ -2562,6 +2574,10 @@ static int _resource_spec_init(void)
+ */
+ static int _resource_spec_init(void)
+ {
++#if defined(__FreeBSD__)
++ debug("FreeBSD: Skipping system cpuset and memory cgroup setup");
++ return SLURM_SUCCESS;
++#endif
+ fini_system_cgroup(); /* Prevent memory leak */
+ if (_core_spec_init() != SLURM_SUCCESS)
+ error("Resource spec: core specialization disabled");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 11:24 PM (2 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28282321
Default Alt Text
D52138.1775517878.diff (2 KB)
Attached To
Mode
D52138: sysutils/slurm-wlm: added files/patch-src_slurmd_slurmd_slurmd.c
Attached
Detach File
Event Timeline
Log In to Comment