Syzygy on RAM Drive

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

Moderators: hgm, Rebel, chrisw

User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: Syzygy on RAM Drive

Post by Laskos »

syzygy wrote: I'm not in any way in competition with Eugene Nalimov. The concept of "fairness" seems to be foreign to the present topic.
I am not talking that you personally are in competition with someone, but an engine using Syzygy might be in direct competition with an engine using Nalimov, and if one consumes GBs of RAM freely, then allow the other engine, for example, to use more Hash. There is resources competition.
If you have (literally) more than enough RAM then sure, but in general no. Nalimov files are also cached in the page cache (and then separately decompressed in the engine's TB cache). Loading them on RAM disk will help during the first accesses (it will not take much time to copy some relevant parts from RAM disk into the page cache) but not in the long run (RAM available for the page cache will be much smaller).
I just did a partially conclusive test with Komodo 7a which shows that Syzygy on RAMDisk are a bit better than on HDD.

1/ Direct match K7a Syzygy RAM against K7a Syzygy HDD, partly conclusive:

Code: Select all

1'+1'' on one core
MES400.epd endgame suite
 1.  K7a Syzygy RAM           	515.0/1000	310-280-410
 2.  K7a Syzygy HDD           	415.0/1000	280-510-410
2/ K7a test on MES400.epd endgame suite for solutions and time, 5s per position:

Code: Select all

Syzygy RAM: 373/400 3:12
Syzygy HDD: 364/400 4:04 
That's a bit more conclusive.
User avatar
yurikvelo
Posts: 710
Joined: Sat Dec 06, 2014 1:53 pm

Re: Syzygy on RAM Drive

Post by yurikvelo »

syzygy wrote:If you don't use a RAM disk, upon access the relevant parts of the TB files will be cached into RAM anyway in an area called the "page cache". Once certain data is in the page cache it will stay there even between engine restarts, unless the OS needs the RAM for something else.
This is done DURING game.
When you use RamDisk you perform this costly operation BEFORE game starts.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Syzygy on RAM Drive

Post by bob »

yurikvelo wrote:
syzygy wrote:If you don't use a RAM disk, upon access the relevant parts of the TB files will be cached into RAM anyway in an area called the "page cache". Once certain data is in the page cache it will stay there even between engine restarts, unless the OS needs the RAM for something else.
This is done DURING game.
When you use RamDisk you perform this costly operation BEFORE game starts.
He explained the solution. cat <files> >/dev/null and everything is cached BEFORE you start a game. I've done this for years when using Nalimov in fact..
yorkman
Posts: 105
Joined: Thu Jul 27, 2017 10:59 pm

Re: Syzygy on RAM Drive

Post by yorkman »

Is it possible to store my 3 syzygy paths in ram on Windows, such as Win'2012 R2? I'm currently using Syzygy from SSD.

If it's possible, how do I do it? If it matters my gui is Aquarium.
mwyoung
Posts: 2727
Joined: Wed May 12, 2010 10:00 pm

Re: Syzygy on RAM Drive

Post by mwyoung »

shrapnel wrote: Sun May 25, 2014 6:44 pm RAM disks not worth it...SSDs are a much better option.
I find it better also to store the data on a fast SSD. Even with 6 man table base, and probe depth set to 0 running 32 threads. I get no slow down when testing the engines.
"The worst thing that can happen to a forum is a running wild attacking moderator(HGM) who is not corrected by the community." - Ed Schröder
But my words like silent raindrops fell. And echoed in the wells of silence.
Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

Re: Syzygy on RAM Drive

Post by Eduard »

SSD of course. I also play with 7 men. Runs well on SSD. HDD is not good enough.
mwyoung
Posts: 2727
Joined: Wed May 12, 2010 10:00 pm

Re: Syzygy on RAM Drive

Post by mwyoung »

Eduard wrote: Tue Jan 14, 2020 7:42 pm SSD of course. I also play with 7 men. Runs well on SSD. HDD is not good enough.
Yes HDD are awful, but if you are strapped for cash. I have even put Syzygy on a thumb drive and it works...
"The worst thing that can happen to a forum is a running wild attacking moderator(HGM) who is not corrected by the community." - Ed Schröder
But my words like silent raindrops fell. And echoed in the wells of silence.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Syzygy on RAM Drive

Post by MikeB »

yorkman wrote: Tue Jan 14, 2020 6:45 pm Is it possible to store my 3 syzygy paths in ram on Windows, such as Win'2012 R2? I'm currently using Syzygy from SSD.

If it's possible, how do I do it? If it matters my gui is Aquarium.
it can be done, but one has to consider how much RAM they have. 6 man syzygy takes 195GB , so if you have 512GB of ram , no problem. If you have 16Gb RAM , just let the OS take care of it.

PS the long hyphen is now the new nine on this board.
Image
Raphexon
Posts: 476
Joined: Sun Mar 17, 2019 12:00 pm
Full name: Henk Drost

Re: Syzygy on RAM Drive

Post by Raphexon »

mwyoung wrote: Tue Jan 14, 2020 8:03 pm
Eduard wrote: Tue Jan 14, 2020 7:42 pm SSD of course. I also play with 7 men. Runs well on SSD. HDD is not good enough.
Yes HDD are awful, but if you are strapped for cash. I have even put Syzygy on a thumb drive and it works...
HDDs aren't a cost-effective long term solution if you do a lot of analysis or do a lot of computer tournaments because the constant reads will kill that HDD.
Especially 7 man TBs will chew that thing up.
Zenmastur
Posts: 919
Joined: Sat May 31, 2014 8:28 am

Re: Syzygy on RAM Drive

Post by Zenmastur »

Laskos wrote: Fri May 23, 2014 10:19 pm On a 1GB RAMDisk I put the 5-men Syzygy (both WDL and DTZ), and let the top engines play with and without Syzygy at 1' + 1'', on one core. Balanced endgame positions up to 12 men (had to suffer many draws with these balanced endgame positions).

…snip...

Within error margins, but it seems that SF (Ronald's 22.05 build) gains more from Syzygy than the other two.
It's an interesting test I'm just not sure I see a lot of use for this using 5 man TB. At very short time control it may help but at longer time control do 5-man TB's actual increase ELO or save any time vice no TB's?

One thing I would be interested in is the difference in maximum probe rate of a ramdisk vs SSD vs HDD as the core count increases from 1 to X. This clearly depends on the speed the cores are running at but most modern CPU's run between 3.5 Ghz and 4.0 Ghz stock. I'm sure at some point, with enough cores probing the TB an SSD will become read saturated. It would be interesting to know about how many cores at what core speed is required to do this on an “average” SSD.

Regards,

Zenmastur
Only 2 defining forces have ever offered to die for you.....Jesus Christ and the American Soldier. One died for your soul, the other for your freedom.