**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.

I noticed that running the application leads to **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.

<hr>

According to `sudo htop`
- the application itself **does not consume the memory** when accounting for resident memory size only, which it defines as text sections + data sections + stack usage.


- Mem 11.0G / 14.6G
- 18.7 MEM% (of ~16G RAM)

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

<hr>

**Screenshots**


[![htop][1]][1]
[![htop][2]][2]


 [1]: https://i.sstatic.net/7YJIoreK.png
 [2]: https://i.sstatic.net/mLZa60jD.png