Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2025 12:35:35 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Graham Perrin <grahamperrin@gmail.com>
Cc:        freebsd-pkg@freebsd.org, freebsd-pkgbase@freebsd.org
Subject:   Re: pkg upgrade, vfs.zfs.arc.free_target, vfs.zfs.arc.sys_free, vm.pageout_oom_seq
Message-ID:  <ECF9B89D-8044-40C3-BC03-3B7F76180C91@yahoo.com>
In-Reply-To: <d9e94d27-3c66-4709-8067-966e92d23646@gmail.com>
References:  <D2C64F39-B6EA-47BD-B88E-B4D729BE0150@yahoo.com> <0dbf8c95-7697-4887-a890-335c3ccd80f1@gmail.com> <29ff7f7e-12ef-4d10-8ca4-15ae35ce6bae@gmail.com> <19251E67-BC92-4D71-9E71-6C7546A46D8C@yahoo.com> <ef9ca09f-72e0-4489-a779-2debc161d770@gmail.com> <9300201D-9D53-449B-9F0A-DFF6194B2830@yahoo.com> <d9e94d27-3c66-4709-8067-966e92d23646@gmail.com>

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

On Aug 31, 2025, at 11:42, Graham Perrin <grahamperrin@gmail.com> wrote:

> On 31/08/2025 09:38, Mark Millard wrote:
> 
>> …
>> 
>> It would appear that RAM==4GiBytes without SWAP would not be
>> generally supported by pkg as stands. Testing hw.physmem="4G"
>> without SWAP . . .
>> 
>> OOM KILLS result:
>> 
>> # pkg upgrade -rFreeBSD-ports -fUy
>> Checking for upgrades (1485 candidates): 100%
>> Processing candidates (1485 candidates): 100%
>> Checking integrity...Child process pid=2219 terminated abnormally: Killed
>> 
>> …
> 
> 
> Retry three or more times. The integrity check might succeed.
> 
> (I ran tests, albeit not the same set of FreeBSD-ports packages, with 1 GB memory given to a VirtualBox guest on fast physical storage. Booted from FreeBSD-14.3-RELEASE-amd64-dvd1.iso, installed all components then converted to pkgbase before first boot of the installed system. No swap in that environment.)
> 

Turns out I do not seen to involve adding any packages from
your example to my context: So far, my original set of
packages lead to -fUy failing every time it is tried for
4 GiByte of RAM (no SWAP).

What top shows is Laundry (so: known dirty pages that are
not active) growing until there can not be enough Free RAM
to meet FreeBSD's threshold requirements.

Re-enabling the SWAP and trying without your package
examples being added (so: fewer packages overall), leads
to the Maximum Swap Used being 799716Ki, with the peak
being during later Installing/Extracting activity, not
during the integrity check. So:
(RAM+SWAP) approx.= 4.8 GiBytes (so a fraction under
5 GiBYtes) --instead of a fraction under 6 GiBytes with
the extra packages.

The evidence that I see suggests to me that the required
RAM+SWAP strongly depends on what set of packages there
are to upgrade.


===
Mark Millard
marklmi at yahoo.com



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ECF9B89D-8044-40C3-BC03-3B7F76180C91>