Thread (32 messages) 32 messages, 6 authors, 2015-10-14

Re: [PATCH 0/3] allow zram to use zbud as underlying allocator

From: Dan Streetman <hidden>
Date: 2015-09-15 04:09:07
Also in: lkml

On Mon, Sep 14, 2015 at 10:14 AM, Vlastimil Babka [off-list ref] wrote:
On 09/14/2015 04:12 PM, Vitaly Wool wrote:
quoted
On Mon, Sep 14, 2015 at 4:01 PM, Vlastimil Babka [off-list ref] wrote:
quoted

On 09/14/2015 03:49 PM, Vitaly Wool wrote:
quoted

While using ZRAM on a small RAM footprint devices, together with
KSM,
I ran into several occasions when moving pages from compressed swap back
into the "normal" part of RAM caused significant latencies in system


I'm sure Minchan will want to hear the details of that :)
quoted
operation. By using zbud I lose in compression ratio but gain in
determinism, lower latencies and lower fragmentation, so in the coming


I doubt the "lower fragmentation" part given what I've read about the
design of zbud and zsmalloc?

As it turns out, I see more cases of compaction kicking in and
significantly more compact_stalls with zsmalloc.

Interesting, I thought that zsmalloc doesn't need contiguous high-order
pages.
it doesn't.  but it has a complex (compared to zbud) way of storing
pages - many different classes, which each are made up of zspages,
which contain multiple actual pages to store some number of
specifically sized objects.  So it can get fragmented, with lots of
zspages with empty spaces for objects.  That's what the recently added
zsmalloc compaction addresses, by scanning all the zspages in all the
classes and compacting zspages within each class.

but I haven't followed most of the recent zsmalloc updates too
closely, so I may be totally wrong :-)

zbud is much simpler; since it just uses buddied pairs, it simply
keeps a list of zbud page with only 1 compressed page stored in it.
There is still the possibility of fragmentation, but since it's
simple, it's much smaller.  And there is no compaction implemented in
it, currently.  The downside, as we all know, is worse efficiency in
storing compressed pages - it can't do better than 2:1.
quoted
~vitaly
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help