Hi, perhaps you are saving state somehow, like opening files but not closing them or appending to a list that just gets bigger. In Ubuntu you can run
lsof | wc -l

as sudo and it will show open processes. Try running it after like 10 seconds, then again every 30 seconds to see if it increases. If it does, something is opening but not closing. Could be outside of your datareading as well like in your training loop. If you try this and it does increase we can try to dig deeper