Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"?
Date: Thu, 30 Dec 2021 13:09:28 UTC
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