Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ProfiT-HPC
aggregator
Commits
af4f1a2c
Commit
af4f1a2c
authored
May 15, 2020
by
Azat Khuziyakhmetov
Browse files
fixed bug with allocated memory
parent
cf9493c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/influx/influxdb_wrapper.py
View file @
af4f1a2c
...
...
@@ -63,7 +63,7 @@ def get_aggregator(job_id, type="text"):
for
node_id
in
sorted
(
data
[
"node"
]):
if
node_id
not
in
allocated_nodes
:
continue
noded
=
data
[
"node"
][
node_id
]
new_node
=
NodeData
()
...
...
@@ -80,9 +80,9 @@ def get_aggregator(job_id, type="text"):
new_node
.
alloc_mem
=
memd
.
get
(
node_id
)
else
:
ncpus
=
noded
.
get
(
"sockets"
)
*
noded
.
get
(
"cores_per_socket"
)
*
noded
.
get
(
"virt_thr_core"
)
nmem
=
int
(
cud
.
get
(
node_id
)
*
noded
.
get
(
"main_mem"
)
/
ncpus
)
new_node
.
alloc_mem
=
nmem
nmem
=
int
(
cud
.
get
(
node_id
)
*
noded
.
get
(
"main_mem"
)
/
ncpus
/
1000000
)
#in MB
new_node
.
alloc_mem
=
nmem
# for now we just account hyperthreading
new_node
.
phys_thr_core
=
1
new_node
.
virt_thr_core
-=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment