Linux PSI (Pressure Stall Information) is a recent addition to the Linux kernel which allows a userspace client to be notified about all sorts of resource pressure, so that countermeasures can be taken as soon as possible. Right now Swapspace polls /proc every second and does the necessary pressure evaluation by itself. It might be more accurate to use PSI for this, and maybe replace polling with being notified (fewer wakeups?).
Great article with examples: https://unixism.net/2019/08/linux-pressure-stall-information-psi-by-example/