Cfish is back!

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

Moderators: hgm, Rebel, chrisw

syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish is back!

Post by syzygy »

syzygy wrote: Thu Jul 09, 2020 12:35 pm Unfortunately the node counts of longer benches are still off :-)
For example bench 512 1 24: 207806902 for Cfish, 209367314 for SF.

512 is just a number I picked. For other hash sizes the depth from where node counts start to differ may be lower or higher than 24.
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish is back!

Post by syzygy »

syzygy wrote: Thu Jul 09, 2020 1:13 pm
syzygy wrote: Thu Jul 09, 2020 12:35 pm Unfortunately the node counts of longer benches are still off :-)
For example bench 512 1 24: 207806902 for Cfish, 209367314 for SF.

512 is just a number I picked. For other hash sizes the depth from where node counts start to differ may be lower or higher than 24.
It seems I missed the patch that decided that Stockfish should not evaluate this position as a draw:
[d]8/8/5k1p/8/7p/7K/8/8 b - - 1 11
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Cfish is back!

Post by MikeB »

syzygy wrote: Sat Jul 11, 2020 4:07 pm
syzygy wrote: Thu Jul 09, 2020 1:13 pm
syzygy wrote: Thu Jul 09, 2020 12:35 pm Unfortunately the node counts of longer benches are still off :-)
For example bench 512 1 24: 207806902 for Cfish, 209367314 for SF.

512 is just a number I picked. For other hash sizes the depth from where node counts start to differ may be lower or higher than 24.
It seems I missed the patch that decided that Stockfish should not evaluate this position as a draw:
[d]8/8/5k1p/8/7p/7K/8/8 b - - 1 11
Good catch Ronald, I had just tracked it down the simplification patch made on March 14 and you had already had posted a comment about the same patch on Github.
Image
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish is back!

Post by syzygy »

With this fixed in Stockfish, bench 512 1 30 returns identical node counts.
MOBMAT
Posts: 385
Joined: Sat Feb 04, 2017 11:57 pm
Location: USA

Re: Cfish is back!

Post by MOBMAT »

is there a link to builds?
i7-6700K @ 4.00Ghz 32Gb, Win 10 Home, EGTBs on PCI SSD
Benchmark: Stockfish15.1 NNUE x64 bmi2 (nps): 1277K
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish is back!

Post by syzygy »

syzygy wrote: Thu Jul 09, 2020 12:35 pm I also noticed that, on my laptop, Cfish and SF are about equal in speed when I set the hash size to 1024 or higher. I haven't tried on my desktop yet, but this surprised me a bit.
It seems support for transparent large pages on Linux was accidentally disabled quite some time ago in this patch:
https://github.com/syzygy1/Cfish/commit ... 30521a6b81

This makes a difference if /sys/kernel/mm/transparent_hugepage/enabled is set to "madvise".
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Cfish is back!

Post by MikeB »

MOBMAT wrote: Sat Jul 11, 2020 8:40 pm is there a link to builds?
https://abrok.eu/stockfish/ - cfish was already correct
Image
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Cfish is back!

Post by zullil »

syzygy wrote: Sat Jul 11, 2020 11:10 pm
syzygy wrote: Thu Jul 09, 2020 12:35 pm I also noticed that, on my laptop, Cfish and SF are about equal in speed when I set the hash size to 1024 or higher. I haven't tried on my desktop yet, but this surprised me a bit.
It seems support for transparent large pages on Linux was accidentally disabled quite some time ago in this patch:
https://github.com/syzygy1/Cfish/commit ... 30521a6b81

This makes a difference if /sys/kernel/mm/transparent_hugepage/enabled is set to "madvise".
This might explain why my system is set to "always". It was "madvise" and I recall changing it to "always". But I can't remember why. :wink: Let me revert it and check that Cfish still uses anonymous hugepages.

{EDIT} Yes, all is good.

$ cat /sys/kernel/mm/transparent_hugepage/enabled
always [madvise] never

$ cat proc/3579/smaps | grep "AnonHugePages"
AnonHugePages: 0 kB
AnonHugePages: 0 kB
AnonHugePages: 0 kB
AnonHugePages: 0 kB
AnonHugePages: 0 kB
AnonHugePages: 33554432 kB

That would be Cfish's 32 GB hash table, I assume. :D
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish is back!

Post by syzygy »

zullil wrote: Sat Jul 11, 2020 11:37 pm
syzygy wrote: Sat Jul 11, 2020 11:10 pm
syzygy wrote: Thu Jul 09, 2020 12:35 pm I also noticed that, on my laptop, Cfish and SF are about equal in speed when I set the hash size to 1024 or higher. I haven't tried on my desktop yet, but this surprised me a bit.
It seems support for transparent large pages on Linux was accidentally disabled quite some time ago in this patch:
https://github.com/syzygy1/Cfish/commit ... 30521a6b81

This makes a difference if /sys/kernel/mm/transparent_hugepage/enabled is set to "madvise".
This might explain why my system is set to "always". It was "madvise" and I recall changing it to "always".
That explains why you never complained :-)

I have now released Cfish 11a:
https://github.com/syzygy1/Cfish/releases/tag/cfish_11a
Geonerd
Posts: 79
Joined: Fri Mar 10, 2017 1:44 am

Re: Cfish is back!

Post by Geonerd »

syzygy wrote: Sun Jul 12, 2020 1:36 am
I have now released Cfish 11a:
https://github.com/syzygy1/Cfish/releases/tag/cfish_11a
Thank you for the executables! :)