On Fri 25-11-16 16:25:11, Hui Zhu wrote: > SWAP will keep before swap cache before swap space get full. It will > make swap space cannot be freed. It is harmful to the system that use > ZRAM because its space use memory too.
I have hard time to follow what you are trying to say here. Could you be more specific about what is the actual problem? > This two patches will add a sysfs switch to ZRAM that open or close swap > cache without check the swap space. I find this a crude hack to be honest. Please make sure to describe why the swap cache stays in the way and why this is not problem in other setups. -- Michal Hocko SUSE Labs