Re: Swap, ZFS & ARC

From: Eugene Grosbein <eugen_at_grosbein.net>
Date: Thu, 02 Feb 2023 23:40:07 UTC
02.02.2023 22:45, jbo@insane.engineer wrote:

>> 02.02.2023 21:28, jbo@insane.engineer wrote:
>>
>>> 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.
>>
>>
>> I prefer not doing this. That is, all my systems have swap partition outside of ZFS pool.
> 
> This isn't really achievable on your average "single disk" desktop systems, right?

For desktop systems you must use GPT/MBR to boot off single disk
and with partitioning there is no problem in creating dedicated slice for swap.