From nobody Sun Feb 27 01:10:18 2022 X-Original-To: dev-commits-src-main@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 A3E7C19E5D3B for ; Sun, 27 Feb 2022 01:10:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (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 4K5lmz2qWWz3h5h for ; Sun, 27 Feb 2022 01:10:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645924220; bh=MBKyCGqWMcLUap9P8FgFz0h0MkA2LkBG7s+nhuHduXI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=h11WPJ9Xfp9IHeJd1NBgCLZ5Tjl1VBxNzx1vGOJEdsUYzjcdJysHK3TwmXH4bGf8xARWnLEnhh937RcjO+cGvvCX9PtwOEHZ4G7RtlYHaqZTh52GmuVbTmx9KThwk2OfEreIeoU2aKTU03SMJELqVxMtzmlEim84IkvsTlgR4bnGLG2bzRVJ2qwjyzlWaP2/XP4hz4V8MraI/hkRDPTYBECW3KKfTrIYuEU3sFndLRGIDj/MvxiEjljCMEtzM1Oh0WEL/7OjSbJ93meQGyQ9PfRLQF7y0GRXePfQXNRIFfyT66EogoSvClDrKgqcSfxGcsndGmPg5H0fOafIs5nxFg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645924220; bh=f7+oZdRmNuYvEPs2vJpglJ57ksWMl0ecn1eQOZ+38kM=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=j6fL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EIpkprOrUEIfzYJinpcEcnGQLWxNHymP4.7AxCTXT7zh5rjYiyDG67AnPL8kB mgiGovb6CzKXnJ0kTk66ln8bxjY1N2IkZmSybJlwOIDhjM8Km1fx81GUyL9q.nmz7fwXebYQdIKg 5_Xgm7br3y6Dj_Ad8byOOxzlHiFBBqFZh..m7tZJzHV1HNa0runiE7eO8Dwx_3UUL.ZTpmIE.q4l eGiz.JXuwYjnOPmT8YWf_MeYoYQB09D.Ct0Tg3mAGyiTviKhg3egiHfq4fz2j7MCsn_bXiQ9XzxE w3fgop0XBhDBuRUU3vAj5MGMLCuIc1imEzABHjmmUqmOE_u3kL011kgbzMVL4fhELupnrV_7t.xx 1yzuz499JBcLa9PfVntcb6vYxbkILLEK_iUqSHk5Cv.HA7W4Crw0ypfj2oc8YClZKn91jj4L7KGQ c_eMjvcXivGitFY3dPxIglpiAOfuUBnnyCCQK4vO6K5TQUy4Cih70YR8LdaHZXNPVoUDY5qvrCBX mo_QV.qEK70OUhe5pZI5f X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sun, 27 Feb 2022 01:10:20 +0000 Received: by kubenode512.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 13e13fc81b224f28691ca119b921ae9f; Sun, 27 Feb 2022 01:10:19 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: git: 4a864f624a70 - main - vm_pageout: Print a more accurate message to the console before an OOM kill [MFC in time for 13.1?] From: Mark Millard In-Reply-To: Date: Sat, 26 Feb 2022 17:10:18 -0800 Cc: freebsd-current , dev-commits-src-main@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1EF55D96-F7E3-4AA6-A331-782362A70878.ref@yahoo.com> <1EF55D96-F7E3-4AA6-A331-782362A70878@yahoo.com> To: Mark Johnston , FreeBSD-STABLE Mailing List X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4K5lmz2qWWz3h5h X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=h11WPJ9X; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; 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)[]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_THREE(0.00)[4]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from]; MLMMJ_DEST(0.00)[dev-commits-src-main]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On 2022-Jan-15, at 07:55, Mark Johnston wrote: > On Fri, Jan 14, 2022 at 09:38:56PM -0800, Mark Millard wrote: >> Thanks. This will allow me to remove part of my personal additions >> in this area --and my having to explain the misnomer when trying >> to help someone analyze why they end up with OOM activity so they >> can figure out what to do about it. >>=20 >> There seem to be two separate sources of VM_OOM_SWAPZ. Showing >> my personal additions for them (just making them explicit in the >> sequence of messages generated): >>=20 >> diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c >> index 01cf9233329f..280621ca51be 100644 >> --- a/sys/vm/swap_pager.c >> +++ b/sys/vm/swap_pager.c >> @@ -2091,6 +2091,7 @@ swp_pager_meta_build(vm_object_t object, = vm_pindex_t pindex, daddr_t swapblk) >> 0, 1)) >> printf("swap blk zone = exhausted, " >> "increase = kern.maxswzone\n"); >> + printf("swp_pager_meta_build: swap = blk uma zone exhausted\n"); >> vm_pageout_oom(VM_OOM_SWAPZ); >> pause("swzonxb", 10); >> } else >> @@ -2121,6 +2122,7 @@ swp_pager_meta_build(vm_object_t object, = vm_pindex_t pindex, daddr_t swapblk) >> 0, 1)) >> printf("swap pctrie zone = exhausted, " >> "increase = kern.maxswzone\n"); >> + printf("swp_pager_meta_build: swap = pctrie uma zone exhausted\n"); >> vm_pageout_oom(VM_OOM_SWAPZ); >> pause("swzonxp", 10); >> } else >>=20 >> Care to comment on the distinctions and why there are two >> contexts classified as "out of swap space"? Would either >> one show the swap space as (nearly?) all used in, say, top? >> Or might one of them still end up looking like a misnomer >> from just a top (or whatever) display? >=20 > Hmm, those cases should likely be changed from "out of swap space" to > "failed to allocate swap metadata" or something like that. The above does not seem to have happened yet in main [so: 14]. Will 13.1 get an MFC of 4a864f624a70 in time, possibly with the above change also in place to fully avoid misnomer reporting that misleads folks? 4a864f624a70 listed: MFC after: 2 weeks but it has been more than a month. > . . . >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com