Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
I don't get what the value add of "optane" is... as far as I know it's just another m.2 SSD, and you treat it as such.
Some optanes may be high endurance units so they would be good for caches and swap. But some appear to be rudimentary TLC and QLC units and wear fairly quickly.
Perhaps I've got too many aging machines and memory seems to be no longer an issue these days - swapping is rare or at least code memory is small compared to data memory - and data memory, well, the code should be smart about what needs to really be in memory and what can be kept on slow medium (versus code memory should not be swapped out whenever possible.)
As far as I know about swap on zram, seems android phones use it. How it deals with backing store I'm not sure, hearing conflicting reports on whether pages are decompressed when writing to backing store or not, might be a difference between zram or zswap or neither.. In any case a zram device uses your RAM so you can't count on adding the two together, it depends on compression ratio.
Fortunately hibernate is compressed, and seems to not write unused pages to disk.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD What am I supposed watching?
I have one ThinkCentre... or was it Station... Anyways those Lenovo 1 litre units. One such which has a specifically marked place for Optane.
I guess I start experimenting with it then.
Currently I run a regular SATA SSD (MLC) as a cache for one of my arrays, it does help a bit... but not super fast as if all SSD mostly because I set up a write through policy as the array is not battery backed and would lose the benefit of journaling of the filesystem. Don't need another write hole (cache -> RAID5 -> filesystem)...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD What am I supposed watching?
If you want a backing device use zswap. Having Zram + backing device will give you 8Gb of swap space but I'm not aware if you can prioritize one of them, while zswap has that by design.
Have in mind zram consumes ~10% of the declared device size only to keep the data structures up, even when the device is empty.
However I'm not sure how much sense buying a device just to make it a swap drive makes.
I'm not necessarily putting all of the optane to swap usage. But if my system has Optane, it is the place to put swap. Very low latency, and good endurance.
Like I stated on my first post, Optane as filesystem cache is one choice too. Other one would be zram backing device for portage temp dir.
Optane could also really help when I have several VMs running. Freeze one, have its state stored on Optane, etc etc...