Date: Tue, 28 Jan 2020 22:55:58 +1100 From: Trev <freebsd-arm@sentry.org> To: freebsd-arm@freebsd.org Cc: freebsd-current@freebsd.org Subject: Re: OOMA kill with vm.pfault_oom_attempts="-1" on RPi3 at r357147 Message-ID: <72bb1f73-c624-061f-cb99-9baca7d32753@sentry.org> In-Reply-To: <18150258-6210-451E-A5B9-528129A05974@yahoo.com> References: <20200127190709.GA11328@www.zefox.net> <D20DCE73-29D6-4184-80BF-7698EC907B60@yahoo.com> <20200128035317.GA12644@www.zefox.net> <18150258-6210-451E-A5B9-528129A05974@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Mark Millard via freebsd-arm wrote on 28/01/2020 16:29: > The vm_pageout_oom(. . .) routine has: > . . . > if (bigproc != NULL) { > if (vm_panic_on_oom != 0) > panic("out of swap space"); > PROC_LOCK(bigproc); > killproc(bigproc, "out of swap space"); > sched_nice(bigproc, PRIO_MIN); > _PRELE(bigproc); > PROC_UNLOCK(bigproc); > } > > That is where the can-be-a-misnomer "out of swap space" > is from. Looks like it is correct for some conditions, > but not the conditions we have historically got for our > contexts. It takes looking at other messages to figure > out if it is a misnomer: Another type of message carries > the actual out-of-swap information and if that message > is not present then the one based on the above is a > misnomer. May be related... I have a Vultr VM running FreeBSD 12.1 Release amd64 under KVM with 512MB RAM and 20GB of SSD and was recently getting "out of swap space" when compiling the binutils port with make -j1. The system had a 1.5G swap file setup in fstab as: md99 none swap sw,file=/usr/swap0,late,noatime From several compile attempts, I could never see the system using more than 98MB of swap space despite the "out of swap space" messages. Jan 25 10:07:40 sentinel kernel: pid 12934 (gmake), jid 0, uid 0, was killed: out of swap space Jan 25 10:13:40 sentinel kernel: pid 13344 (cc), jid 0, uid 0, was killed: out of swap space The solution was to replace the swap file with a swap partition. While monitoring the build of binutils, no more than 98MB of swap ever seem to be used. I should note that the issue never manifested itself under FreeBSD 11.1 through 11.3 in this VM.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?72bb1f73-c624-061f-cb99-9baca7d32753>