Sulev-Madis Silber <freebsd-current-freebsd-org111_at_ketas.si.pri.ee> wrote on
Date: Wed, 23 Apr 2025 02:04:28 UTC :

> yes, 2 * 8g partitions on separate disks, so i have 16g swap
> 
> . . .
> 
> >> >Van: Sulev-Madis Silber <freebsd-current-freebsd-org...@ketas.si.pri.ee>
> >> >Datum: maandag, 21 april 2025 03:25
> >> >. . .
> >> >>
> >> >> others don't get it at all and only suggest adding more than 4g ram
> 
> . . .

I have no clue if this will be of any help.

For 64-bit systems, having total SWAP much greater than,
say, 3.6*RAM normally produces a warning about potentially
being in a mistuned state. They look like, for example:

warning: total configured swap (477183 pages) exceeds maximum recommended 
amount (466816 pages).
warning: increase kern.maxswzone or reduce amount of swap.

If I understand right, adjusting kern.maxswzone makes other
tradeoffs that I do not know the details of. Thus I avoid
getting the messages by adjusting the SWAP space size
instead. I've been told that the messages suggest a higher
likelihood of deadlocks happening while managing the memory
space.(Others may known what they are doing with
kern.maxswzone adjustments and could judge the tradeoffs.)

Are you getting such messages on your console or
that you can see from "dmesg -a" or in
/var/log/messages ?

(The detailed multiplier changes some from system
update to system update. I can not report a fixed
multiplier. I leave margin to make it unlikely that
I'd get the notice across various updates.)

3.6 * 4 GiBytes == 14.4 GiBytes SWAP, as an example.
Then RAM+SWAP == 4.6*RAM, so 18.4 GiBytes or so as a
memory space.


===
Mark Millard
marklmi at yahoo.com


Reply via email to