Date: Fri, 31 Dec 2021 08:18:03 +0100 (CET) From: Ronald Klop via freebsd-stable <freebsd-stable@freebsd.org> To: Freebsd stable <freebsd-stable@freebsd.org>, Eugene Grosbein <eugen@grosbein.net>, lev@FreeBSD.org Subject: Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"? Message-ID: <848013987.289.1640935083795@localhost> In-Reply-To: <e65351bc-5170-b126-3ccb-c9e440c61aeb@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_288_1136817559.1640935083793 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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. > > > > > > ------=_Part_288_1136817559.1640935083793 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html><head></head><body>What are the exceptions you are seeing?<div><div><div>That would be very informational.</div><div><br /></div><div>Regards,</div><div>Ronald</div><div><br /></div><div><p><small><strong>Van:</strong> Eugene Grosbein <eugen@grosbein.net><br /><strong>Datum:</strong> 31 december 2021 04:33<br /><strong>Aan:</strong> lev@FreeBSD.org, Freebsd stable <freebsd-stable@freebsd.org><br /><strong>Onderwerp:</strong> Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"?<br /></small></p><blockquote style="margin-left: 5px; border-left: 3px solid #ccc; margin-right: 0px; padding-left: 5px;"><div class="MessageRFC822Viewer do_not_remove" id="P"><!-- P --> <!-- processMimeMessage --><div class="TextPlainViewer do_not_remove" id="P.P"><!-- P.P -->30.12.2021 20:09, Lev Serebryakov wrote:<br /> <br /> > On 30.12.2021 14:48, Lev Serebryakov wrote:<br /> > <br /> >>>> 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.<br /> >>>> What is FreeBSD equivalent for this Linux' setting?<br /> >>><br /> >>> Perhaps, you need to increase sysctl vm.max_wired that limits amount of mlock'ed memory for userland processes,<br /> >>> and don't forget about "memorylocked" limit for a process. <br /> >><br /> >> I have "vm.max_wired" absurdly high (because I thought it is in bytes):<br /> > <br /> >><br /> >> 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!<br /> > <br /> > Ooops, no, it doesn't help. It only postponed problem :-( Looks like I need to report this problem to upstream as new one.<br /> <br /> Maybe it needs much more memory to mlock().<br /> I used these settings for sysutils/memtester to be able to mlock() and test<br /> most part of newly installed physical RAM, so I used to raise it upto 80% of total 2GB RAM<br /> and was able successfully run memtester within X session without any adverse effects.<br /> <br /> I mean, try incresing it more.<br /> <br /> <br /> </div><!-- TextPlainViewer --> <hr /> </div><!-- MessageRFC822Viewer --> </blockquote><br /><br /><br /></div></div></div></body></html> ------=_Part_288_1136817559.1640935083793--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?848013987.289.1640935083795>