Re: [PATCH v6 0/5] zram/zsmalloc promotion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 15, 2013 at 08:18:46AM +0800, Bob Liu wrote:
> On Thu, Aug 15, 2013 at 12:17 AM, Minchan Kim <minchan@xxxxxxxxxx> wrote:
> > Hi Luigi,
> >
> > On Wed, Aug 14, 2013 at 08:53:31AM -0700, Luigi Semenzato wrote:
> >> During earlier discussions of zswap there was a plan to make it work
> >> with zsmalloc as an option instead of zbud. Does zbud work for
> >
> > AFAIR, it was not an optoin but zsmalloc was must but there were
> > several objections because zswap's notable feature is to dump
> > compressed object to real swap storage. For that, zswap needs to
> > store bounded objects in a zpage so that dumping could be bounded, too.
> > Otherwise, it could encounter OOM easily.
> >
> 
> AFAIR, the next step of zswap should be have a modular allocation layer so that
> users can choose zsmalloc or zbud to use.
> 
> Seth?

Yes, that should be doable without too much effort, at least if you
disregard writeback.  I believe I wrote the code so that you can make
the registration of the eviction handler for the allocator NULL, in
which case, zswap can just fail the store and fall back to swap. That
reintroduces the inverse LRU issue when the pool is full, but in the
meantime you potentially get much better effective compression.  Then
tackle zsmalloc writeback separately.

Seth

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]