Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"?
Date: Fri, 31 Dec 2021 07:18:03 UTC
What are the exceptions you are seeing? That would be very informational. Regards, Ronald Van: Eugene Grosbein <eugen@grosbein.net> Datum: 31 december 2021 04:33 Aan: lev@FreeBSD.org, Freebsd stable <freebsd-stable@freebsd.org> Onderwerp: Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"? > > > 30.12.2021 20:09, Lev Serebryakov wrote: > > > 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. > > Maybe it needs much more memory to mlock(). > I used these settings for sysutils/memtester to be able to mlock() and test > most part of newly installed physical RAM, so I used to raise it upto 80% of total 2GB RAM > and was able successfully run memtester within X session without any adverse effects. > > I mean, try incresing it more. > > > > > >