Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 2021 16:09:28 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Eugene Grosbein <eugen@grosbein.net>, Freebsd stable <freebsd-stable@freebsd.org>
Subject:   Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"?
Message-ID:  <418411c1-9e2a-c0a5-581a-2508d9191187@FreeBSD.org>
In-Reply-To: <c1c29cb3-caad-92ac-feb7-cb43edd8eddd@FreeBSD.org>
References:  <431b35b0-7745-d2d7-ab04-bbf76e58608a@FreeBSD.org> <987e541a-aafd-9ae1-e243-9e58bea56ba0@grosbein.net> <c1c29cb3-caad-92ac-feb7-cb43edd8eddd@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 30.12.2021 14:48, Lev Serebryakov wrote:

>>>   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. 
> 
>   I have "vm.max_wired" absurdly high (because I thought it is in bytes):

> 
>   I wonder, what does it mean "1280" in Linux. If it is 1280 1MB pages, I need to increase limit. Looks like setting both max_wired and limit to 1.5GB helps, thank you!

  Ooops, no, it doesn't help. It only postponed problem :-( Looks like I need to report this problem to upstream as new one.


-- 
// Lev Serebryakov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?418411c1-9e2a-c0a5-581a-2508d9191187>