Re: [PATCH 1/5] staging: zsmalloc: zsmalloc memory allocation library

From: Dave Hansen
Date: Wed Feb 08 2012 - 12:23:12 EST


On 02/08/2012 09:15 AM, Dan Magenheimer wrote:
> The zsmalloc allocator can grab
> any random* page "A" with X unused bytes at the END of the page,
> and any random page "B" with Y unused bytes at the BEGINNING of the page
> and "coalesce" them to store any byte sequence with a length** Z
> not exceeding X+Y. Presumably this markedly increases
> the density of compressed-pages-stored-per-physical-page***.

Ahh, I did miss that. I assumed it was simply trying to tie two order-0
pages together. I _guess_ the vmap() comment stands, though.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/