Return correct hugePages count if NUMA mode used.
This commit is contained in:
parent
828fc065b0
commit
9df9275120
4 changed files with 27 additions and 9 deletions
|
@ -295,12 +295,9 @@ rapidjson::Value xmrig::CpuBackend::toJSON(rapidjson::Document &doc) const
|
|||
|
||||
# ifdef XMRIG_ALGO_RANDOMX
|
||||
if (d_ptr->algo.family() == Algorithm::RANDOM_X) {
|
||||
RxDataset *dataset = Rx::dataset(0); // FIXME
|
||||
if (dataset) {
|
||||
const auto rxPages = dataset->hugePages();
|
||||
pages[0] += rxPages.first;
|
||||
pages[1] += rxPages.second;
|
||||
}
|
||||
const auto rxPages = Rx::hugePages();
|
||||
pages[0] += rxPages.first;
|
||||
pages[1] += rxPages.second;
|
||||
}
|
||||
# endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue