4 ms·
could be a good place to sequester a swap file, similar to zram
by knome 2y ago
could be a good place to sequester a swap file, similar to zram
- yjftsjthsd-h 2y agoYou can, but https://wiki.archlinux.org/title/Swap_on_video_RAM https://wiki.archlinux.org/title/Swap_on_video_RAM suggests not doing it this way: > Warning: Multiple users have reported this to cause system freezes, even with the fix in #Complete system freeze under high memory pressure. Other GPU management processes or libraries may be swapped out, leading to nonrecoverable page faults. and in general you have to be really careful swapping to anything that uses a driver that could itself be swapped (which FUSE is especially prone to, but IIRC even ZFS and NFS did(?) have caveats with swap). OTOH that same page documents a way to swap to vram without going through userspace, so don't take this as opposition to the general idea:)
- 3np 2y ago> IIRC even ZFS and NFS did(?) have caveats with swap ZFS still does. If you run VMs off zvols you want to avoid putting swap there. Learned this the hard way.