diff options
| author | Bitflash <admin@bitflash.network> | 2026-08-20 18:03:59 -0300 |
|---|---|---|
| committer | Bitflash <admin@bitflash.network> | 2026-08-20 18:03:59 -0300 |
| commit | f4d311a2b1be7ce1eb7082109a391099564271b9 (patch) | |
| tree | a5f7566a29fbb20d14a68144ec8a2ed0ec4e7a30 /src/randomx_pow.h | |
| parent | 721a7e46fadba3251564e2308b7b7eefcb2e9d36 (diff) | |
| parent | bfce24bc542927647ae4e5af68b71e3e56e1a291 (diff) | |
Merge pull request 'randomx: optional 2 MB large pages for ~10% more hash rate' (#69) from randomx-large-pages into main
Diffstat (limited to 'src/randomx_pow.h')
| -rw-r--r-- | src/randomx_pow.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/randomx_pow.h b/src/randomx_pow.h index 0027571..355b708 100644 --- a/src/randomx_pow.h +++ b/src/randomx_pow.h | |||
| @@ -41,4 +41,11 @@ uint256 RandomXHashWithVM(void* vm, const void* pHeader, size_t nSize); | |||
| 41 | // True when the 2 GB dataset is ready (fast mode active). | 41 | // True when the 2 GB dataset is ready (fast mode active). |
| 42 | bool RandomXFastReady(); | 42 | bool RandomXFastReady(); |
| 43 | 43 | ||
| 44 | // Ask for large (2 MB) pages for the cache, dataset and scratchpads. Set false | ||
| 45 | // by -nolargepages. Must be set before the first RandomXInit(). | ||
| 46 | extern bool fRandomXLargePages; | ||
| 47 | |||
| 48 | // Which allocations actually got large pages, for the status display. | ||
| 49 | const char* RandomXLargePagesStatus(); | ||
| 50 | |||
| 44 | #endif | 51 | #endif |