Commit Graph

435 Commits

Author SHA1 Message Date
SChernykh
a3f4d91ad7 Cache QoS: fix for seting MSR 2020-07-13 20:30:44 +02:00
SChernykh
5af50b854c RandomX: added cache QoS support
False by default. If set to true, all non-mining CPU cores will not have access to L3 cache.
2020-07-13 17:23:18 +02:00
Jim Huang
3343e373e8 Adopt new SSE2NEON and reduce ARM-specific changes
This patch updated SSE2NEON [1], which contains more functions
provided by Intel intrinsics, only implemented with NEON-based
counterparts to produce the exact semantics of the intrinsics.
Consequently, ARM-specific changes against CryptoNight_arm can
be reduced as well.

[1] https://github.com/DLTcollab/sse2neon/
2020-07-11 01:55:11 +08:00
SChernykh
08d71d5144 RandomX: tweaked Ryzen code
Very small speedup
2020-07-05 16:06:59 +02:00
SChernykh
038629c093 Print error message when MSR mod fails
Make sure user knows that hashrate is worse than it could be.
2020-06-26 19:54:06 +02:00
SChernykh
683ca745a8 KawPow: optimized CPU share verification
- 2 times faster CPU share verification (11 -> 5 ms)
- 1.5 times faster light cache initialization
2020-06-26 12:31:26 +02:00
SChernykh
3292679e66 KawPow: fixed crash on old CPUs
- Use `popcnt` instruction only when it's supported
2020-06-10 21:49:43 +02:00
XMRig
a4032b9f4f Merge branch 'dev' into evo 2020-06-07 21:25:31 +07:00
SChernykh
63dd56831e Fixed GCC 10.1 issues
- Fixed uninitialized `state->x` warning
- Fixed broken code with `-O3` or `-Ofast`
2020-06-07 16:23:17 +02:00
XMRig
6fde2cc703 Merge branch 'dev' into evo 2020-06-07 20:15:12 +07:00
Matt Smith
6a0f170269 Stop linker from making stack executable
Add .note.GNU-stack section to end of AstroBWT ASM.

Signed-off-by: Matt Smith <matt@offtopica.uk>
2020-06-07 13:57:37 +01:00
SChernykh
2ab164caf2 Conceal (CCX) support 2020-06-07 01:01:45 +02:00
XMRig
a5442dbcb2 Merge branch 'evo' of https://github.com/SChernykh/xmrig into pr1713 2020-06-05 19:17:01 +07:00
SChernykh
9fd7f42e95 Reduced memory for KawPow 2020-06-05 14:01:49 +02:00
SChernykh
ee4c5712e9 Merge remote-tracking branch 'upstream/evo' into evo 2020-05-28 22:06:10 +02:00
SChernykh
2f1940ca58 Fixed hashrate and diff display for KawPow 2020-05-28 22:03:28 +02:00
XMRig
311e6a1e39 Log cleanup. 2020-05-29 02:11:29 +07:00
XMRig
306dfe8d6a Use long tags. 2020-05-28 20:32:41 +07:00
SChernykh
f24da62db0 KawPow WIP 2020-05-27 16:19:57 +02:00
XMRig
b81a80c26e Merge branch 'dev' 2020-05-23 11:08:53 +07:00
Bohan Yu
134a6f2321 Change cases of Windows include file and link library
When cross-compiling on case sensitive systems, such as Linux, there will be an Error.
2020-05-13 21:00:52 +08:00
XMRig
b6dbd4f431 Removed unnecessary check. 2020-05-09 01:36:57 +07:00
XMRig
d5096b0547 Fix build. 2020-05-09 01:26:05 +07:00
XMRig
e81a7ad64a Removed code duplicate. 2020-05-09 01:13:46 +07:00
XMRig
317dc19ce8 Code cleanup. 2020-05-05 01:55:00 +07:00
XMRig
90e32fd481 Remove unused code. 2020-05-04 02:07:38 +07:00
SChernykh
b8a706948a Optimized RandomX dataset initialization
- Use single Argon2 implemenation
- Auto-select the fastest Argon2 implementation for RandomX
2020-05-03 20:44:59 +02:00
XMRig
3eaa27e0ff Small cleanups. 2020-05-03 13:38:34 +07:00
XMRig
2771cf3582 Add 3rdparty prefix to all rapidjson includes. 2020-04-29 14:55:04 +07:00
XMRig
4f14ca77d7 Move CnAlgo 2020-04-23 12:34:26 +07:00
SChernykh
9a6baa375d Refactored CFROUND 2020-04-21 15:44:04 +02:00
SChernykh
c43a848415 Fix code style 2020-04-09 14:31:42 +02:00
SChernykh
fe96036607 RandomX JIT refactoring
- Smaller memory footprint
- A bit faster overall
2020-04-09 14:24:54 +02:00
SChernykh
3d5a35885e Fixed VM destruction 2020-04-08 08:31:53 +02:00
SChernykh
73cb010b5d Fix off-by-one error 2020-04-07 18:53:08 +02:00
SChernykh
9bd78a9603 Fixed pool lock 2020-04-07 18:48:02 +02:00
SChernykh
5449dfbc91 Use node number instead of affinity 2020-04-07 18:46:22 +02:00
SChernykh
e5d43089df Pooled allocation of RandomX VMs
+0.5% speedup on Zen2 when the whole L3 cache is used (16 threads on 3700X/3800X, 32 threads on 3950X).
2020-04-07 18:31:35 +02:00
SChernykh
f9c84ac456 Fix MacOS compilation 2020-03-11 16:35:52 +01:00
SChernykh
838bd14948 AVX2 optimized code for AstroBWT
Added "astrobwt-avx2" parameter in config.json, it's turned off ("false") by default.

4-5% speedup on CPUs with proper AVX2 support (AMD Ryzen starting with Zen2, Intel Core starting with Haswell).

There will be no speedup on the following CPUs:

- Intel Pentium/Celeron don't support AVX2
- AMD Zen/Zen+ have only half-speed AVX

GCC compiled version is faster without AVX2, MSVC compiled version is faster with AVX2
2020-03-10 22:35:14 +01:00
SChernykh
ea14d937f8 Activate MSR mod only for RandomX algorithms 2020-03-09 19:10:26 +01:00
XMRig
ed44b0c009 Move files. 2020-03-09 01:22:34 +07:00
SChernykh
c565ed93cd Fixed invalid AstroBWT hashes after algo switching 2020-03-07 16:41:33 +01:00
XMRig
a8904d2293 v5.9.0-dev 2020-03-07 21:27:55 +07:00
XMRig
1b9e3169c6 Added "coin": "keva" and post PR cleanup. 2020-03-07 20:38:44 +07:00
XMRig
f15908e924 Merge branch 'master' of https://github.com/kevacoin-project/xmrig into feature-rx-keva 2020-03-07 17:13:08 +07:00
SChernykh
1db5a6d0b8 Fixed compilation withut randomx/argon2 2020-03-06 07:22:57 +01:00
SChernykh
19fc7b6f43 AstroBWT 20-50% speedup
Skips hashes with large stage 2 size. Added configurable `astrobwt-max-size` parameter, default value is 550, min 400, max 1200, optimal value ranges from 500 to 600 depending on CPU.

- Intel CPUs get 20-25% speedup
- 1st- and 2nd-gen Ryzens get 30% speedup
- 3rd-gen Ryzens get up to 50% speedup
2020-03-05 12:20:21 +01:00
kevacoin
b02cc24ae1 Added Keva. 2020-03-04 16:23:33 -08:00
XMRig
6cfa7041f7 Sync changes with proxy. 2020-03-01 14:04:58 +07:00