Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: introduce early boot parameter to avoid page_ext memory overhead
The highest memory overhead from memory allocation profiling comes from page_ext objects. This overhead exists even if the feature is disabled but compiled-in. To avoid it, introduce an early boot parameter that prevents page_ext object creation. As a result we also lose ability to enable memory allocation profiling at runtime (because there is no space to store alloctag references). Runtime sysctrl becomes read-only if the feature got disabled via early boot parameter. We reuse sysctl.vm.mem_profiling boot parameter name in order to avoid introducing yet another control. This effectively turns it into an early boot parameter. Signed-off-by: Suren Baghdasaryan <surenb@google.com>
- Loading branch information