Skip to content

Commit b68e44f

Browse files
instead of //32 and capped at 2000 //4 +1000 sounds more reasonable
1 parent ee13c5d commit b68e44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/defaults/slurm/slurm.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ SlurmdLogFile=/var/log/slurm/slurmd.log
7777
{% set _ = node_groups.append(node.name) %}
7878
{# MiB to MB #}
7979
{% set mem = (node.flavor.ram * 1.048576) | int %}
80-
NodeName={{ node.name }} SocketsPerBoard={{ node.flavor.vcpus }} CoresPerSocket=1 RealMemory={{ mem }} MemSpecLimit={{ [[mem//32, 2000] | max, 8000] | min }} State={{node.state }} {{"Features=" + (node.features | join(",")) if node.features is defined }}# {{ node.cloud_identifier }}
80+
NodeName={{ node.name }} SocketsPerBoard={{ node.flavor.vcpus }} CoresPerSocket=1 RealMemory={{ mem }} MemSpecLimit={{ [mem//4 + 1000| max, 8000] | min }} State={{node.state }} {{"Features=" + (node.features | join(",")) if node.features is defined }}# {{ node.cloud_identifier }}
8181
{% for partition in node.partitions %}
8282
{% if partition not in partitions %}
8383
{% set _ = partitions.update({partition: []}) %}

0 commit comments

Comments
 (0)