Date: Mon, 6 Aug 2018 07:49:18 +1000 From: Trev <freebsd-arm@sentry.org> To: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: RPI3 swap experiments ["was killed: out of swap space" with: "v_free_count: 5439, v_inactive_count: 1"] Message-ID: <c6a845cc-e758-f548-fe02-bbb883567971@sentry.org> In-Reply-To: <2C0383B0-3292-48BE-90BC-24FCF2A137D4@yahoo.com> References: <6BFE7B77-A0E2-4FAF-9C68-81951D2F6627@yahoo.com> <20180802002841.GB99523@www.zefox.net> <20180802015135.GC99523@www.zefox.net> <EC74A5A6-0DF4-48EB-88DA-543FD70FEA07@yahoo.com> <201808030034.w730YURL034270@donotpassgo.dyslexicfish.net> <F788BDD8-80DC-441A-AA3E-2745F50C3B56@yahoo.com> <201808040355.w743tPsF039729@donotpassgo.dyslexicfish.net> <8CC5DF53-F950-495C-9DC8-56FCA0087259@yahoo.com> <20180804140816.GJ2884@funkthat.com> <16ABD9F0-C908-479C-960D-0C1AEDE89053@yahoo.com> <20180805014545.GK2884@funkthat.com> <2C0383B0-3292-48BE-90BC-24FCF2A137D4@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Mark Millard via freebsd-arm wrote on 08/06/18 03:39: > [I think the messages produced for OOM kills are misleading for > the type of context in this message exchange. More bottom-posted.] [CHOMP] > The book's description makes the messages produced misleading: > (copied from someone else's message) >=20 > Aug 5 01:34:24 rpi3 kernel: pid 63223 (ld.lld), uid 0, was killed: ou= t of swap space > Aug 5 01:34:26 rpi3 kernel: pid 63360 (c++), uid 0, was killed: out o= f swap space > Aug 5 01:34:26 rpi3 kernel: pid 846 (ntpd), uid 123, was killed: out = of swap space >=20 > "out of swap space" would appear to apply to the 4.4BSD style of swappi= ng but > not necessarily to more modern FreeBSD's context. >=20 > "Total Active Working Set too large" (with lots of swap left) seems to = be what folks > are running into in these rpi3/rpi2 examples. >=20 > If the messages had indicated such, this message chain would likely hav= e been > rather different: working out adjustments of the total active working s= et size. Indeed - I was running into "out of swap" on an amd64 VM with 512M=20 memory and 512M swap (source upgrade from 11.1R to 11.2R) just=20 yesterday, so I tried a few experiments which included a swap partition=20 of 256M and that produced lost of these "real" out of swap messages that = are never seen with the RPi3: Aug 5 17:54:01 sentinel kernel: swap_pager_getswapspace(32): failed Aug 5 17:54:02 sentinel last message repeated 4 times Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(25): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(20): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(18): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(17): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(18): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(15): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(32): failed Aug 5 17:54:01 sentinel kernel: swap_pager_getswapspace(32): failed Aug 5 17:54:02 sentinel last message repeated 4 times Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(25): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(20): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(18): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(17): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(18): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(15): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(32): failed Aug 5 17:54:01 sentinel kernel: swap_pager_getswapspace(32): failed Aug 5 17:54:02 sentinel last message repeated 4 times Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(25): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(20): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(18): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(17): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(18): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(15): failed Aug 5 17:54:03 sentinel kernel: swap_pager_getswapspace(32): failed =2E.. before finally: Aug 5 17:55:04 sentinel kernel: pid 81586 (llvm-tblgen), uid 0, was=20 killed: out of swap space Aug 5 17:55:37 sentinel kernel: pid 80923 (llvm-tblgen), uid 0, was=20 killed: out of swap space Aug 5 17:55:44 sentinel kernel: pid 79998 (make), uid 0, was killed:=20 out of swap space
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c6a845cc-e758-f548-fe02-bbb883567971>