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

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e65351bc-5170-b126-3ccb-c9e440c61aeb>