aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2015-08-26 22:20:39 +0200
committerVolker Hoffmann <volker@cheleb.net>2015-08-26 22:20:39 +0200
commit1359a393de6c5f1d65aea79db39d6a7316dafee3 (patch)
treeb4f394a7588bf01d2ffb3384e2101c593b371b19
parent8da9f33b9bf8f715400a34ad313a224f2c3247e6 (diff)
fix: counted nodes instaed of slots from downed nodes
-rw-r--r--Common/derived.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/derived.py b/Common/derived.py
index eb29a14..f1d2edd 100644
--- a/Common/derived.py
+++ b/Common/derived.py
@@ -28,14 +28,14 @@ def compute_utilization(number_of_nodes_down, \
# Tasna Utilization
# 4 GTX 590 Boards per Server, 2 GPUs per Board, 5 Servers = 40 Slots
- total_tasna_slots = 40 - number_of_nodes_down['tasna']
+ total_tasna_slots = 40 - number_of_nodes_down['tasna'] * 8
allocated_tasna_slots = number_of_jobs_by_partition['tasna']['running']
utilization['tasna'] = \
float(allocated_tasna_slots) / float(total_tasna_slots)
# Vesta Utilization
# 8 K80 Boards per Server, 2 GPUs per Board, 2 Servers = 32 Slots
- total_vesta_slots = 32 - number_of_nodes_down['vesta']
+ total_vesta_slots = 32 - number_of_nodes_down['vesta'] * 16
allocated_vesta_slots = number_of_jobs_by_partition['vesta']['running']
utilization['vesta'] = \
float(allocated_vesta_slots) / float(total_vesta_slots)