From e3d1785285dc6fd94a0e79f47dae5edd36c92793 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 24 Oct 2025 15:38:30 +0200 Subject: [PATCH 1/2] Run a shell in the allocated node with salloc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default, salloc will open a new shell in the *current* node instead of in the allocated node. This often causes users to leave the extra shell running once the allocation ends. Repeating this process several times causes chains of shells. By running the shell in the remote node, once the allocation ends the shell finishes as well. Fixes: https://jungle.bsc.es/git/rarias/jungle/issues/174 See: https://slurm.schedmd.com/faq.html#prompt Reviewed-by: Aleix Boné --- m/module/slurm-common.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/m/module/slurm-common.nix b/m/module/slurm-common.nix index 180e2a54..d0d06511 100644 --- a/m/module/slurm-common.nix +++ b/m/module/slurm-common.nix @@ -86,9 +86,7 @@ in { # when a task runs (srun) so we can ssh early. PrologFlags=Alloc,Contain,X11 - # LaunchParameters=ulimit_pam_adopt will set RLIMIT_RSS in processes - # adopted by the external step, similar to tasks running in regular steps - # LaunchParameters=ulimit_pam_adopt + LaunchParameters=use_interactive_step SlurmdDebug=debug5 #DebugFlags=Protocol,Cgroup ''; -- 2.49.0 From a7018250ca932679935e8e838b3aa7a6c965539f Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 27 Oct 2025 11:34:02 +0100 Subject: [PATCH 2/2] Add missing slurm package to overlay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Aleix Boné --- overlay.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay.nix b/overlay.nix index 27e4bda2..3b02ae30 100644 --- a/overlay.nix +++ b/overlay.nix @@ -51,6 +51,7 @@ let prometheus-slurm-exporter = prev.callPackage ./pkgs/slurm-exporter/default.nix { }; #pscom = callPackage ./pkgs/parastation/pscom.nix { }; # Unmaintaned #psmpi = callPackage ./pkgs/parastation/psmpi.nix { }; # Unmaintaned + slurm = import ./pkgs/slurm/default.nix { slurm = prev.slurm; }; sonar = callPackage ./pkgs/sonar/default.nix { }; stdenvClangOmpss2 = final.stdenv.override { cc = final.clangOmpss2; allowedRequisites = null; }; stdenvClangOmpss2Nanos6 = final.stdenv.override { cc = final.clangOmpss2Nanos6; allowedRequisites = null; }; -- 2.49.0