From nobody Tue Nov 8 03:53:04 2022 X-Original-To: freebsd-current@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 4N5vMj3x9Mz4hFKc for ; Tue, 8 Nov 2022 03:53:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 4N5vMj0djgz3mlf for ; Tue, 8 Nov 2022 03:53:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667879598; bh=svfxvPslHlqxwuw/NRqw9/CDN1XaXhiwFoC6q6Fdi2g=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Z0QiUTh/uH2GHA+cnN0Hvkc2F+KmkuzDx+TMeFe1o+lvgix0MFltVkxUBMgRa0L5Nf7sz2fH+WzsOZGRpqzkggjCgmj8K6FA+8rqZGHnQvDShbMLYemGNUTdBtb15wHJasYwvuX7Yw1AYMF1HWcCx+zI/H/tAA8C5BuZ86lDgdV4J+q9eIQBeMkvDBvBXXJXlJ0s+Q/4beqDn59d2dRJnpq3urM0czX186oP542RbSXnbtkF9ZNd5cYs/u7Uw1z6hbRg7PL0x6V/5G4XET6e89WpzLyDuWNo4MPVx/tB3zCFNUQn5gD6j83Ht03Vyk3Wz/KW5CTgMfzaFTKX15WcIw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667879598; bh=vhmpN3dvNZiFNe6Z8W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p_YEwQsBOrcAKTA__ePlWg1nlzW9DlOA4_dtr65z21xBl.S2yV8CvJWEM9nCgEbqir h9wFZBcBQVC6b3yrfUbR923cBUb4B5OQOvK0duUcLIYELidib79YOlQ0vKJK33vBfxX8psky8CsJ k_EWU8hpFB.Vt_kXj89OpdM7rUdIjsJl5yErXrXBVaZ8j64j9P0j5K.c0Sufc8GfJYkIKiTqmUdG 2Tw1p3ab2B8c9pN672d99EGDody9huPcrwOkBaYj_acLpxTgF1c2ILoiYiikV5pauqLEZwwdnFg5 Okbax37xYuXrGJGhnhyUHwjFwbzxZxDGcpb_OwD8dHWkzyUn028KwwdlJZHSXDfDfiT7vJtLI2v5 ka_8cwOxHueSxVGA41DRSZFAZIHVEg75XxpfGoPlqH85ibdxG_HV3BS5fVSFB1bECUxfGMTGlvfx eSmYDhwVFB2u4zRWvAoWkdzz0Rl0opEG6dbN1vKa1Cx90RUksBX.8tIR1fu9ggMfTj9MGCzTIako xqqeIOH5neyYk8SsEO0YOlvQuz.bFMjvKFJ4U0_VzGH6M.b3GGklUppT2SO1oYHIdokce9VSm6sM E X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Tue, 8 Nov 2022 03:53:18 +0000 Received: by hermes--production-gq1-579bc4bddd-56gsn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 465ba13b284b16fc845b4f740172d2f9; Tue, 08 Nov 2022 03:53:14 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: 14.0-CURRENT failed to reclaim memory error in RPi 3B build From: Mark Millard In-Reply-To: Date: Mon, 7 Nov 2022 19:53:04 -0800 Cc: Warner Losh , freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: <788B97E7-AA06-4A87-BB4A-CF2602DC1AD3@yahoo.com> References: <84376CC9-B991-4BF3-AF5F-0AA09CB28339.ref@yahoo.com> <84376CC9-B991-4BF3-AF5F-0AA09CB28339@yahoo.com> To: Archimedes Gaviola X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Rspamd-Queue-Id: 4N5vMj0djgz3mlf X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-ThisMailContainsUnwantedMimeParts: N On Nov 7, 2022, at 19:28, Warner Losh wrote: >=20 > . . . > swap_pager: indefinite wait buffer: bufobj: 0, blkno: 256929, size: = 4096 > swap_pager: indefinite wait buffer: bufobj: 0, blkno: 3628, size: 4096 > swap_pager: indefinite wait buffer: bufobj: 0, blkno: 255839, size: = 40960 > pid 46153 (c++), jid 0, uid 0, was killed: a thread waited too long to = allocate a page > swap_pager: indefinite wait buffer: bufobj: 0, blkno: 255857, size: = 28672 > swap_pager: indefinite wait buffer: bufobj: 0, blkno: 3634, size: 8192 > swap_pager: indefinite wait buffer: bufobj: 0, blkno: 256037, size: = 4096 > swap_pager: indefinite wait buffer: bufobj: 0, blkno: 255320, size: = 8192 >=20 > This means that paging to the swap partition and/or swap file took too = long (> 30 seconds... that's all that indefinite means). FYI: I think the "indefinite wait buffer" bound that leads to those messages is 20 sec (the hz*20 below): /* * Wait for the pages we want to complete. VPO_SWAPINPROG is = always * cleared on completion. If an I/O error occurs, SWAPBLK_NONE * is set in the metadata for each page in the request. */ VM_OBJECT_WLOCK(object); /* This could be implemented more efficiently with aflags */ while ((ma[0]->oflags & VPO_SWAPINPROG) !=3D 0) { ma[0]->oflags |=3D VPO_SWAPSLEEP; VM_CNT_INC(v_intrans); if (VM_OBJECT_SLEEP(object, &object->handle, PSWP, "swread", hz * 20)) { printf( "swap_pager: indefinite wait buffer: bufobj: %p, blkno: %jd, size: = %ld\n", bp->b_bufobj, (intmax_t)bp->b_blkno, = bp->b_bcount); } } VM_OBJECT_WUNLOCK(object); But the "was killed: a thread waited too long to allocate a page" is tied to a total of 30 sec (3*10sec) from: vm.pfault_oom_attempts=3D 3 vm.pfault_oom_wait=3D 10 (Presuming that you had defaults at the time.) > It also means that it can't write to backing store dirty pages to give = to another process... >=20 > Typical reason is that the disk / flash is not responsive to writes = for some reason. You'll need to find why... I'd look at trims. >=20 > Or.... if you can't change the disk... you need to put less memory = pressure on it.. =3D=3D=3D Mark Millard marklmi at yahoo.com