Can You activate large pages in Windows 10 Home?

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

Moderator: Ras

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

Re: Can You activate large pages in Windows 10 Home?

Post by syzygy »

mwyoung wrote: Sun Dec 20, 2020 4:47 am
syzygy wrote: Sun Dec 20, 2020 1:30 am
mwyoung wrote: Sun Dec 20, 2020 12:58 am
syzygy wrote: Sat Dec 19, 2020 4:56 pm
mwyoung wrote: Fri Dec 18, 2020 3:34 am
Jouni wrote: Thu Dec 17, 2020 9:08 pm Hmm may be too complicated for just 1-2% speedup. Unless You have superhardware.
I agree. It does not matter much. Large page are a waste of time. I have tested this, and Large page are not worth the effort. So do not distress if you can not, or do not want to use them. A better version of Stockfish, who does not use Large page. Is worth more then a version of Stockfish that has Large page enabled. I no longer use versions of Stockfish that have Large page enabled.
The official Stockfish has LP enabled since quite a while, so indeed there is no need to use a non-official version to which someone has added LP support.
That is not really the point. If you can not, or do not know how to activate LP in windows. You are not missing out on anything.

And LP will not work even if you enable it in the chess engine. Unless you also activate LP support in windows. And LP is not activated by default.
A simple test gives 1749357 nps without LP, 2133080 nps with LP with a 4GB TT. Not enabling LP is difficult to justify (other than by laziness or lack of Administrator privileges on Windows).
Let it run and it degrades.... as I said.
No, it does not degrade. There is a clear technical reason why large pages are faster if the TT is sufficiently large, and that technical reason does not go away over time.
Jouni
Posts: 3800
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: Can You activate large pages in Windows 10 Home?

Post by Jouni »

Thanks Andreas. Quite complicated, but I got 9,5% speedup with your hint and 2 GB hash. But SF bench with 64 MB hash is 20% slower now, why!?
Jouni
Jouni
Posts: 3800
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: Can You activate large pages in Windows 10 Home?

Post by Jouni »

Ooops I use NNUE instead of classical :oops: . BTW if I later want to disable large pages what to do?
Jouni
User avatar
RubiChess
Posts: 658
Joined: Fri Mar 30, 2018 7:20 am
Full name: Andreas Matthies

Re: Can You activate large pages in Windows 10 Home?

Post by RubiChess »

Jouni wrote: Mon Dec 21, 2020 12:13 pm Ooops I use NNUE instead of classical :oops: . BTW if I later want to disable large pages what to do?
Why?

Best solution for disabling large pages would be an option in the engine but iirc there is no such option in Stockfish.
So the only solution is probably: Replace the Grant-UserRight with Revoke-UserRight in my script. Haven't tested but should work.
Or create and use another Windows user... well, you probably don't want that.

Regards, Andreas
Jouni
Posts: 3800
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: Can You activate large pages in Windows 10 Home?

Post by Jouni »

I didn't notice any decrease of speed after some hours use without re-boot. 9,5% speedup remains for SF and clones.
Jouni
Dann Corbit
Posts: 12817
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Can You activate large pages in Windows 10 Home?

Post by Dann Corbit »

I guess that people who see a decrease in speed over time have inadequate cooling and it is heat throttling that they are seeing.
I have an extra large water cooler in my machine and I also have a ten amp commercial fan I ventilate the case with.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Can You activate large pages in Windows 10 Home?

Post by MikeB »

Dann Corbit wrote: Mon Dec 21, 2020 8:58 pm I guess that people who see a decrease in speed over time have inadequate cooling and it is heat throttling that they are seeing.
I have an extra large water cooler in my machine and I also have a ten amp commercial fan I ventilate the case with.
Using Large Pages does not cause the computer to slowdown over time, period. That is total misinformation.
Image
Dann Corbit
Posts: 12817
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Can You activate large pages in Windows 10 Home?

Post by Dann Corbit »

MikeB wrote: Tue Dec 22, 2020 11:28 pm
Dann Corbit wrote: Mon Dec 21, 2020 8:58 pm I guess that people who see a decrease in speed over time have inadequate cooling and it is heat throttling that they are seeing.
I have an extra large water cooler in my machine and I also have a ten amp commercial fan I ventilate the case with.
Using Large Pages does not cause the computer to slowdown over time, period. That is total misinformation.
Isn't that what I just said?
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Can You activate large pages in Windows 10 Home?

Post by MikeB »

Dann Corbit wrote: Wed Dec 23, 2020 6:58 pm
MikeB wrote: Tue Dec 22, 2020 11:28 pm
Dann Corbit wrote: Mon Dec 21, 2020 8:58 pm I guess that people who see a decrease in speed over time have inadequate cooling and it is heat throttling that they are seeing.
I have an extra large water cooler in my machine and I also have a ten amp commercial fan I ventilate the case with.
Using Large Pages does not cause the computer to slowdown over time, period. That is total misinformation.
Isn't that what I just said?
LOL - I was agreeing with you! Sorry for the poorly written prose.
Image
Jouni
Posts: 3800
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: Can You activate large pages in Windows 10 Home?

Post by Jouni »

With large pages SF node speed remains constant when You increase hash. Normally it decreases. So gain improves whole time! I got speed-up:
1GB 8,4%
2GB 10,2%
4GB 11,4%
with 6 cores CPU.
Jouni