Re: [Intel-gfx] [PATCH v4 17/31] drivers: convert shrinkers to new count/scan API

2013-05-02 Thread Glauber Costa
Sorry for the following crappy message. I came travelling without my laptop. Please note that one of my patches implement one shot shrinkers onto of vmpressure mechanism. It can still be called frequently, because right now it is called every time userspace would get an event. But at least it wo

Re: [Intel-gfx] [PATCH v4 17/31] drivers: convert shrinkers to new count/scan API

2013-05-02 Thread Mel Gorman
On Tue, Apr 30, 2013 at 03:00:50PM -0700, Kent Overstreet wrote: > On Tue, Apr 30, 2013 at 10:53:55PM +0100, Mel Gorman wrote: > > On Sat, Apr 27, 2013 at 03:19:13AM +0400, Glauber Costa wrote: > > > diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c > > > index 03e44c1..8b9c1a6 100

Re: [Intel-gfx] [PATCH v4 17/31] drivers: convert shrinkers to new count/scan API

2013-05-02 Thread Mel Gorman
On Wed, May 01, 2013 at 05:26:38PM +0200, Daniel Vetter wrote: > On Tue, Apr 30, 2013 at 11:53 PM, Mel Gorman wrote: > > On Sat, Apr 27, 2013 at 03:19:13AM +0400, Glauber Costa wrote: > >> diff --git a/drivers/gpu/drm/i915/i915_gem.c > >> b/drivers/gpu/drm/i915/i915_gem.c > >> index 6be940e..2e44

Re: [Intel-gfx] [PATCH v4 17/31] drivers: convert shrinkers to new count/scan API

2013-05-01 Thread Daniel Vetter
On Tue, Apr 30, 2013 at 11:53 PM, Mel Gorman wrote: > On Sat, Apr 27, 2013 at 03:19:13AM +0400, Glauber Costa wrote: >> diff --git a/drivers/gpu/drm/i915/i915_gem.c >> b/drivers/gpu/drm/i915/i915_gem.c >> index 6be940e..2e44733 100644 >> --- a/drivers/gpu/drm/i915/i915_gem.c >> +++ b/drivers/gpu/

Re: [Intel-gfx] [PATCH v4 17/31] drivers: convert shrinkers to new count/scan API

2013-05-01 Thread Kent Overstreet
On Tue, Apr 30, 2013 at 10:53:55PM +0100, Mel Gorman wrote: > On Sat, Apr 27, 2013 at 03:19:13AM +0400, Glauber Costa wrote: > > diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c > > index 03e44c1..8b9c1a6 100644 > > --- a/drivers/md/bcache/btree.c > > +++ b/drivers/md/bcache/btree

Re: [Intel-gfx] [PATCH v4 17/31] drivers: convert shrinkers to new count/scan API

2013-05-01 Thread Mel Gorman
On Sat, Apr 27, 2013 at 03:19:13AM +0400, Glauber Costa wrote: > From: Dave Chinner > > Convert the driver shrinkers to the new API. Most changes are > compile tested only because I either don't have the hardware or it's > staging stuff. > > FWIW, the md and android code is pretty good, but the