KnightX 2.5 bug

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

Moderators: hgm, Rebel, chrisw

User avatar
Guenther
Posts: 4610
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

KnightX 2.5 bug

Post by Guenther »

By accident I detected a bug (or not announced change?) in hash usage for KnightX 2.5 in xboard mode.
This version now uses around twice as much hash as expected and is not in sync with the given numbers in the cfg file.

It was still ok in version 2.4. I sent a mail to Christophe.

values from the cfg

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; HASHTABLE=value
;
; hash tables size
;
;value		program's memory size
;19		9 MB
;20		16 MB
;21		30 MB
;22		60 MB
;23		110 MB
;24		198 MB
;25		418 MB
;26		814 MB
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Edit:
His mail does still not work as reported by Norbert in 2019 and bounced back now :(
http://talkchess.com/forum3/viewtopic.p ... 01#p813401
May be CCRL has a way to inform him?
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...
User avatar
Graham Banks
Posts: 41460
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: KnightX 2.5 bug

Post by Graham Banks »

Guenther wrote: Mon Feb 01, 2021 9:02 pm By accident I detected a bug (or not announced change?) in hash usage for KnightX 2.5 in xboard mode.
This version now uses around twice as much hash as expected and is not in sync with the given numbers in the cfg file.

It was still ok in version 2.4. I sent a mail to Christophe.

values from the cfg

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; HASHTABLE=value
;
; hash tables size
;
;value		program's memory size
;19		9 MB
;20		16 MB
;21		30 MB
;22		60 MB
;23		110 MB
;24		198 MB
;25		418 MB
;26		814 MB
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Edit:
His mail does still not work as reported by Norbert in 2019 and bounced back now :(
http://talkchess.com/forum3/viewtopic.p ... 01#p813401
May be CCRL has a way to inform him?

His email and messaging through the Winboard forum can be used to contact him. :)
gbanksnz at gmail.com
Gabor Szots
Posts: 1364
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: KnightX 2.5 bug

Post by Gabor Szots »

Guenther wrote: Mon Feb 01, 2021 9:02 pm By accident I detected a bug (or not announced change?) in hash usage for KnightX 2.5 in xboard mode.
This version now uses around twice as much hash as expected and is not in sync with the given numbers in the cfg file.

It was still ok in version 2.4. I sent a mail to Christophe.

values from the cfg

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; HASHTABLE=value
;
; hash tables size
;
;value		program's memory size
;19		9 MB
;20		16 MB
;21		30 MB
;22		60 MB
;23		110 MB
;24		198 MB
;25		418 MB
;26		814 MB
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Edit:
His mail does still not work as reported by Norbert in 2019 and bounced back now :(
http://talkchess.com/forum3/viewtopic.p ... 01#p813401
May be CCRL has a way to inform him?
I use 24 and both Arena and Process Explorer report 244 MB memory usage which is about what is expected (taking into consideration the 64 MB allocated for Nalimov TB's).
Gabor Szots
CCRL testing group
User avatar
Guenther
Posts: 4610
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: KnightX 2.5 bug

Post by Guenther »

Gabor Szots wrote: Mon Feb 01, 2021 10:28 pm
Guenther wrote: Mon Feb 01, 2021 9:02 pm By accident I detected a bug (or not announced change?) in hash usage for KnightX 2.5 in xboard mode.
This version now uses around twice as much hash as expected and is not in sync with the given numbers in the cfg file.

It was still ok in version 2.4. I sent a mail to Christophe.

values from the cfg

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; HASHTABLE=value
;
; hash tables size
;
;value		program's memory size
;19		9 MB
;20		16 MB
;21		30 MB
;22		60 MB
;23		110 MB
;24		198 MB
;25		418 MB
;26		814 MB
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Edit:
His mail does still not work as reported by Norbert in 2019 and bounced back now :(
http://talkchess.com/forum3/viewtopic.p ... 01#p813401
May be CCRL has a way to inform him?
I use 24 and both Arena and Process Explorer report 244 MB memory usage which is about what is expected (taking into consideration the 64 MB allocated for Nalimov TB's).
Definitely not here under Win7-64 Ultimate. No GUI needed, just load the exe. It was confirmed while playing in CuteChess as xboard too.
And as I said above version 2.4 behaves normally... (if you have it installed as uci in Arena your test would be invalid anyway)

Image
https://rwbc-chess.de/clip/knightx_25.png
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...
User avatar
Guenther
Posts: 4610
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: KnightX 2.5 bug

Post by Guenther »

This was Christophes' answer in the WB forum now:
Hello,
In reply to the topic "KnightX 2.5 bug" on a forum:
Yes, the 2.5 version use twice the memory wanted when you set the hash table size in the config file.
This is because this version now use a cluster of two positions for each hash table entry (was one before).
This will be fixed in the next version (soon). For the moment, set the number of bits you want minus one, or set the size in the winboard gui which have precedence over the config file.
I cannot register in the forum concerned, so I cannot reply directly.

Christophe
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...
Gabor Szots
Posts: 1364
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: KnightX 2.5 bug

Post by Gabor Szots »

Guenther wrote: Tue Feb 02, 2021 11:34 am This was Christophes' answer in the WB forum now:
Hello,
In reply to the topic "KnightX 2.5 bug" on a forum:
Yes, the 2.5 version use twice the memory wanted when you set the hash table size in the config file.
This is because this version now use a cluster of two positions for each hash table entry (was one before).
This will be fixed in the next version (soon). For the moment, set the number of bits you want minus one, or set the size in the winboard gui which have precedence over the config file.
I cannot register in the forum concerned, so I cannot reply directly.

Christophe
Then my normal values are a mere coincidence. I use KnightX under Arena as a WB engine and have set 320 MB as the maximum of memory to be used.
Gabor Szots
CCRL testing group