From owner-freebsd-arm@freebsd.org Mon Aug 13 17:35:52 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3729107895F for ; Mon, 13 Aug 2018 17:35:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-3.consmr.mail.bf2.yahoo.com (sonic307-3.consmr.mail.bf2.yahoo.com [74.6.134.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 69C6D83625 for ; Mon, 13 Aug 2018 17:35:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: Hqqjg.EVM1nrg8PuqjF1V4D7bpt1xLoilSFHicTSWunF6G1WHcZbq7ImG0mzbqu JaoS_1o4QtX9mrGnI.K99_b_VwODohysXIPgPSRuZljZB_M30yLfjDvN_b_rMOpNcvLqBdhnZMlg ynHQi7gmwyYgBbj1yrP8Umz4QLPh_Hxh3pOzIbGFPuX7_u24X2FtjXa4E2C9vsH8RE5aZp8LMqwH he_1wEopF9ngRPydGwZsxlhvXrH2WDkckT5dqHwT_pyBsm1uTHmwEzssDn7.GjNKdBCXRqxipZnG 28wtBq8dxdy_NsKoslFCXn1ajRZgE__Q13bHZym9rjWqrXC.8CyLXsZ6HcOlSo7sX3SGfbJI58td mRLvvE5DBCgJNbJeDiZvQZsojYDQYoYUNEGsoF8MUip7dmIH5IfpQidP4vH6pmnOoTAQh6WRm9dc 9t2GjNq03IduGJV4Tj1H5ErL_N6IvOouhgfuiVHJUmhbxfif2GO6My9D860wLQmO0pp2YCHMe.q1 BvJ3CS59IxYEeH2PNJs4hFnOJ6OJVcgq79NXK0OE26KnoPohs8Ryyi9Mw4kUqvUubeae1VqxRxuI 1nzZzUvB7nPHXCQfVPWtOfdzu75Obp8onm0nt5Q6hFkC29nBr4ZANpyUqTSYeUHLO3bC6xdSUGI4 p3cR3u8D2t38SpFB0FY7nEObaGR_yU1FTPsg_33C3BnZRHl1xYuGzMyUBtA8oKTSFuyOLSBn2Fbq zFO4zQqyZcATYILvCgRpvgp0TOY9ljl1R5ge9QRjCSlFbmOzat9Gw0PzWI8zVjljxaq3oLLHck3K RcG9T43Nk1rUhYdhF753otTW0Ry88J6O0e1OBLyj2ZwUxFRlyPgBQXzV1FOBccmPs35En2ZgHVf. pFY9pZhsg05JiMW0vTa6MNmpNT2dc6.kNHdtx_TfVOZB6PCDk_2mGSxQi6KsWI9qAQjI3fpeCfo1 hMrCOIL1D2YibGI6b4MsKfdQe2tTjF0ocIh8qJ2gfSCIGz17jgFSPUe1.W6IJK4mBAUkukyjkVCl Z9KsV2q4dizAh Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Mon, 13 Aug 2018 17:35:45 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp407.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 7af08cc4af41d6adb610cf473cecf762; Mon, 13 Aug 2018 17:35:41 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: RPI3 swap experiments ["was killed: out of swap space" with: "v_free_count: 5439, v_inactive_count: 1"] From: Mark Millard In-Reply-To: <0D8B9A29-DD95-4FA3-8F7D-4B85A3BB54D7@yahoo.com> Date: Mon, 13 Aug 2018 10:35:38 -0700 Cc: Mark Johnston , John Kennedy , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180806155837.GA6277@raichu> <20180808153800.GF26133@www.zefox.net> <20180808204841.GA19379@raichu> <2DC1A479-92A0-48E6-9245-3FF5CFD89DEF@yahoo.com> <20180809033735.GJ30738@phouka1.phouka.net> <20180809175802.GA32974@www.zefox.net> <20180812173248.GA81324@phouka1.phouka.net> <20180812224021.GA46372@www.zefox.net> <20180813021226.GA46750@www.zefox.net> <0D8B9A29-DD95-4FA3-8F7D-4B85A3BB54D7@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 17:35:52 -0000 On 2018-Aug-12, at 8:36 PM, Mark Millard wrote: > On 2018-Aug-12, at 7:12 PM, bob prohaska = wrote: >=20 >> . . . >> Would 1024 be enough to turn OOMA off completely? That's what I = originally wanted to=20 >> try. >=20 [The 1024 is for vm.pageout_oom_seq.] I'm going to try a different wording about vm.pageout_oom_seq to address such questions: vm.pageout_oom_seq indirectly sets how long FreeBSD will tolerate Low Free RAM (by its Low Free RAM criteria). The "indirect" is because my wording is time based but the vm.pageout_oom_seq units are not. For a given environment smaller vs. larger is less time vs. more time. So, while one can make FreeBSD tolerate Low Free RAM longer (up to a point, apparently huge), no specific value directly turns off OOM (better: Low Free RAM) process killing. (Based on mathematical arithmetic. I've not analyze odd consequences of causing overflows for the code's details.) The approximation to turning off being intolerant of Low Free RAM is to have vm.pageout_oom_seq so large that you would not be willing to wait for the process kills to start. But the minimum for that is likely not obvious, so just use a fairly large figure for the int value for the architecture being tested. (rpi2 V1.1's and rpi3's have fairly large int types in C.) (I've assumed that the representation of vm.pageout_oom_seq is respected everywhere that it is used. If someplace mixes it with smaller types, this would need to be considered for what is "fairly large". This would require a code inspection.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)