Stockfish memory usage

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Jouni
Posts: 3281
Joined: Wed Mar 08, 2006 8:15 pm

Stockfish memory usage

Post by Jouni »

If I set 1 MB hash used memory is about 25 MB (no tablebases). At least Windows task manager says so. Which use has that memory?
Jouni
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Stockfish memory usage

Post by cdani »

A lot of little uses. Magic bitboards, evaluation tables, search and thread stuff...
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Stockfish memory usage

Post by syzygy »

Add to that history tables collecting statistics for improving move ordering (covered by "search stuff", I guess).
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Stockfish memory usage

Post by syzygy »

On my 64-bit Linux PC, single-threaded Stockfish with a 1 MB TT uses 12904 KB of RAM, of which 3824 KB is shared (probably mostly shared libraries).

For Cfish it is 8456/2652.