Answers.Body: <p>Those appear to be options to set <em>in your Web browser,</em> which is effectively the platform that LiChess runs on.  You don't mention which browser you're using…</p>
  
  <p>Chrome uses multiple cores and thereby searches many more nodes per second, without any special attention.</p>
  
  <p>On my Mac, Firefox uses only one core, even after entering the settings you mention (using <code>about:config</code>).  However, the Linux version responds well to these settings.</p>
  
  <p>Obviously, a native chess engine would be more efficient still.  This wouldn't integrate with LiChess, however.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T07:39:32.453Z
Answers.Text: Im using firefox latest version
Answers.UserDisplayName: user21158
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T09:50:27.267Z
Answers.Text: @EagerToLearn You may have better luck with Chrome or Chromium.
Answers.UserDisplayName: Chromatix
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:52:41.357Z
Answers.Text: I no longer think its a browser issue. I just put a stockfish 7 to work on my pc and still the same 1 core behaviour is happening :'( What could I possibly do?
Answers.UserDisplayName: user21158
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:55:39.707Z
Answers.Text: +1 for your work and comments below. I think between the both of us, we have nailed it down fairly well as to what it will work with, or not.
Answers.UserDisplayName: PhishMaster
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T07:35:23.343Z
Answers.LastActivityDate: 2020-01-11T12:51:44.880Z
Answers.LastEditDate: 2020-01-11T12:51:44.880Z
Answers.UserDisplayName: Chromatix
Answers.Body: <p>I will have to take them at their word that just setting those settings will fix your problem, but here is how you do that.</p>
  
  <ol>
  <li>In the URL bar, type "about:config" (without the quotes) and hit enter.</li>
  <li>Click "Accept the Risk and Continue" (this is just because your local computer does not have an SSL certificate from an accepted authority)</li>
  <li>You will get a warning "Changing these preferences can impact Firefox performance or security", but click "Show all" which will bring up the "Advanced Preferences" page.</li>
  <li>You can either scroll down until you find those settings, or you can use the search function, but find them, and change them to "True" using the button to the very right that looks something like opposite arrows.</li>
  <li>Restart the browser just in case, and try again.</li>
  </ol>
  
  <p>Good luck.</p>
  
  <p>P.S. Although I doubt it, what you see may be a bit different since I just did that on a Windows version of Firefox, so adapt as necessary. This has less to do with being a Linux user than the browser itself.</p>
  
  <p>P.P.S. It appears that this only works on certain operating systems. @Chromatix determined that it does not work on a Mac, but does on Ubuntu.  I determined that it does not work on Windows 10, and the slider for the number of cores is missing. I then installed Chrome, and it did work on Windows 10. We both determined that it appears to limit you to four cores, regardless of how many your PC has.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:38:14.663Z
Answers.Text: These instructions do allow toggling those settings on the Mac version of Firefox.  They did not, however, enable the multithreaded version of Stockfish.
Answers.UserDisplayName: Chromatix
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:43:06.757Z
Answers.Text: I do not use Lichess, so I am not even sure where he is (or you). Are you just on the analysis board, and how do you see what cores are being used? With that, I can try to test it. That is why I prefaced my answer with: "I will have to take them at their word that just setting those settings will fix your problem". I answered the question of how to change the settings.
Answers.UserDisplayName: PhishMaster
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:50:23.403Z
Answers.Text: I just tried it on Linux, and it *does* work fully there.  The notation WASM changes to WASMX and the nodes/sec rate goes up a lot.  And yes, this is on an analysis board - I opened one of the Studies games and selected a mid-game move for an example position to analyse.
Answers.UserDisplayName: Chromatix
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:51:33.743Z
Answers.Text: I have already done that and though it almost 2x the number of nodes being calculated per second, it seemingly did little or maybe even surprisingly nothing to my cores. I am using a linux app called system monitor to check which cores are being used.
Answers.UserDisplayName: user21158
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:52:54.867Z
Answers.Text: It appears to be limited to 4 threads.  It's definitely using 4 cores on my machine, which is also 8C/16T.
Answers.UserDisplayName: Chromatix
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:54:31.787Z
Answers.Text: Funny, I just tried it on Windows, and it does not work there. :) I do not get the Cores slider. With Chrome, I did, and it worked immediately. And yes, it does seem to be limited to four cores.
Answers.UserDisplayName: PhishMaster
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-11T12:05:06.970Z
Answers.LastActivityDate: 2020-01-11T12:58:13.923Z
Answers.LastEditDate: 2020-01-11T12:58:13.923Z
Answers.UserDisplayName: PhishMaster
Body: <p>I am a lichess user who would like to be able to use my 8C/16T processor to the best of my ability, and yet when I start up a chess engine only one of my cores is working on stockfish the rest are either doing very very little of just nothing at all. Why is this happening and how can I fix it?</p>
  
  <p>I am using Linux (Ubuntu 18.04 LTS)</p>
  
  <p>This is what I was told on lichess forums:</p>
  
  <p>Both javascript.options.shared_memory and dom.postMessage.sharedArrayBuffer.withCOOP_COEP have to be set to true.</p>
  
  <p>As a very new linux user... how do I actually implement this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-01-11T12:36:44.707Z
Comments.Text: Please let me know if this really solves your problem. It would be good to know.
Comments.UserDisplayName: PhishMaster
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-01-11T12:58:57.693Z
Comments.Text: I added to my answer, and you might want to check out the "P.P.S.".
Comments.UserDisplayName: PhishMaster
Tags: <engines><stockfish><lichess><linux>
Title: Stockfish 10 working on only 1 core at a time
ThreadText: # Stockfish 10 working on only 1 core at a time
  
  (Asked by: username_0 on 2020-01-11)
  
  I am a lichess user who would like to be able to use my 8C/16T processor to the best of my ability, and yet when I start up a chess engine only one of my cores is working on stockfish the rest are either doing very very little of just nothing at all. Why is this happening and how can I fix it?
  
  I am using Linux (Ubuntu 18.04 LTS)
  
  This is what I was told on lichess forums:
  
  Both javascript.options.shared\_memory and dom.postMessage.sharedArrayBuffer.withCOOP\_COEP have to be set to true.
  
  As a very new linux user... how do I actually implement this?
  
  **Tags:** engines, stockfish, lichess, linux
  
  > **Comments:**
  > **username_1**: Please let me know if this really solves your problem. It would be good to know.  
  > **username_1**: I added to my answer, and you might want to check out the "P.P.S.".  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2020-01-11. Score: 4
  
  Those appear to be options to set *in your Web browser,* which is effectively the platform that LiChess runs on. You don't mention which browser you're using…
  
  Chrome uses multiple cores and thereby searches many more nodes per second, without any special attention.
  
  On my Mac, Firefox uses only one core, even after entering the settings you mention (using `about:config`). However, the Linux version responds well to these settings.
  
  Obviously, a native chess engine would be more efficient still. This wouldn't integrate with LiChess, however.
  
  > **Comments:**
  > **username_0**: Im using firefox latest version  
  > **username_2**: @EagerToLearn You may have better luck with Chrome or Chromium.  
  > **username_0**: I no longer think its a browser issue. I just put a stockfish 7 to work on my pc and still the same 1 core behaviour is happening :'( What could I possibly do?  
  > **username_1**: +1 for your work and comments below. I think between the both of us, we have nailed it down fairly well as to what it will work with, or not.  
  
  ---
  
  ### Answer by username_1 on 2020-01-11. Score: 3
  
  I will have to take them at their word that just setting those settings will fix your problem, but here is how you do that.
  
  1. In the URL bar, type "about:config" (without the quotes) and hit enter.
  2. Click "Accept the Risk and Continue" (this is just because your local computer does not have an SSL certificate from an accepted authority)
  3. You will get a warning "Changing these preferences can impact Firefox performance or security", but click "Show all" which will bring up the "Advanced Preferences" page.
  4. You can either scroll down until you find those settings, or you can use the search function, but find them, and change them to "True" using the button to the very right that looks something like opposite arrows.
  5. Restart the browser just in case, and try again.
  
  Good luck.
  
  P.S. Although I doubt it, what you see may be a bit different since I just did that on a Windows version of Firefox, so adapt as necessary. This has less to do with being a Linux user than the browser itself.
  
  P.P.S. It appears that this only works on certain operating systems. @username_2 determined that it does not work on a Mac, but does on Ubuntu. I determined that it does not work on Windows 10, and the slider for the number of cores is missing. I then installed Chrome, and it did work on Windows 10. We both determined that it appears to limit you to four cores, regardless of how many your PC has.
  
  > **Comments:**
  > **username_2**: These instructions do allow toggling those settings on the Mac version of Firefox.  They did not, however, enable the multithreaded version of Stockfish.  
  > **username_1**: I do not use Lichess, so I am not even sure where he is (or you). Are you just on the analysis board, and how do you see what cores are being used? With that, I can try to test it. That is why I prefaced my answer with: "I will have to take them at their word that just setting those settings will fix your problem". I answered the question of how to change the settings.  
  > **username_2**: I just tried it on Linux, and it *does* work fully there.  The notation WASM changes to WASMX and the nodes/sec rate goes up a lot.  And yes, this is on an analysis board - I opened one of the Studies games and selected a mid-game move for an example position to analyse.  
  > **username_0**: I have already done that and though it almost 2x the number of nodes being calculated per second, it seemingly did little or maybe even surprisingly nothing to my cores. I am using a linux app called system monitor to check which cores are being used.  
  > **username_2**: It appears to be limited to 4 threads.  It's definitely using 4 cores on my machine, which is also 8C/16T.  
  > **username_1**: Funny, I just tried it on Windows, and it does not work there. :) I do not get the Cores slider. With Chrome, I did, and it worked immediately. And yes, it does seem to be limited to four cores.  
  
  ---
  
  