Re: [PATCH v3] mm/zswap: change zswap to writethrough cache

2013-11-23 Thread Dan Streetman
On Fri, Nov 22, 2013 at 9:37 PM, Weijie Yang wrote: > Hello Dan, > > On Sat, Nov 23, 2013 at 6:10 AM, Dan Streetman wrote: >> Currently, zswap is writeback cache; stored pages are not sent >> to swap disk, and when zswap wants to evict old pages it must >> first write them back to swap

Re: [PATCH v3] mm/zswap: change zswap to writethrough cache

2013-11-23 Thread Dan Streetman
On Fri, Nov 22, 2013 at 9:37 PM, Weijie Yang weijie.yang...@gmail.com wrote: Hello Dan, On Sat, Nov 23, 2013 at 6:10 AM, Dan Streetman ddstr...@ieee.org wrote: Currently, zswap is writeback cache; stored pages are not sent to swap disk, and when zswap wants to evict old pages it must first

Re: [PATCH v3] mm/zswap: change zswap to writethrough cache

2013-11-22 Thread Weijie Yang
Hello Dan, On Sat, Nov 23, 2013 at 6:10 AM, Dan Streetman wrote: > Currently, zswap is writeback cache; stored pages are not sent > to swap disk, and when zswap wants to evict old pages it must > first write them back to swap cache/disk manually. This avoids > swap out disk I/O up front, but

[PATCH v3] mm/zswap: change zswap to writethrough cache

2013-11-22 Thread Dan Streetman
Currently, zswap is writeback cache; stored pages are not sent to swap disk, and when zswap wants to evict old pages it must first write them back to swap cache/disk manually. This avoids swap out disk I/O up front, but only moves that disk I/O to the writeback case (for pages that are evicted),

[PATCH v3] mm/zswap: change zswap to writethrough cache

2013-11-22 Thread Dan Streetman
Currently, zswap is writeback cache; stored pages are not sent to swap disk, and when zswap wants to evict old pages it must first write them back to swap cache/disk manually. This avoids swap out disk I/O up front, but only moves that disk I/O to the writeback case (for pages that are evicted),

Re: [PATCH v3] mm/zswap: change zswap to writethrough cache

2013-11-22 Thread Weijie Yang
Hello Dan, On Sat, Nov 23, 2013 at 6:10 AM, Dan Streetman ddstr...@ieee.org wrote: Currently, zswap is writeback cache; stored pages are not sent to swap disk, and when zswap wants to evict old pages it must first write them back to swap cache/disk manually. This avoids swap out disk I/O up