Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2018 17:30:42 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        RW <rwmaillists@googlemail.com>
Cc:        FreeBSD <freebsd-hackers@freebsd.org>, Rozhuk Ivan <rozhuk.im@gmail.com>
Subject:   Re: Sudden grow of memory in "Laundry" state
Message-ID:  <3F9246AC-0CBA-4C73-A39E-A1F6149BA079@yahoo.com>
In-Reply-To: <20181106005347.2f035e34@gumby.homeunix.com>
References:  <ce38cbfa-e1c5-776e-ef2e-2b867c9a520f@gmail.com> <20180911150849.GD92634@raichu> <104be96a-c16b-7e7c-7d0d-00338ab5a106@gmail.com> <20180928152550.GA3609@raichu> <e705099c-ea42-4985-1012-50e9fa11addd@gmail.com> <20181024211237.302b72d9@gmail.com> <981C887D-78EB-46D2-AEE5-877E269AF066@yahoo.com> <c25e19a4-d3ef-e419-06f8-8a86082dbf31@gmail.com> <E4B508E7-04CC-41BD-934B-19EE69E85800@yahoo.com> <42f6544f-830c-18c5-e1a8-0acc4c3f09cc@gmail.com> <20181027043819.GX5335@kib.kiev.ua> <20181106012107.2898f093@gmail.com> <F68000D0-6037-48C0-85BE-D6BFF1934765@yahoo.com> <20181106005347.2f035e34@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2018-Nov-5, at 16:53, RW via freebsd-hackers <freebsd-hackers at =
freebsd.org> wrote:

> On Mon, 5 Nov 2018 15:04:38 -0800
> Mark Millard via freebsd-hackers wrote:
>=20
>> On 2018-Nov-5, at 14:21, Rozhuk Ivan <rozhuk.im at gmail.com> wrote:
>>=20
>>> run, it was killed=20
>>> Nov  5 21:05:09 firewall kernel: pid 96603 (testvm), uid 0, was
>>> killed: out of swap space Nov  5 21:05:15 firewall kernel: Nov  5
>>> 21:05:09 firewall kernel: pid 96603 (testvm), uid 0, was killed:
>>> out of swap space =20
>>=20
>> Unfortunately, the wording of this message is a misnomer for what
>> drives the kills: it is actually driven by being unable to gain more
>> free memory but FreeBSD will not swap-out processes that stay =
runnable
>> (or are running), only ones that are waiting.
>=20
> When you say it wont swap-out processes, do you mean that literally, =
or
> do you mean it wont page-out from runable processes? Swapping =
processes
> shouldn't be an essential part of recovering memory, Linux doesn't =
even
> support it.

Paging is a different issue as I understand. Without paging,
no process could have a memory area bigger than RAM.

But, going in a different direction . . .

Turns out the example program in bugzilla 195882 is interesting
independent of any worries about kills or swap space use:

I ran an a.out built from the source but with 16 instead of 4
as the size controlling constant, in order use 16 GiByte for
an 8 GiByte aarch64 system.

Before the a.out run (after a fresh boot, form top):

Mem: 13M Active, 1240K Inact, 108M Wired, 28M Buf, 7757M Free
Swap: 28G Total, 28G Free

After the a.out had finished, from a separate top
run:

Mem: 2197M Active, 4937M Inact, 255M Wired, 186M Buf, 629M Free
Swap: 28G Total, 11M Used, 28G Free

No actual process (or group of them) was running using a large
amount of RAM at that point. Active and Inact are rather large.

With the system left idle, 15 minutes later or more, the
Active and Inact had not changed significantly, nor had Free.
The figures do seem odd.

=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?3F9246AC-0CBA-4C73-A39E-A1F6149BA079>