Closed linh2931 closed 1 year ago
This is not needed any more. We don't rely on actual VM size to determine how many threads to support. See https://github.com/AntelopeIO/leap/issues/1256 and https://github.com/eosnetworkfoundation/product/pull/161.
Currently we use
VmallocTotal
in/proc/meminfo
to determine how many threads allowed for EOS-VM-OC. On a 5-level paging system,VmallocTotal
might report 64PB but mmap() will not give access to the extended range unless providing a hint which we currently don't do. Investigate a way to get a correct VM size we can access.