[Devel] [PATCH rh7] tswap: Add support for zero-filled pages

Andrey Ryabinin aryabinin at virtuozzo.com
Mon Sep 4 15:26:11 MSK 2017



On 08/03/2017 12:54 PM, Kirill Tkhai wrote:
> This patch makes tswap to do not allocate a new page,
> if swapped page is zero-filled, and to use ZERO_PAGE()
> pointer to decode it instead.
> 
> The same optimization is made in zram, and it may help
> VMs to reduce memory usage in some way.
> 
> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>

Acked-by: Andrey Ryabinin <aryabinin at virtuozzo.com>




More information about the Devel mailing list