From owner-freebsd-current@freebsd.org Mon Jan 25 02:29:25 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6EFE34E3C7E for ; Mon, 25 Jan 2021 02:29:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-55.consmr.mail.gq1.yahoo.com (sonic315-55.consmr.mail.gq1.yahoo.com [98.137.65.31]) (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 4DPDMm3Qfdz4vZh for ; Mon, 25 Jan 2021 02:29:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1611541762; bh=D5pAwS11jGiPkygEPYw3mx6ak3bsiqALUFDJsX5NSDG=; h=From:Subject:Date:To:From:Subject:Reply-To; b=Lgi8leusDKZ3/+cgLIaJrydyOUcSpC7PJYtw+pfOixO+gzgWaO5s97S5G4NIR9cnYSzdsAf5xU5HEIRX5dE7fJRfq3s2mNny4sTANON9GELzTKDgx9qDOI3CcgJOm5TouBn5SWAT5JiE2qERitqHvXwKfNNN8hfaELKMg4nVoXrpO4hc8FDd7B1dQxgVxgff6Nz67UTLoc7iTKj/f9ewhnaAFRBZXyA9gPCd8oSrppwDIVFuanLrajhAkBiArXhUjKKiS5fdRAlJCVjnkHfzw6pNJE2kheO4g77LqzFMVFcTE5micRSKcFSgULnDqbA/OVRPYKMp9cbigar8ieOBGw== X-YMail-OSG: wMMj6skVM1lCV81Dns247DKcGMAnOQLCg0ryOhxQcLVtS8gpWAdSlHyybRwv6tF .Cr2WG6i3fJrmOFpKoHqIChDDLZJDRuL2Nq9jhBpF_KLMLIGqLmZZPjW4bdyDhZ_erSNoMcgj1MG VbI7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I3T.GZVvMAmz8Vt.IvqW5ITcT6MlWz1WRlnlen6yWrQczsBXOG9zN_ YjcN5WxvU1oSi9UzSAfg6SEn0gURpobsMq8l7ZHKh7SO5JA9K4gLq3BIpL96.g01CT37ZrlX4g19 p2vjqvbGu0KYRekYpMJJhwVtIWpHd2mUDV2R6hyyedpEZ9U8AuWSMXPCTr1bfTofja0H7fCwPTFR _VEkicH0USFiVkelroyV9MHS_SH.Q_p7.VDEOeLrwGWwmeCnccs7CWlOi0xwYpgRYaMZk0tfdh6k _WIaccbDvOfjG9QxQB6fNPwqiQITi4z.IuJbAIUQU0ElE_UZWVVO3HX9MYIG4FES6xwYX Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 25 Jan 2021 02:29:22 +0000 Received: by smtp424.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 074dba03011990c0347943fda5acbb89; Mon, 25 Jan 2021 02:29:21 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: Getting /usr/src to match specific git hash? (just about out of swap space messages and tuning) Message-Id: <98C83748-FD6A-47D8-96E8-0EED14D7CA22@yahoo.com> Date: Sun, 24 Jan 2021 18:29:19 -0800 To: Steve Kargl , Current FreeBSD X-Mailer: Apple Mail (2.3654.40.0.2.32) References: <98C83748-FD6A-47D8-96E8-0EED14D7CA22.ref@yahoo.com> X-Rspamd-Queue-Id: 4DPDMm3Qfdz4vZh X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.65.31:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.65.31:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.31:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.31:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2021 02:29:25 -0000 > (4) processes being killed with out-of-swapspace messages > even though I have 4 GB of untouched swap space. Might > be associated with (3). [This is mostly a FYI in case the material is unfamiliar.] Only believe the detailed wording of messages of the form: "was killed: out of swap space" if you also got messages of the form: "swap_pager_getswapspace(...): failed" The other causes that I know of for the "out of swap space" messages are: Sustained low free RAM [via stays-runnable process(es)]. A sufficiently delayed pageout. The swap blk uma zone was exhausted. The swap pctrie uma zone was exhausted. (This is in part because FreeBSD does not swap out runnable processes.) My personal FreeBSD builds have extra code that reports which of the 4 happened but FreeBSD itself does not report such detail. There are tunables for some of the above that make some of those not trip as soon ( /etc/sys.conf content ): # # Delay when persistent low free RAM leads to # Out Of Memory killing of processes. The # delay is a count of kernel-attempts to gain # free RAM (so not time units). vm.pageout_oom_seq=120 (The default is 12 last I knew. 120 allows a 1 GiByte armv7 to -j4 buildworld buildkernel from scratch, relative to what vm.pageout_oom_seq tunes anyway.) # # For plunty of swap/paging space (will not # run out), avoid pageout delays leading to # Out Of Memory killing of processes: vm.pfault_oom_attempts=-1 That last has the alternative structure (replace ???'s with positive integers): # # For possibly insufficient swap/paging space # (might run out), increase the pageout delay # that leads to Out Of Memory killing of # processes: #vm.pfault_oom_attempts= ??? #vm.pfault_oom_wait= ??? # (The multiplication of the two values is the # total but there are other potential tradoffs # in the factors multiplied for the same total.) For reference: # sysctl -d vm.pageout_oom_seq vm.pageout_oom_seq: back-to-back calls to oom detector to start OOM # sysctl -d vm.pfault_oom_wait vm.pfault_oom_wait: Number of seconds to wait for free pages before retrying the page fault handler # sysctl -d vm.pfault_oom_attempts vm.pfault_oom_attempts: Number of page allocation attempts in page fault handler before it triggers OOM handling I hope that helps. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)