Re: [PATCH v4 11/12] zsmalloc: page migration support

2016-05-02 Thread Chulmin Kim
On 2016년 05월 03일 09:43, Minchan Kim wrote: Good morning, Chulmin On Tue, May 03, 2016 at 08:33:16AM +0900, Chulmin Kim wrote: Hello, Minchan! On 2016년 04월 27일 16:48, Minchan Kim wrote: This patch introduces run-time migration feature for zspage. For migration, VM uses page.lru field so it

Re: [PATCH v4 11/12] zsmalloc: page migration support

2016-05-02 Thread Chulmin Kim
Hello, Minchan! On 2016년 04월 27일 16:48, Minchan Kim wrote: This patch introduces run-time migration feature for zspage. For migration, VM uses page.lru field so it would be better to not use page.next field for own purpose. For that, firstly, we can get first object offset of the page via runti

Re: [PATCH v3 13/16] zsmalloc: migrate head page of zspage

2016-04-18 Thread Chulmin Kim
On 2016년 03월 30일 16:12, Minchan Kim wrote: This patch introduces run-time migration feature for zspage. To begin with, it supports only head page migration for easy review(later patches will support tail page migration). For migration, it supports three functions * zs_page_isolate It isolates

Re: [PATCH v3 02/16] mm/compaction: support non-lru movable page migration

2016-04-12 Thread Chulmin Kim
On 2016년 03월 30일 16:12, Minchan Kim wrote: We have allowed migration for only LRU pages until now and it was enough to make high-order pages. But recently, embedded system(e.g., webOS, android) uses lots of non-movable pages(e.g., zram, GPU memory) so we have seen several reports about troubles o

Re: [PATCH v3 13/16] zsmalloc: migrate head page of zspage

2016-04-06 Thread Chulmin Kim
On 2016년 04월 06일 22:01, Chulmin Kim wrote: On 2016년 03월 30일 16:12, Minchan Kim wrote: This patch introduces run-time migration feature for zspage. To begin with, it supports only head page migration for easy review(later patches will support tail page migration). For migration, it supports

Re: [PATCH v3 13/16] zsmalloc: migrate head page of zspage

2016-04-06 Thread Chulmin Kim
On 2016년 03월 30일 16:12, Minchan Kim wrote: This patch introduces run-time migration feature for zspage. To begin with, it supports only head page migration for easy review(later patches will support tail page migration). For migration, it supports three functions * zs_page_isolate It isolates

Re: [PATCH v3 12/16] zsmalloc: zs_compact refactoring

2016-04-04 Thread Chulmin Kim
On 2016년 03월 30일 16:12, Minchan Kim wrote: Currently, we rely on class->lock to prevent zspage destruction. It was okay until now because the critical section is short but with run-time migration, it could be long so class->lock is not a good apporach any more. So, this patch introduces [un]free