How can I best debug the following issue from here on?
I have a python application running in a podman container which has plenty disk I/O due to a numpy memmap of two huge files, one input file which I read in chunks, process the chunk and write the result in the other mem mapped file.
- python application
- running in a podman container which has
- plenty disk I/O due to a numpy memmap of two huge files, one input file which I read in chunks, process the chunk and write the result in the other mem mapped file.
I noticed that running the application leads to increasing total RAM usage, eventually leading to OOM situations on my system.
I
- increasing total RAM usage, eventually leading to
- OOM situations on my system.
I tried finding the cause but couldn't find references in my python code which would leak memory.
- couldn't find references in my python code which would leak memory.
According to sudo htop
later:
- Mem 14.3 / 14.6G
- 0.1 MEM% (of ~16G RAM)
According to ps auwx:
| USER |
PID |
%CPU |
%MEM |
VSZ |
RSS |
TTY |
STAT |
START |
TIME |
COMMAND |
| user |
9874 |
44.9 |
0.0 |
14651602572 |
8092 |
pts/0 |
DNsl+ |
10:40 |
275:13 |
/root/.local/share/virtualenvs/app-4PlAip0Q/bin/python main.py |
Screenshots
