Speed increase, kn/s, %, Stockfish

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Magnum
Posts: 184
Joined: Thu Feb 04, 2021 10:24 pm
Full name: Arnold Magnum

Speed increase, kn/s, %, Stockfish

Post by Magnum »

Let's say Stockfish is running with 100000 kn/s.
Would we see a speed increase or decrease if we change some of the following things:
How many % faster would you expect for each of them?
What would be the 3 biggest speed improvements in your opinion?

-Multithreading/Hyperthreading -> on/off
-RAM LPDDR5X 8500 -> LPDDR6 17000 MT/s
-128 -> 256 GB RAM
-memory bandwidth doubled
-4 memory channels -> 8 memory channels (octa channel)
-SSD speed doubled
-PCI 4.0 -> PCI 5.0
-PCI 4.0 -> PCI Express 6.0
-L1 cache doubled
-L2 cache doubled
-L3 cache doubled
Ras
Posts: 2495
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Speed increase, kn/s, %, Stockfish

Post by Ras »

Magnum wrote: Wed Nov 29, 2023 11:43 pmWhat would be the 3 biggest speed improvements in your opinion?
Everything rather minor compared to hyperthreading which should yield +50% raw NPS - though the increase in strength would be much lower because splitting up the raw NPS into twice as many threads means that more redundant calculations are done that wouldn't be performed without that split in the first place.
Rasmus Althoff
https://www.ct800.net
Magnum
Posts: 184
Joined: Thu Feb 04, 2021 10:24 pm
Full name: Arnold Magnum

Re: Speed increase, kn/s, %, Stockfish

Post by Magnum »

Ras wrote: Thu Nov 30, 2023 12:57 am
Magnum wrote: Wed Nov 29, 2023 11:43 pmWhat would be the 3 biggest speed improvements in your opinion?
Everything rather minor compared to hyperthreading which should yield +50% raw NPS - though the increase in strength would be much lower because splitting up the raw NPS into twice as many threads means that more redundant calculations are done that wouldn't be performed without that split in the first place.
Do you mean:

CPU A, hyperthreading off = 50000 kn/s
vs
-CPU A, hyperthreading on = 75000 kn/s = +1 elo
-CPU B, hyperthreading off = 75000 kn/s = +5 elo
Ras
Posts: 2495
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Speed increase, kn/s, %, Stockfish

Post by Ras »

Magnum wrote: Sun Dec 03, 2023 3:20 pmCPU A, hyperthreading off = 50000 kn/s
vs
-CPU A, hyperthreading on = 75000 kn/s = +1 elo
-CPU B, hyperthreading off = 75000 kn/s = +5 elo
Yes, something like that. The +Elo uplifts understood just as example numbers, but the third case will have clearly more Elo than the second case.
Rasmus Althoff
https://www.ct800.net
Magnum
Posts: 184
Joined: Thu Feb 04, 2021 10:24 pm
Full name: Arnold Magnum

Re: Speed increase, kn/s, %, Stockfish

Post by Magnum »

Ras wrote: Sun Dec 03, 2023 9:45 pm
Magnum wrote: Sun Dec 03, 2023 3:20 pmCPU A, hyperthreading off = 50000 kn/s
vs
-CPU A, hyperthreading on = 75000 kn/s = +1 elo
-CPU B, hyperthreading off = 75000 kn/s = +5 elo
Yes, something like that. The +Elo uplifts understood just as example numbers, but the third case will have clearly more Elo than the second case.
-Hyperthreading off =
50000kn/s = +0 elo
55000kn/s = +1 elo - CPU C
60000kn/s = +2 elo
65000kn/s = +3 elo
70000kn/s = +4 elo
75000kn/s = +5 elo - CPU B

-Hyperthreading on =
50000kn/s = +0 elo
55000kn/s = +0.2 elo
60000kn/s = +0.4 elo
65000kn/s = +0.6 elo
70000kn/s = +0.8 elo
75000kn/s = +1 elo - CPU A

-CPU C hyperthreading off = 55000kn/s

-CPU A hyperthreading on 75000kn/s vs CPU C hyperthreading off 55000kn/s = same elo