Date: Fri, 3 Aug 2018 00:02:13 -0700 From: Mark Millard <marklmi@yahoo.com> To: Jamie Landeg-Jones <jamie@catflap.org> Cc: markj@freebsd.org, bob prohaska <fbsd@www.zefox.net>, 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: <F788BDD8-80DC-441A-AA3E-2745F50C3B56@yahoo.com> In-Reply-To: <201808030034.w730YURL034270@donotpassgo.dyslexicfish.net> References: <20180731153531.GA94742@www.zefox.net> <201807311602.w6VG2xcN072497@pdx.rh.CN85.dnsmgr.net> <20180731191016.GD94742@www.zefox.net> <23793AAA-A339-4DEC-981F-21C7CC4FE440@yahoo.com> <20180731231912.GF94742@www.zefox.net> <2222ABBD-E689-4C3B-A7D3-50AECCC5E7B2@yahoo.com> <20180801034511.GA96616@www.zefox.net> <201808010405.w7145RS6086730@donotpassgo.dyslexicfish.net> <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>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-Aug-2, at 5:34 PM, Jamie Landeg-Jones <jamie at catflap.org> = wrote: > I've now added the log for vm stats for the failure with the usb 3.0 = 32 gb drive as swap. (3 partitions of 1GB) : >=20 > 15 minute output of swapinfo, gstat -abd -I 10s, sysctl vm, and syslog = up to the fail at: >=20 > http://catflap.org/jamie/rpi3/ Your examples seem to have the structure of not having much Inactive memory but having lots of swap space and then ending up trying to page out the Inactive memory until only 1 page is left --and then killing a process despite lots of swap space being available. Mem: 564M Active, 2M Inact, 68M Laundry, 162M Wired, 97M Buf, 104M Free Device 1K-blocks Used Avail Capacity /dev/mmcsd0s3b 4194304 78204 4116100 2% then: syslog: Aug 2 10:39:57 tiffany kernel: v_free_count: 3221, = v_inactive_count: 1 syslog: Aug 2 10:39:59 tiffany kernel: pid 30593 (c++), uid 0, was = killed: out of swap space and . . . Mem: 435M Active, 18M Inact, 81M Laundry, 167M Wired, 97M Buf, 198M Free Device 1K-blocks Used Avail Capacity . . . Total 3145728 182216 2963512 6% then: syslog: Aug 3 01:04:39 tiffany kernel: v_free_count: 2777, = v_inactive_count: 1 syslog: Aug 3 01:04:42 tiffany kernel: pid 31130 (c++), uid 0, was = killed: out of swap space syslog: Aug 3 01:04:42 tiffany kernel: v_free_count: 2775, = v_inactive_count: 1 syslog: Aug 3 01:04:42 tiffany kernel: pid 31225 (c++), uid 0, was = killed: out of swap space If Inact+Laundry+Buf(?)+Free was not enough to provide sufficient additional RAM, I'd would have guessed that some Active Real Memory should then have been paged/swapped out and so RAM would be made available. (This requires the system to have left itself sufficient room in RAM for that guessed activity.) But I'm no expert at the intent or actual operation. Bob P.'s reports (for having sufficient swap space) also indicate the likes of: v_free_count: 5439, v_inactive_count: 1 So all the examples have: "v_inactive_count: 1". (So: vmd->vmd_pagequeues[PQ_INACTIVE].pq_cnt=3D=3D1 ) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F788BDD8-80DC-441A-AA3E-2745F50C3B56>