Correct.
syzygy request for info
Moderators: hgm, Rebel, chrisw
-
- Posts: 5566
- Joined: Tue Feb 28, 2012 11:56 pm
-
- Posts: 1437
- Joined: Wed Apr 21, 2010 4:58 am
- Location: Australia
- Full name: Nguyen Hong Pham
Re: syzygy request for info
Hi Ronald de Man,
From an Apple's document of "Mapping Files Into Memory" (https://developer.apple.com/library/arc ... emory.html) I have read a condition NOT to map files:
1) Do I miss somethings?
2) Are you aware and / or have code for that (not to map) condition?
Thanks
From an Apple's document of "Mapping Files Into Memory" (https://developer.apple.com/library/arc ... emory.html) I have read a condition NOT to map files:
From my reading I know your syzygy tablebase uses file mapping and many files (from 6 men) are more than "several hundred megabytes". My curious questions:The file is several hundred megabytes or more in size. Mapping large files into memory fills memory quickly and may lead to paging, which would negate the benefits of mapping the file in the first place. For large sequential read operations, disable disk caching and read the file into a small memory buffer instead.
1) Do I miss somethings?
2) Are you aware and / or have code for that (not to map) condition?
Thanks
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
The most features chess GUI, based on opensource Banksia - the chess tournament manager
-
- Posts: 5566
- Joined: Tue Feb 28, 2012 11:56 pm
Re: syzygy request for info
They're thinking of sequential read operations which would cause the whole file to be transferred into physical RAM. That is an entirely different use case.
-
- Posts: 1437
- Joined: Wed Apr 21, 2010 4:58 am
- Location: Australia
- Full name: Nguyen Hong Pham
Re: syzygy request for info
Do you think after one or few games, a large endgame file may be read out too many so it ends up to be loaded entirely into memory by mapping-file?
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
The most features chess GUI, based on opensource Banksia - the chess tournament manager
-
- Posts: 855
- Joined: Sun May 23, 2010 1:32 pm
Re: syzygy request for info
one year later I'm still here reading and studying syzygy.
I have just seen that when first reading the files, the code read the PairsData, each pairsData contains an array of pieces with defines the order of pieces.
I have just read KNNvKB files and and in all the pairsData struct contained the order of pieces seems to be: white King, black King, black Bishop, white Knight, white knight.
does it apply to all the files? or it can be that each pairdata inside a file can have different piece order?
I have just seen that when first reading the files, the code read the PairsData, each pairsData contains an array of pieces with defines the order of pieces.
I have just read KNNvKB files and and in all the pairsData struct contained the order of pieces seems to be: white King, black King, black Bishop, white Knight, white knight.
does it apply to all the files? or it can be that each pairdata inside a file can have different piece order?
-
- Posts: 5566
- Joined: Tue Feb 28, 2012 11:56 pm
Re: syzygy request for info
Why do you want to know? The file format clearly allows different piece orders. If you are going to implement it, better stick to the file format.elcabesa wrote: ↑Sun May 12, 2019 11:15 am I have just read KNNvKB files and and in all the pairsData struct contained the order of pieces seems to be: white King, black King, black Bishop, white Knight, white knight.
does it apply to all the files? or it can be that each pairdata inside a file can have different piece order?
If you still want to know the answer, have a look at the generator (or just run it).