[PATCH] D140425: [BOLT] Fix hugify on new Linux kernels

Maksim Panchenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 13:27:14 PST 2023


maksfb added a comment.

In D140425#4010440 <https://reviews.llvm.org/D140425#4010440>, @yota9 wrote:

> @maksfb I'm just not completely understand why mlock has something todo with it? Why the binary memory even get locked on startup?

I've used the code from HHVM's hugify (https://github.com/facebook/hhvm/blob/62d67f83bd96b23f8522fb1d3fe8597bcfd7fc75/hphp/runtime/base/program-functions.cpp#L859-L863), and huge pages started to work for me. I'm not entirely sure why the memory was locked in the first place.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140425/new/

https://reviews.llvm.org/D140425



More information about the llvm-commits mailing list