I have 24GB of available RAM in my machine, but I usually use far less than 8GB of it. However, sometimes I'm involved with large data files and I suddenly need 40GB, and on infrequent occasions, I'd like to be able to access even more (up to 60GB). This is mainly using numpy and Apache Arrow.
Right now I have a 20GB ssd swap file, and that works fine, but is obviously slow. I'd like to replace it with zRAM, and assuming say I get double compression on 16GB, that's 32GB, plus the leftover 8GB = 40GB total in "ram". Ideally though, I'd like to go even bigger than 40GB on occasion, and wonder if it's possible for the stuff that doesn't fit into zRAM to spillover further into a "traditional" SSD swap file or partition.
Is this doable? Obviously I'd want the zRAM to be prioritised over the disk swapfile.