From nobody Fri Dec 31 07:18:03 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0143D191F6A1 for ; Fri, 31 Dec 2021 07:18:12 +0000 (UTC) (envelope-from SRS0=LcGj=RQ=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JQGh35SfQz4kLd; Fri, 31 Dec 2021 07:18:11 +0000 (UTC) (envelope-from SRS0=LcGj=RQ=klop.ws=ronald-lists@realworks.nl) Date: Fri, 31 Dec 2021 08:18:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1640935084; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=Onfh0/heqrks3niMax9OjWRhyeGxT8NguJ4ZryDZvzE=; b=dwGzeTtDNTChAKUAlYgQHVyCx+v/bac1CYO9crsS25PB7PES6bOweubTQjfoLYOA82TRyC EOZgcH14D6FlwXaZ7LhsBUPEcc5iAPQH2x7fLwGXBGY1PY0ufaBTj5+FKv0WuGVtL1I4q3 T9HI3iSRFe/TP66zWyTz0LnSQwlUbce8xkZFua0fuHfD5UiLVdsqyzWJiD1x9vn622Rx2P 4nocZJcb8b8/gMKbLQRd9tybSykCwEK195OfznOyz2YJrMAubQiXMvrDSwVG5KS+0a6TN7 BXqaGfmidEPFtFEJ6xx5YkwnS3f5VCvEaYr04AYcc/+mc2IJ93zvoMF58hC91g== To: Freebsd stable , Eugene Grosbein , lev@FreeBSD.org Message-ID: <848013987.289.1640935083795@localhost> In-Reply-To: Subject: Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"? List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_288_1136817559.1640935083793" X-Mailer: Realworks (588.243.940e108) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4JQGh35SfQz4kLd X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: ronald-lists@klop.ws From: Ronald Klop via freebsd-stable X-Original-From: Ronald Klop X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N ------=_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 Datum: 31 december 2021 04:33 Aan: lev@FreeBSD.org, Freebsd stable 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 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--