Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"?

From: Eugene Grosbein <eugen_at_grosbein.net>
Date: Thu, 30 Dec 2021 01:43:36 UTC
30.12.2021 7:21, Eugene Grosbein wrote:

> 29.12.2021 21:52, Lev Serebryakov wrote:
>> Hello!
>>
>>  net-p2p/monero-cli shows a lot of exceptions on FreeBSD. Monero's github [1] says, that it needs "sysctl -w vm.nr_hugepages=1280" on Linux.
>>  What is FreeBSD equivalent for this Linux' setting?
> 
> Perhaps, you need to increase sysctl vm.max_wired that limits amount of mlock'ed memory for userland processes,
> and don't forget about "memorylocked" limit for a process.

vm.max_wired counts physical memory in 4K pages for x86.