Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Statistics needed on memory leaks for chess programs

Author: Robert Hyatt

Date: 18:53:34 12/27/98

Go up one level in this thread


On December 26, 1998 at 23:58:26, Komputer Korner wrote:

>On December 24, 1998 at 09:42:11, KarinsDad wrote:
>
>>On December 24, 1998 at 03:22:36, Komputer Korner wrote:
>>>in WIN 95 without CB7 running I had 93% system resources free. After running CB
>>>7 it went down to 76%. After closing CB 7 it went back to only 89%, so a clear
>>>memory leak.
>>>--
>>>Komputer Korner
>>
>>KK,
>>
>>That is one of my pet peeve's. It takes a day or two (no big deal) to clean up
>>code so that it doesn't have memory leaks. A memory leak is a bug like any other
>>bug, it just happens to affect your overall system as opposed to the product
>>itself.
>>
>>Do you happen to have any statistics on which chess programs, databases,
>>training tools, etc. have or do not have memory leaks?
>>
>>It would be good for everyone to know this. Especially for those people running
>>chess programs in tournaments or across the net (e.g. I went looking into CB7
>>for something just before the tournament, forgot to reboot, and my program's
>>hash table wasn't as large because of it).
>>
>>Happy Holidays,
>>
>>KarinsDad
>
>good idea. I am too busy writing an article on CA 4 right now but if everybody
>would do a test on their favourite chess program we should get answers.
>--
>Komputer Korner

You are looking in the wrong place for this "leak".  If a program exits, and
resources are not freed up, it is _not_ the program that is at fault, it is the
underlying operating system that is screwed up.  Because once a process exits,
it is up to the operating system to release memory allocated by the process.

I know of no way for a user program to cause such a problem unless the operating
system is hosed.  IE this can't happen under linux unless a bug in the linux
kernel shows up...  and we don't have many of those thankfully...



This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.