Memory tracked and collected by Memray far exceeds the resource limits set by Docker #691
Open
1 task done
Labels
bug
Something isn't working
Is there an existing issue for this?
Current Behavior
Hi, I am currently testing a memory usage issue. I started a Python 3.8 container using the following command and tested my program's memory usage with
memray run --live
:After a while, I found that Memray reported a maximum memory usage of 34G, which far exceeds the 16G memory limit of my container. Meanwhile, my task is still running.
When I use
docker stats
to check my container's resource usage, it shows far less than 34G:Why is this happening?
Expected Behavior
Collect the correct physical memory usage of the program.
Steps To Reproduce
Using the following command to create a container on a GPU server (Nvidia V100):
And then, using the code below and csv (20240821152459_100000_sample40000.csv)
Memray Version
1.14.0
Python Version
3.8
Operating System
Linux
Anything else?
No response
The text was updated successfully, but these errors were encountered: