From nobody Thu Dec 30 13:09:28 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 B732A1925FC0 for ; Thu, 30 Dec 2021 13:09:32 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JPpWw3QyPz3M8F; Thu, 30 Dec 2021 13:09:32 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.not-for.work (onlyone.not-for.work [IPv6:2a01:4f8:201:6350::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: lev/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 3ADAB2E976; Thu, 30 Dec 2021 13:09:32 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [192.168.134.16] (unknown [94.19.243.255]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.not-for.work (Postfix) with ESMTPSA id 7FFCF5DDF; Thu, 30 Dec 2021 16:09:29 +0300 (MSK) Message-ID: <418411c1-9e2a-c0a5-581a-2508d9191187@FreeBSD.org> Date: Thu, 30 Dec 2021 16:09:28 +0300 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: What is FreeBSD 12 equivalent to Linux' "sysctl -w vm.nr_hugepages=1280"? Content-Language: en-US From: Lev Serebryakov To: Eugene Grosbein , Freebsd stable Reply-To: lev@FreeBSD.org, lev@FreeBSD.org References: <431b35b0-7745-d2d7-ab04-bbf76e58608a@FreeBSD.org> <987e541a-aafd-9ae1-e243-9e58bea56ba0@grosbein.net> Organization: FreeBSD In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640869772; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NkS9o2vRHAC5nELgyba6rsVidwEZ6pjU2yeuKOb3qc4=; b=fx162RVofTdR+v9NYUxNI2DN4yShnlEsNdfMJBM0d/Z3wgp+C79U69cIh+sVXyc83TaCoW WeY+A4db/pBOxvVb4ElHYK81yY40tmgZ9/ZqPcrB6jhaxtjziv5OZi4Nd50/qZrGRKInPc BmC4XkNtByt7n6ucs6rGBmU62sgiK5ofT95l3zBcTmpFL6PZmqmSgvrA+KcYBt9Z7R7RxH lCMLr8M3Ek2Ipps5OVVKs123GbKkbaE6UZGO6na08WH5Mdgihznfvv9pngshtKKu1ujOKD M0KndSvWj+OSypicO1VWOL60OWcE6qN35/3iHsARNYn1ysG8FdxMRHnUsuj9nw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640869772; a=rsa-sha256; cv=none; b=ZxJJeHTUNH2LpxxV9ekDU1GwBNxd9JI9sHPi1k3uUNVUWzPOxDul4cR3+dHPTgX78G2J8R CI/CmE8YXC63+GCmzGnR/Ic+x5hwpQJ45OUovzJnrz4jBrEhTItABdxkpgnn4fXQ6KkjBh jId9ec13mlNOVZxHsIsn3JhcmmK4QjZqtZ9k2hAMoMNKfUinCYd2tvrfPBC5cae9JqgvLs /vGtboOynjzEoZr3rD+4J2xb9/NjwRtHXb7TxUWCUxFc1sKVedNEt4srISdvK/JddbEMHp ZsGxn06p06nMAFLC42bi+FaUxd4dZQhf8PFO9KrvoWQ8l1uCKOTA0U6CoM5S2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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