Fathom memory usage

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Fathom memory usage

Post by AlvaroBegue »

Hi,

I am integrating syzygy tablebases into my engine using Jon Dart's Fathom, which seems to work great. Big fan!

However, I don't have any control over how much memory it uses. Is there a cache size I can somehow configure? If not, how much memory can I expect it to use?

Thanks!
Álvaro.
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: Fathom memory usage

Post by AlvaroBegue »

Looking at `top' it looks like, after playing a few hundred games, my process is using around 600 MB of additional memory because of access to bitbases.

Do you guys think I should work on a low-memory option, or is this acceptable? I am curious what other people do in their engines.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Fathom memory usage

Post by cdani »

AlvaroBegue wrote:Looking at `top' it looks like, after playing a few hundred games, my process is using around 600 MB of additional memory because of access to bitbases.

Do you guys think I should work on a low-memory option, or is this acceptable? I am curious what other people do in their engines.
I really had done nothing special in the versions that had syz enabled. And I think also most other people had done nothing.
kbhearn
Posts: 411
Joined: Thu Dec 30, 2010 4:48 am

Re: Fathom memory usage

Post by kbhearn »

Syzygy implementations just memory map the files and let the OS handle the memory so it'll use whatever's available to it