I understand ZFS uses / can be set up to use an SSD as L2ARC cache, ZIL, as well as host for a deduplication table.
None of these appear to require a fixed minimum size (the deduplication table might, info on this is somewhat vague - maybe the deduplication table itself could be hosted on a slow disk and accelerated by L1/L2ARC). Which brings us to the idea of using the same disk for the same performance reasons as host for the swap space, which also has dynamic size requirement, depending on memory load.
Is there a way to automatically resize both swap and L2ARC according to memory needs similar to how swapspace grows the swap space automatically, and L1ARC is reduced according to memory pressure?
A different way I could imagine the same effect would be achievable was if the pagefile is cached in L2ARC. Can anyone confirm to which extent this is the case?