01-15-06 10:52 PM
<guybas@yahoo.com> wrote:
>I have to run arbitrary binary programs, killing each "from outside".
>This is done for a few hundred times, under speed measurements.
What a horrible design.
>It seems that each 'kill'/'killall' causes the system to leak memory.
>Thus, the system slows down and speed measurements degrade.
Kill itself almost certainly does not leak memory. If you have binaries tha
t
don't clean up properly when killed, they can leak resources. In Unix, it's
fairly difficult for this to happen, though, if all the processes are really
gone.
>Did somebody encounter such or similar problem? Any solution?
>Is there some trick to kill a process and reclaim all its resources?
When a process dies, all it's resources should be released. If that's not
happening, you'll need to figure out what specific resources these specific
binaries are failing to release and why.
My first guess would be that you're looking in the wrong place. Something
else is causing the slowdown.
--
Mark Rafn dagon@dagon.net <http://www.dagon.net/>
[ Post a follow-up to this message ]
|