Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Feb 2023 14:28:48 +0000
From:      jbo@insane.engineer
To:        "hackers@freebsd.org" <hackers@freebsd.org>
Subject:   Swap, ZFS & ARC
Message-ID:  <ysSGWaXF7vCDubzgFdov_9k6SMLNdZ3-zHV-2LOraYOxV_8yoAkDVPqDSicYsgBw1KdL6BjP4FkK1KFs7NKZ4RRXcSDxVe_Qy_i7b_5AbSI=@insane.engineer>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello folks,

Based on a discussion on the forums not so long ago I tried to figure out how swap usage on a ZFS system plays together with ARC. However, I could find very little to no information on this which leads me to believe that there is some "core concept" I might be oblivious to.

The main question is basically this: Your system starts to swap out data from RAM to your swap partition. This swap data on disk ultimately resides somewhere in a ZFS pool. If this data then gets accessed, it might be cached by ARC essentially eating up memory again which seems counter productive.
Is there any magic which prevents swap partitions from being loaded into ARC? Or is this a non-issue for some other reason?

Best regards,
~ joel
[-- Attachment #2 --]
<div style="font-family: Arial; font-size: 14px;">Hello folks,</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">Based on a discussion on the forums not so long ago I tried to figure out how swap usage on a ZFS system plays together with ARC. However, I could find very little to no information on this which leads me to believe that there is some "core concept" I might be oblivious to.<br><br>The main question is basically this: Your system starts to swap out data from RAM to your swap partition. This swap data on disk ultimately resides somewhere in a ZFS pool. If this data then gets accessed, it might be cached by ARC essentially eating up memory again which seems counter productive.<br>Is there any magic which prevents swap partitions from being loaded into ARC? Or is this a non-issue for some other reason?<br></div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">Best regards,</div><div style="font-family: Arial; font-size: 14px;">~ joel<br></div>
<div class="protonmail_signature_block protonmail_signature_block-empty" style="font-family: Arial; font-size: 14px;">
    <div class="protonmail_signature_block-user protonmail_signature_block-empty">
        
            </div>
    
            <div class="protonmail_signature_block-proton protonmail_signature_block-empty">
        
            </div>
</div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ysSGWaXF7vCDubzgFdov_9k6SMLNdZ3-zHV-2LOraYOxV_8yoAkDVPqDSicYsgBw1KdL6BjP4FkK1KFs7NKZ4RRXcSDxVe_Qy_i7b_5AbSI=>