Re: [PATCH 4/6] zram: support idle page writeback
From: Sergey Senozhatsky
Date: Thu Nov 22 2018 - 00:40:49 EST
On (11/22/18 14:04), Minchan Kim wrote:
>
> > additionally, it's too simple. It writes-back pages which can be
> > swapped in immediately; which basically means that we do pointless
> > PAGE_SIZE writes to a device which doesn't really like pointless
> > writes.
>
> This patchset aims for *IDLE page* writeback and you can define
> what is IDLE page by yourself. It doesn't do pointless writeback.
> >
> > It's a whole different story with idle, compressible pages writeback.
>
> I don't understand your point.
Seems you misunderstood me. I'm not saying that IDLE writeback is bad.
On the contrary, I think IDLE writeback is x100 better than writeback
which we currently have.
The "pointless writeback" comment was about the existing writeback,
when we WB pages which we couldn't compress. We can have a relative
huge percentage of incompressible pages, and not all of them will end
up being IDLE:
- we swap out page
- can't compress it
- writeback PAGE_SIZE
- swap it in two seconds later
// as example //
IDLE page writeback (this patch set) looks to me like a really
significant improvement. Especially if we can writeback compressed
objects and do, e.g., 300-bytes writes instead of PAGE_SIZE writes.
-ss