3 ms·
With a 16GiB RAM laptop I often use more memory than that which then ends up on swap (on zram) With NUMA swap etc. also becomes a bit more complicated (see als
by dveeden2 3y ago
With a 16GiB RAM laptop I often use more memory than that which then ends up on swap (on zram)
With NUMA swap etc. also becomes a bit more complicated (see also https://blog.jcole.us/2010/09/28/mysql-swap-insanity-and-the-numa-architecture/ https://blog.jcole.us/2010/09/28/mysql-swap-insanity-and-the... )
I think the main question here is to use a swap partition or a swap file.
The main problem of swap partitions is how inflexible they are, but lvm/btrfs/zfs make that less of an issue.
On Solaris a crashdump was written to swap when the system panicked. Not sure what Linux/BSD crashdump systems use nowadays.
- fernvenue 3y agoSounds interesting, could you please describe some details about "lvm/btrfs/zfs make that less of an issue"? Because I use btrfs almost everywhere, so I really wanna know more details about this, or could you please tell me where I can learn something about that?
- mixmastamyk 3y agoBelieve the point is that resizing partitions is easier with those FSs. But not a big deal since Partition Magic.
- rleigh 3y agoOn ZFS, use a zvol as a swap partition. Easy to create, destroy, resize, have redundant copies for robustness, all of the configuration options you have for a data volume but use for swap. I've done this on both FreeBSD and Linux, never had a problem. However, IIRC there might have been some issues in the past on Linux.