Just to nitpick, on Linux it depends on your distribution (or yourself) having enabled zram; some modern distributions enable it by default on recent releases, but yours might not have.
You can run 'zramctl' to see the current status of the zram devices.