Re: [RFC 0/2] Add interface let ZRAM close swap cache

2016-11-28 Thread Michal Hocko
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 b

[RFC 0/2] Add interface let ZRAM close swap cache

2016-11-25 Thread Hui Zhu
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. This two patches will add a sysfs switch to ZRAM that open or close swap cache without check the swap space. I got goo