Skip to content
Snippets Groups Projects
Unverified Commit 8812f311 authored by Éloïs's avatar Éloïs
Browse files

#1197 Make sure that only once each physical core is used (for Hyperthreading)

parent 48189827
No related branches found
No related tags found
2 merge requests!1220Stable/ws2p v1.1 trymerge,!1208Stable/ws2p v1.1
...@@ -38,7 +38,7 @@ export class PowEngine { ...@@ -38,7 +38,7 @@ export class PowEngine {
const cpus = os.cpus() const cpus = os.cpus()
if (os.arch().match(/arm/) || cpus[0].model.match(/Atom/)) { if (os.arch().match(/arm/) || cpus[0].model.match(/Atom/)) {
stuff.newPoW.conf.cpu /= 2; // Don't know exactly why is ARM and Atom so much saturated by PoW, so let's divide by 2 stuff.newPoW.conf.nbCores /= 2; // Make sure that only once each physical core is used (for Hyperthreading).
} }
return await this.cluster.proveByWorkers(stuff) return await this.cluster.proveByWorkers(stuff)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment