Re: Adding compression before/above swapcache

2014-04-08 Thread Bob Liu
On Mon, Mar 31, 2014 at 11:35 PM, Dan Streetman wrote: > On Mon, Mar 31, 2014 at 8:43 AM, Bob Liu wrote: >> On Fri, Mar 28, 2014 at 10:47 PM, Dan Streetman wrote: >>> On Fri, Mar 28, 2014 at 10:32 AM, Rik van Riel wrote: On 03/28/2014 08:36 AM, Dan Streetman wrote: > Well my gener

Re: Adding compression before/above swapcache

2014-03-31 Thread Dan Streetman
On Mon, Mar 31, 2014 at 8:43 AM, Bob Liu wrote: > On Fri, Mar 28, 2014 at 10:47 PM, Dan Streetman wrote: >> On Fri, Mar 28, 2014 at 10:32 AM, Rik van Riel wrote: >>> On 03/28/2014 08:36 AM, Dan Streetman wrote: >>> Well my general idea was to modify shrink_page_list() so that instead o

Re: Adding compression before/above swapcache

2014-03-31 Thread Dan Streetman
On Mon, Mar 31, 2014 at 12:56 AM, Minchan Kim wrote: > Hello Dan, > > On Wed, Mar 26, 2014 at 04:28:27PM -0400, Dan Streetman wrote: >> compress. Additionally, most of that real disk swap is wasted space - >> all the pages stored compressed in zswap aren't actually written on >> the disk. > > It'

Re: Adding compression before/above swapcache

2014-03-31 Thread Bob Liu
On Fri, Mar 28, 2014 at 10:47 PM, Dan Streetman wrote: > On Fri, Mar 28, 2014 at 10:32 AM, Rik van Riel wrote: >> On 03/28/2014 08:36 AM, Dan Streetman wrote: >> >>> Well my general idea was to modify shrink_page_list() so that instead >>> of calling add_to_swap() and then pageout(), anonymous pa

Re: Adding compression before/above swapcache

2014-03-30 Thread Minchan Kim
Hello Dan, On Wed, Mar 26, 2014 at 04:28:27PM -0400, Dan Streetman wrote: > I'd like some feedback on how possible/useful, or not, it might be to > add compression into the page handling code before pages are added to > the swapcache. My thought is that adding a compressed cache at that > point m

Re: Adding compression before/above swapcache

2014-03-28 Thread Rik van Riel
On 03/28/2014 08:36 AM, Dan Streetman wrote: Well my general idea was to modify shrink_page_list() so that instead of calling add_to_swap() and then pageout(), anonymous pages would be added to a compressed cache. I haven't worked out all the specific details, but I am initially thinking that t

Re: Adding compression before/above swapcache

2014-03-28 Thread Dan Streetman
On Fri, Mar 28, 2014 at 10:32 AM, Rik van Riel wrote: > On 03/28/2014 08:36 AM, Dan Streetman wrote: > >> Well my general idea was to modify shrink_page_list() so that instead >> of calling add_to_swap() and then pageout(), anonymous pages would be >> added to a compressed cache. I haven't worked

Re: Adding compression before/above swapcache

2014-03-28 Thread Dan Streetman
On Thu, Mar 27, 2014 at 6:26 PM, Seth Jennings wrote: > On Wed, Mar 26, 2014 at 04:28:27PM -0400, Dan Streetman wrote: >> I'd like some feedback on how possible/useful, or not, it might be to >> add compression into the page handling code before pages are added to >> the swapcache. My thought is

Re: Adding compression before/above swapcache

2014-03-27 Thread Seth Jennings
On Wed, Mar 26, 2014 at 04:28:27PM -0400, Dan Streetman wrote: > I'd like some feedback on how possible/useful, or not, it might be to > add compression into the page handling code before pages are added to > the swapcache. My thought is that adding a compressed cache at that > point may have (at

Adding compression before/above swapcache

2014-03-26 Thread Dan Streetman
I'd like some feedback on how possible/useful, or not, it might be to add compression into the page handling code before pages are added to the swapcache. My thought is that adding a compressed cache at that point may have (at least) two advantages over the existing page compression, zswap and zra