RE: [PATCH -v3 00/10] THP swap: Delay splitting THP during swapping out

From: Chen, Tim C
Date: Thu Sep 22 2016 - 19:49:06 EST


>
>So this is impossible without THP swapin. While 2M swapout makes a lot of
>sense, I doubt 2M swapin is really useful. What kind of application is 'optimized'
>to do sequential memory access?

We waste a lot of cpu cycles to re-compact 4K pages back to a large page
under THP. Swapping it back in as a single large page can avoid
fragmentation and this overhead.

Thanks.

Tim