Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2018 16:03:30 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        "Jedi Tek'Unum" <jedi@jeditekunum.com>, freebsd-arm@freebsd.org
Subject:   Re: RPI3 swap experiments (grace under pressure)
Message-ID:  <20180815130330.GY2340@kib.kiev.ua>
In-Reply-To: <20180815125513.GT97145@funkthat.com>
References:  <20180813021226.GA46750@www.zefox.net> <0D8B9A29-DD95-4FA3-8F7D-4B85A3BB54D7@yahoo.com> <FC0798A1-C805-4096-9EB1-15E3F854F729@yahoo.com> <20180813185350.GA47132@www.zefox.net> <FA3B8541-73E0-4796-B2AB-D55CE40B9654@yahoo.com> <20180814014226.GA50013@www.zefox.net> <02fe39af-a02c-fb6a-70b0-da3b7fd06c22@goodgas.com.au> <20180814213107.GA51051@www.zefox.net> <D04BB7AF-503F-4779-B31B-AEF2A15EA7C6@jeditekunum.com> <20180815125513.GT97145@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 15, 2018 at 05:55:13AM -0700, John-Mark Gurney wrote:
> Jedi Tek'Unum wrote this message on Tue, Aug 14, 2018 at 17:17 -0500:
> > I have one question??? when was the last time anyone saw Solaris kill a process because the system was under memory stress? In my experience, NEVER! And I wouldn???t say that the system became unreasonably unresponsive either.
> 
> At least for Solaris 2.5, they would not allow overallocation of swap...
> If you had pages that could be modified, you had to have enough swap
> storage to store a copy of those pages...  If you didn't, you'd get an
> out of memory error when trying to allocate the memory, such as forking,
> sbrk or mmap'ing...
> 
> FreeBSD has long allowed overallocation of swap because w/ early
> computers most people didn't have enough storage to handle it, and
> most memory won't be used...

There is a knob to disable overcommit in FreeBSD, see vm.overcommit
description in tuning(7). It is not very popular exactly because forking
large process requires reservation of twice memory comparing with the
real use.

I believe that the option is exercised by stress2, but I did not heard
about real-life usage, except my own long time ago.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180815130330.GY2340>