Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2025 12:36:20 -0500
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-hackers@freebsd.org
Subject:   Re: curious crashes when under memory pressure
Message-ID:  <33db3282-25c4-42fb-8d97-1918d52fa9e2@denninger.net>
In-Reply-To: <9e71d8eb-74c3-4bcb-89b1-90d4f9746168@quip.cz>
References:  <CAPx1GvfwqFqvMm0RkTvxa4BJStvOdG0=pNx2dCuWEzCXsqhqHw@mail.gmail.com> <slrnvnij2h.26bu.pmc@disp.intra.daemon.contact> <CAPx1GvfOh4g1AeOcYXC26W5jbPAgA_E_t7CW9chg4miC8c15-w@mail.gmail.com> <9e71d8eb-74c3-4bcb-89b1-90d4f9746168@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------EAgpQzSbyAyhwdGuXUSGPjU8
Content-Type: multipart/mixed; boundary="------------zMTbqTn62I4CetP0V08DHolQ";
 protected-headers="v1"
From: Karl Denninger <karl@denninger.net>
To: freebsd-hackers@freebsd.org
Message-ID: <33db3282-25c4-42fb-8d97-1918d52fa9e2@denninger.net>
Subject: Re: curious crashes when under memory pressure
References: <CAPx1GvfwqFqvMm0RkTvxa4BJStvOdG0=pNx2dCuWEzCXsqhqHw@mail.gmail.com>
 <slrnvnij2h.26bu.pmc@disp.intra.daemon.contact>
 <CAPx1GvfOh4g1AeOcYXC26W5jbPAgA_E_t7CW9chg4miC8c15-w@mail.gmail.com>
 <9e71d8eb-74c3-4bcb-89b1-90d4f9746168@quip.cz>
In-Reply-To: <9e71d8eb-74c3-4bcb-89b1-90d4f9746168@quip.cz>

--------------zMTbqTn62I4CetP0V08DHolQ
Content-Type: multipart/alternative;
 boundary="------------0y070muRTkQYtLjvUW4RHETX"

--------------0y070muRTkQYtLjvUW4RHETX
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64

DQpPbiAxLzQvMjAyNSAxMjozMCw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4gdXNlIHNlcGFyYXRlIHBh
cnRpdGlvbiBvbiAyIA0KPiBkaXNrcyBhbmQgYWRkIGdtaXJyb3Igb24gdG9wIG9mIHRoZW0u
DQo+DQo+IEtpbmQgcmVnYXJkcw0KPiBNaXJvc2xhdiBMYWNobWFuDQo+DQpXaGF0J3MgdGhl
IGFyZ3VtZW50IGZvciBzd2FwcGluZyB0byBhIG1pcnJvciBpbiB0aGUgZmlyc3QgcGxhY2U/
IElmIHRoZSANCmlzc3VlIGlzIHRocm91Z2hwdXQgSU1ITyB0aGUgYW5zd2VyIGlzIHRvIHN3
YXAgdG8gbXVsdGlwbGUgZGV2aWNlcy4NCg0KUHV0dGluZyBzd2FwIHRocm91Z2ggYSBmaWxl
c3lzdGVtIGFic3RyYWN0aW9uIGFzIG5vdGVkIGFib3ZlIHJ1bnMgdGhlIA0KcmlzayBvZiBy
ZXF1aXJpbmcgYW4gYWxsb2NhdGlvbiBvZiBSQU0gZm9yIHRoZSBvcGVyYXRpb24gdG8gY29t
cGxldGUgDQp3aGVuIHlvdSdyZSBkZXNwZXJhdGVseSBzaG9ydCBvbiBpdCBpbiB0aGUgZmly
c3QgcGxhY2UgcmVzdWx0aW5nIGluIA0Kc2VyaW91cyB0cm91YmxlLg0KDQotLSANCkthcmwg
RGVubmluZ2VyDQprYXJsQGRlbm5pbmdlci5uZXQNCi9UaGUgTWFya2V0IFRpY2tlci8NCi9b
Uy9NSU1FIGVuY3J5cHRlZCBlbWFpbCBwcmVmZXJyZWRdLw0K
--------------0y070muRTkQYtLjvUW4RHETX
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class=3D"moz-cite-prefix">On 1/4/2025 12:30, Miroslav Lachman
      wrote:<br>
    </div>
    <blockquote type=3D"cite"
      cite=3D"mid:9e71d8eb-74c3-4bcb-89b1-90d4f9746168@quip.cz">On
      04/01/2025 17:27, Chris Torek wrote:
      <br>
      <blockquote type=3D"cite">On Sat, Jan 4, 2025 at 7:01=E2=80=AFAM Pe=
ter 'PMc'
        Much
        <br>
        <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:pmc@citylink.di=
noex.sub.org">&lt;pmc@citylink.dinoex.sub.org&gt;</a> wrote:
        <br>
        <blockquote type=3D"cite">
          <blockquote type=3D"cite">I'm swapping to a zfs mirror
            <br>
          </blockquote>
          <br>
          Well, You shouldn't do that.
          <br>
        </blockquote>
        <br>
        Why not? Swapping to a *file* on zfs has obvious issues, but
        swapping
        <br>
        to a mirrored swap partition seems like it should be entirely
        safe. A
        <br>
        bit slow (double writes) but I spent $ on RAM rather than M.2
        drives
        <br>
        on the theory that I can add those later as needed.
        <br>
      </blockquote>
      <br>
      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.
      <br>
      If you want the swap on a mirror, then use separate partition on 2
      disks and add gmirror on top of them.
      <br>
      <br>
      Kind regards
      <br>
      Miroslav Lachman
      <br>
      <br>
    </blockquote>
    <p>What's the argument for swapping to a mirror in the first place?=C2=
=A0
      If the issue is throughput IMHO the answer is to swap to multiple
      devices.</p>
    <p>Putting swap through a filesystem abstraction as noted above runs
      the risk of requiring an allocation of RAM for the operation to
      complete when you're desperately short on it in the first place
      resulting in serious trouble.<br>
    </p>
    <div class=3D"moz-signature">-- <br>
      Karl Denninger<br>
      <a href=3D"mailto:karl@denninger.net" class=3D"moz-txt-link-freetex=
t">karl@denninger.net</a><br>
      <i>The Market Ticker</i><br>
      <font size=3D"-2"><i>[S/MIME encrypted email preferred]</i></font><=
/div>
  </body>
</html>

--------------0y070muRTkQYtLjvUW4RHETX--

--------------zMTbqTn62I4CetP0V08DHolQ--

--------------EAgpQzSbyAyhwdGuXUSGPjU8
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEvWWSxnGhSYSUSaCtby3AFeuPWXgFAmd5cZQFAwAAAAAACgkQby3AFeuPWXiO
Qg//Qpnh4trQsNHcbxnGEjrsGnDsSJCcnamrmZasGC06buWWhpQTwMNJVISwlJzIyij07E0dP0RG
/HG0uPRZ/Nh5HCOg35YCI3nyCRLRAiCcoLwWjT1qxRSBIcX8Pi+3ThxoyJWlyJmcwXaZvcQnPTDV
Go+15C6DQ73lSitOO7Y8ws/sq2XP7x2GP+MGX7v3Te0DLIoLpHZlF5muYKZ8Vypm3BxqTq7VjpMt
WeRECTlV408sw7qyRzMFn80Ej71GuvJxBEi7nMNj/09woE/pDt3A4lYb39nMrPk7ZMlM9QXUdJGM
3gTxE/mxgk/0pIsr7apcT9xHUjO9BiZT9UrfkTc3eYUiyuEBvA4O1wreYr7bVFpddVuo6NSuBEjo
4LHdUms5JYKwXDBiJU5/LHkBnXnZjYSn2j1C9TYlDK23qduFJztW/TrS7KNDOLxJ0ySRubKGpxjf
mfP/ylM9kOW+jXxUt5KyQyDDJIr9XcLC3OSh1c+QvBPrdSZT2QCkxI4ZvNYaRViSVAq8t31wuHHl
msiYlVDHP+1cjLfrK35wBvZqX4kpTxqgGC92TwjmJrpaXdikP33IeRZ+xwRQUgypOfHQ1o28Moio
b71eT/NafEOu8TvKBWhP9bA3J+PwBSjx1aON1mHErQItK7Q3VmPlp3gWOKLN9dkedx+4YlAAbuOj
TQY=
=v0xb
-----END PGP SIGNATURE-----

--------------EAgpQzSbyAyhwdGuXUSGPjU8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33db3282-25c4-42fb-8d97-1918d52fa9e2>