5 men Syzygy on USB 3.0 Flash Drive

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

Moderator: Ras

ernest
Posts: 2053
Joined: Wed Mar 08, 2006 8:30 pm

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by ernest »

Laskos wrote:
ernest wrote:
Laskos wrote:With a lowly flash drive, having such speeds:
Is the access time of that flash drive, which is really what counts, just as lowly (meaning of the order of 1 ms or more) ?
0.59 ms
So on this account, that flash drive is not bad at all ! 8-)
(of course it ain't SSD...)
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by zullil »

Laskos wrote:
syzygy wrote:
Laskos wrote:The NPS is also higher by 7%, explaining the Elo difference. I was under impression that 5 men Syzygy on HDD would perform almost identically to flash or even SSD, as all the files are cached into RAM.
At very short time control it could make a difference. That should disappear if you type

Code: Select all

type *.rtbw >nul
before the test (obviously from the directory with the files that are going to be accessed by that test).
If I am not doing something wrong, still seems 6% faster on flash.
You entered this command twice? Once in the directory that contains the .rtbw files on the flash drive, and then again in the directory that contains the same files on your hard drive?
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by Laskos »

zullil wrote:
Laskos wrote:
syzygy wrote:
Laskos wrote:The NPS is also higher by 7%, explaining the Elo difference. I was under impression that 5 men Syzygy on HDD would perform almost identically to flash or even SSD, as all the files are cached into RAM.
At very short time control it could make a difference. That should disappear if you type

Code: Select all

type *.rtbw >nul
before the test (obviously from the directory with the files that are going to be accessed by that test).
If I am not doing something wrong, still seems 6% faster on flash.
You entered this command twice? Once in the directory that contains the .rtbw files on the flash drive, and then again in the directory that contains the same files on your hard drive?
No, just on hard drive.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by zullil »

Laskos wrote:
zullil wrote:
Laskos wrote:
syzygy wrote:
Laskos wrote:The NPS is also higher by 7%, explaining the Elo difference. I was under impression that 5 men Syzygy on HDD would perform almost identically to flash or even SSD, as all the files are cached into RAM.
At very short time control it could make a difference. That should disappear if you type

Code: Select all

type *.rtbw >nul
before the test (obviously from the directory with the files that are going to be accessed by that test).
If I am not doing something wrong, still seems 6% faster on flash.
You entered this command twice? Once in the directory that contains the .rtbw files on the flash drive, and then again in the directory that contains the same files on your hard drive?
No, just on hard drive.
Weird. Then shouldn't any tablebase probe by the HDD-Stockfish read its info directly from RAM? Why wouldn't this be faster than reading from the flash drive? Then again, I have no idea how Windows handles stuff like this.
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by Laskos »

zullil wrote:
Laskos wrote:
zullil wrote:
Laskos wrote:
syzygy wrote:
Laskos wrote:The NPS is also higher by 7%, explaining the Elo difference. I was under impression that 5 men Syzygy on HDD would perform almost identically to flash or even SSD, as all the files are cached into RAM.
At very short time control it could make a difference. That should disappear if you type

Code: Select all

type *.rtbw >nul
before the test (obviously from the directory with the files that are going to be accessed by that test).
If I am not doing something wrong, still seems 6% faster on flash.
You entered this command twice? Once in the directory that contains the .rtbw files on the flash drive, and then again in the directory that contains the same files on your hard drive?
No, just on hard drive.
Weird. Then shouldn't any tablebase probe by the HDD-Stockfish read its info directly from RAM? Why wouldn't this be faster than reading from the flash drive? Then again, I have no idea how Windows handles stuff like this.
Yes, I don't understand either.
syzygy
Posts: 5774
Joined: Tue Feb 28, 2012 11:56 pm

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by syzygy »

zullil wrote:
Laskos wrote:
zullil wrote:
Laskos wrote:
syzygy wrote:
Laskos wrote:The NPS is also higher by 7%, explaining the Elo difference. I was under impression that 5 men Syzygy on HDD would perform almost identically to flash or even SSD, as all the files are cached into RAM.
At very short time control it could make a difference. That should disappear if you type

Code: Select all

type *.rtbw >nul
before the test (obviously from the directory with the files that are going to be accessed by that test).
If I am not doing something wrong, still seems 6% faster on flash.
You entered this command twice? Once in the directory that contains the .rtbw files on the flash drive, and then again in the directory that contains the same files on your hard drive?
No, just on hard drive.
Weird. Then shouldn't any tablebase probe by the HDD-Stockfish read its info directly from RAM? Why wouldn't this be faster than reading from the flash drive? Then again, I have no idea how Windows handles stuff like this.
It should, but I also don't know how Windows handles this. There should be no HDD accesses.

On Linux this trick works perfectly fine.
User avatar
Ozymandias
Posts: 1537
Joined: Sun Oct 25, 2009 2:30 am

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by Ozymandias »

Another option is to just load 5-men into a RAM drive, and point one of the engines to that path. The other one should read from the flash drive, and this time be slower.
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by Laskos »

syzygy wrote:
Laskos wrote:The NPS is also higher by 7%, explaining the Elo difference. I was under impression that 5 men Syzygy on HDD would perform almost identically to flash or even SSD, as all the files are cached into RAM.
At very short time control it could make a difference. That should disappear if you type
I checked time to depth 25 on some 300 endgame positions, single thread, fixed hash, average used time 7s per position, not too short, and the effect all but disappeared:

Flash: 34:21
HDD: 34:30

So it only appears at ultrafast. I am unable to figure out what happens with your tip to force *.rtbw into RAM, anyway, if done correctly or with RAM Disk, an improvement comes by definition, so I am not too curious to see the result.
Norm Pollock
Posts: 1078
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by Norm Pollock »

When using tablebases. particularly large files, defragmenting them is important.
syzygy
Posts: 5774
Joined: Tue Feb 28, 2012 11:56 pm

Re: 5 men Syzygy on USB 3.0 Flash Drive

Post by syzygy »

Norm Pollock wrote:When using tablebases. particularly large files, defragmenting them is important.
I wonder in what shape bittorrent typically leaves large downloaded files.