Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2025 18:30:24 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Chris Torek <chris.torek@gmail.com>, Peter 'PMc' Much <pmc@citylink.dinoex.sub.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: curious crashes when under memory pressure
Message-ID:  <9e71d8eb-74c3-4bcb-89b1-90d4f9746168@quip.cz>
In-Reply-To: <CAPx1GvfOh4g1AeOcYXC26W5jbPAgA_E_t7CW9chg4miC8c15-w@mail.gmail.com>
References:  <CAPx1GvfwqFqvMm0RkTvxa4BJStvOdG0=pNx2dCuWEzCXsqhqHw@mail.gmail.com> <slrnvnij2h.26bu.pmc@disp.intra.daemon.contact> <CAPx1GvfOh4g1AeOcYXC26W5jbPAgA_E_t7CW9chg4miC8c15-w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/01/2025 17:27, Chris Torek wrote:
> On Sat, Jan 4, 2025 at 7:01 AM Peter 'PMc' Much
> <pmc@citylink.dinoex.sub.org> wrote:
>>> I'm swapping to a zfs mirror
>>
>> Well, You shouldn't do that.
> 
> Why not? Swapping to a *file* on zfs has obvious issues, but swapping
> to a mirrored swap partition seems like it should be entirely safe. A
> bit slow (double writes) but I spent $ on RAM rather than M.2 drives
> on the theory that I can add those later as needed.

Do you have swap on ZFS or not (in the first post you said "swapping to 
a zfs mirror")? If yes then it can cause the problems in memory pressure 
because system has no free memory but ZFS needs memory.
If you want the swap on a mirror, then use separate partition on 2 disks 
and add gmirror on top of them.

Kind regards
Miroslav Lachman




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e71d8eb-74c3-4bcb-89b1-90d4f9746168>