Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f84de7e9 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

Add total RAM size to hardware page

parent 46ebf4c8
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ class G5KHardwareGenerator < WikiGenerator
hdds = 0
ssds = 0
storage_space = 0
ram = 0
@global_hash['sites'].sort.to_h.each do |site_uid, site_hash|
clusters += site_hash['clusters'].length
......@@ -39,6 +40,7 @@ class G5KHardwareGenerator < WikiGenerator
next if node_hash['status'] == 'retired'
nodes += 1
cores += node_hash['architecture']['nb_cores']
ram += node_hash['main_memory']['ram_size']
if node_hash['gpu_devices']
gpus += node_hash['gpu_devices'].length
end
......@@ -57,6 +59,7 @@ class G5KHardwareGenerator < WikiGenerator
* #{nodes} nodes
* #{cores} CPU cores
* #{gpus} GPUs
* #{G5K.get_size(ram)} RAM
* #{ssds} SSDs and #{hdds} HDDs on nodes (total: #{G5K.get_size(storage_space, 'metric')})
EOF
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment