|
|
|
|
|
by eru
4 days ago
|
|
> I don't recommend this to paper over memory leaks -- you still need to fix those! But it results in tremendous stability. I'm not actually sure you really need to chase after slow leaks? It feels dirty, but honestly, restarting each part of the system randomly around once a day is good anyway. (Or once a week as you say.) If you can leak faster than that: sure, fix it. But if you slowly leak a few MiB per hour of running, you might just ignore it? |
|
> Subject: Re: Does memory leak?
> Date: 1995/03/31
> This sparked an interesting memory for me. I was once working with a customer who was producing on-board software for a missile. In my analysis of the code, I pointed out that they had a number of problems with storage leaks. Imagine my surprise when the customers chief software engineer said "Of course it leaks". He went on to point out that they had calculated the amount of memory the application would leak in the total possible flight time for the missile and then doubled that number. They added this much additional memory to the hardware to "support" the leaks. Since the missile will explode when it hits its target or at the end of its flight, the ultimate in garbage collection is performed without programmer intervention.