Re: [PATCH v3 7/7] zram: writeback throttle
From: Andrew Morton
Date: Wed Nov 28 2018 - 18:41:45 EST
On Tue, 27 Nov 2018 14:54:29 +0900 Minchan Kim <minchan@xxxxxxxxxx> wrote:
> On small memory system, there are lots of write IO so if we use
> flash device as swap, there would be serious flash wearout.
> To overcome the problem, system developers need to design write
> limitation strategy to guarantee flash health for entire product life.
>
> This patch creates a new konb "writeback_limit" on zram. With that,
> if current writeback IO count(/sys/block/zramX/io_stat) excceds
> the limitation, zram stops further writeback until admin can reset
> the limit.
I'm not really understanding this. Does this only refer to suspending
the idle page writeback feature? Not all zram writeback, surely?
I don't think the documentation gives an administrator sufficient
information to effectively use the feature. Some additional discussion
would help. What sort of values should it be set to and why?
And what is the default setting? And why?
And the limit isn't persistent across reboots which makes me wonder
whether the overall feature is particularly valuable?