I have written a program. That takes as input an integer. Produces something. Not relevant. When the input is 15, the program works fine with memory usage 3.8% and steady.
When I increase the input to 25, memory usage increases. That is expected. But what is unexpected is that the memory usage keeps increasing and eventually it will max out and sage will get killed. I couldn't found much help online. The memory usage should not be that high.
Another crazy thing is that suppose I see 40% usage in memory and kill the program by cntrl-c but keep sage running. Then I start a new process in sage. The memory increases from 40%. As if there is some permanent stuff stored in the memory that can only be erased by shutting down sage.
The program that I am talking about is just few loops. Nothing that serious.
Thanks in advance,