# Report job memory allocation in "My interactive sessions". Currently only nodes and cores are reported

**URL:** https://discourse.openondemand.org/t/report-job-memory-allocation-in-my-interactive-sessions-currently-only-nodes-and-cores-are-reported/2254
**Category:** Feature Requests and Roadmap Discussion
**Tags:** feature-request
**Created:** [August 31, 2022, 10:33am UTC](https://discourse.openondemand.org/t/report-job-memory-allocation-in-my-interactive-sessions-currently-only-nodes-and-cores-are-reported/2254 "2022-08-31T10:33:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pescobar](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/pescobar/32/1073_2.png) [@pescobar](https://discourse.openondemand.org/u/pescobar)
#### Post date: [August 31, 2022, 10:33am UTC](https://discourse.openondemand.org/t/report-job-memory-allocation-in-my-interactive-sessions-currently-only-nodes-and-cores-are-reported/2254/1 "2022-08-31T10:33:26Z")

</div>

Hi,

Section “My interactive sessions” reports nodes and cores for each of the running jobs but not memory. e.g. see where is says `1 node 5 cores` and `1 node 16 cores` in this screenshot: [Interactive Sessions - BIH HPC Docs](https://bihealth.github.io/bih-cluster/ondemand/interactive/)

For many workflows the reserved memory is even more important than the reserved cores, specially in bioinformatics. It would be a nice addition if the session card for the active sessions also reports the memory. e.g. ` nodes | cores | memory`

This is not something critical for us but I am creating a feature request in case you find it interesting for future releases.

regards.

---

<div class="post-metadata">

### Author: ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)
#### Post date: [August 31, 2022, 12:59pm UTC](https://discourse.openondemand.org/t/report-job-memory-allocation-in-my-interactive-sessions-currently-only-nodes-and-cores-are-reported/2254/2 "2022-08-31T12:59:27Z")

</div>

Hi Pablo.

Thanks for the feature request. I will add it to our “to be reviewed” queue.

Thanks,  
-gerald

---

<div class="post-metadata">

### Author: ![rsettlag](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rsettlag/32/78_2.png) [@rsettlag](https://discourse.openondemand.org/u/rsettlag)
#### Post date: [August 31, 2022, 5:52pm UTC](https://discourse.openondemand.org/t/report-job-memory-allocation-in-my-interactive-sessions-currently-only-nodes-and-cores-are-reported/2254/3 "2022-08-31T17:52:00Z")

</div>

Is this something you specify via the form? Why not simply add that to the view.html.erb?

---

<div class="post-metadata">

### Author: ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)
#### Post date: [August 31, 2022, 7:14pm UTC](https://discourse.openondemand.org/t/report-job-memory-allocation-in-my-interactive-sessions-currently-only-nodes-and-cores-are-reported/2254/4 "2022-08-31T19:14:34Z")

</div>

Ideally it’s that simple, but in this case many pieces go into displaying that `session` panel. Specifically, the `nodes` and `cores` are actually calculated in a helper from the controller for the `BatchConnect::Sessions` which you can see here:

> <https://github.com/OSC/ondemand/blob/4b5f020d2937cd28a7f4dd8585bd6b410e82794b/apps/dashboard/app/helpers/batch_connect/sessions_helper.rb#L10>

This helper is later called from the partial `_panel.html.erb` but that helper is really where all the heavy lifting is done to generate those session cards, so it requires a bit of thought to implement is all, but could be done.

---

<div class="post-metadata">

### Author: ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)
#### Post date: [August 31, 2022, 8:02pm UTC](https://discourse.openondemand.org/t/report-job-memory-allocation-in-my-interactive-sessions-currently-only-nodes-and-cores-are-reported/2254/5 "2022-08-31T20:02:53Z")

</div>

Cool. Then do it if you want to.

Thanks,

Gerald Byrket

[gbyrket@osc.edu](mailto:gbyrket@osc.edu)

817-507-6993
