Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forkhead #654

Merged
merged 5 commits into from
Oct 14, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions static_inventories/forkhead_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,27 @@ all:
hosts:
forkhead:
slurm_sockets: 1
slurm_cores_per_socket: 4 # 64 after being resized
slurm_cores_per_socket: 4
slurm_real_memory: 15884
slurm_local_disk: 0
slurm_features: 'tmp12'
slurm_ethernet_interfaces:
- eth0
- eth1
compute_vm:
children:
regular: # Must be item from {{ slurm_partitions }} variable defined in group_vars/{{ stack_name }}/vars.yml
hosts:
forkhead:
vars:
slurm_sockets: 1
slurm_cores_per_socket: 4 # 64 after being resized
slurm_cores_per_socket: 4
slurm_real_memory: 15884
slurm_max_cpus_per_node: "{{ slurm_sockets * slurm_cores_per_socket - 8 }}"
slurm_max_mem_per_node: "{{ slurm_real_memory - 8 * 2048 }}"
slurm_max_cpus_per_node: "{{ slurm_sockets * slurm_cores_per_socket - 2 }}"
slurm_max_mem_per_node: "{{ slurm_real_memory - 8 * 512 }}"
Copy link
Contributor

@pneerincx pneerincx Oct 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the amount of RAM, we want to reserve for the OS and everything else that is not a Slurm job, does not depend on the amount of cores, it does not make sense to multiply values here. Instead of
slurm_max_mem_per_node: "{{ slurm_real_memory - 8 * 512 }}"
you can just use:
slurm_max_mem_per_node: "{{ slurm_real_memory - 4096 }}"
That will fail though on a small VM, which only has 4096 GB RAM in total.
slurm_max_mem_per_node: "{{ slurm_real_memory - slurm_sockets * slurm_cores_per_socket * 512 }}"
is a more flexible setup.

slurm_local_disk: 0
slurm_features: 'tmp12'
slurm_ethernet_interfaces:
- eth0
- eth1
chaperone:
hosts:
fh-chaperone:
Expand Down