Memory usage scaling #359
Replies: 8 comments
-
|
It turned out that I was again a bit blind and missed some features in the To enquire about the resident memory we can use:
In addition I have missed that there is a Hence what we need to do is to extend the EDIT: Caveat to the above is that |
Beta Was this translation helpful? Give feedback.
-
Here is a plot of the GPU memory usage versus the grid size. It shows:
The memory usage was recorded at each 'progress update' (i.e. every 20 iterations). However fact that the total allocations match resident memory shows that there are no allocations of any temporary variables taking place on the GPU during the run. @jagoosw Should we try to compare these numbers versus 'pen and paper' estimate of the memory usage (akin to CliMA/Oceananigans.jl#3557)? Does the ~600 bytes per grid cell look sensible? Raw numbers for reference: scaling_run_gpu_mem.csv EDIT: It was not noted before sadly :-( The above results are for runs with IO disabled. |
Beta Was this translation helpful? Give feedback.
-
|
600 bytes per cell sounds reasonable since thats ~37.5 fields and we have 3 fields (state, tendency |
Beta Was this translation helpful? Give feedback.
-
|
Just to note. I run some cases with IO today and it seems that the memory usage pattern may be different in that case! I had some issues with the calculations dying mid run with mysterious 'exception' (without the details as it was thrown while on a GPU). I suspect it may be running out of memory. I have been trying to snoop a bit running in an interactive job and peeking at Basically I will have to re-run the memory scaling study with IO and see if any differences emerge. |
Beta Was this translation helpful? Give feedback.
-
|
Interesting, thanks! I look forward to seeing the results of the scaling test with IO |
Beta Was this translation helpful? Give feedback.
-
|
After checking it seems that I have hallucinated the memory usage problems. The scaling run with IO yielded exactly the same results. As shown in the plot below, the values effectively overlap
Raw values: scaling_run_gpu_withio.csv; scaling_run_gpu_withoutio.csv I still see the problem that the 512x512x256 LOBSTER script crashes mid calculation, but if i make it report memory usage in the 'progress update' callback there is nothing unusual (uses ~ 30 GiB as expected). Last week the run that made me suspicious I made with |
Beta Was this translation helpful? Give feedback.
-
|
@AdelekeBankole Can you add the same for PISCES? |
Beta Was this translation helpful? Give feedback.
-
|
Memory scaling for PISCES, we have similar memory usage results to LOBSTER.
|
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We need to collect data on how the memory usage scales with:
The priority is to focus on the memory usage on the GPU, since the CPU is usually compute bound (or so I have been told ;-))
Tasks
CUDA.jlmemory pool. We need to check if it is feasibleBeta Was this translation helpful? Give feedback.
All reactions