Re: [Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-26 Thread Daniel Vetter
On Thu, Nov 26, 2015 at 10:30:57AM +, Chris Wilson wrote: > On Thu, Nov 26, 2015 at 10:34:51AM +0100, Daniel Vetter wrote: > > On Wed, Nov 25, 2015 at 09:58:28AM +, Chris Wilson wrote: > > > One thing I did notice when also dealing with memory > > > pressure flushing backbuffers was (a) the

Re: [Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-26 Thread Chris Wilson
On Thu, Nov 26, 2015 at 10:34:51AM +0100, Daniel Vetter wrote: > On Wed, Nov 25, 2015 at 09:58:28AM +, Chris Wilson wrote: > > One thing I did notice when also dealing with memory > > pressure flushing backbuffers was (a) they were unaligned and so needed > > rebinding before pinning > > http:/

Re: [Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-26 Thread Daniel Vetter
On Wed, Nov 25, 2015 at 09:58:28AM +, Chris Wilson wrote: > On Wed, Nov 25, 2015 at 10:17:49AM +0100, Daniel Vetter wrote: > > On Tue, Nov 24, 2015 at 11:17:38PM +, Chris Wilson wrote: > > > On Tue, Nov 24, 2015 at 06:15:47PM +0100, Daniel Vetter wrote: > > > > On Mon, Nov 23, 2015 at 09:20

Re: [Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-25 Thread Goel, Akash
On 11/25/2015 3:28 PM, Chris Wilson wrote: On Wed, Nov 25, 2015 at 10:17:49AM +0100, Daniel Vetter wrote: On Tue, Nov 24, 2015 at 11:17:38PM +, Chris Wilson wrote: On Tue, Nov 24, 2015 at 06:15:47PM +0100, Daniel Vetter wrote: On Mon, Nov 23, 2015 at 09:20:24AM +, Chris Wilson wrote:

Re: [Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-25 Thread Chris Wilson
On Wed, Nov 25, 2015 at 10:17:49AM +0100, Daniel Vetter wrote: > On Tue, Nov 24, 2015 at 11:17:38PM +, Chris Wilson wrote: > > On Tue, Nov 24, 2015 at 06:15:47PM +0100, Daniel Vetter wrote: > > > On Mon, Nov 23, 2015 at 09:20:24AM +, Chris Wilson wrote: > > > > If the system has no availabl

Re: [Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-25 Thread Daniel Vetter
On Tue, Nov 24, 2015 at 11:17:38PM +, Chris Wilson wrote: > On Tue, Nov 24, 2015 at 06:15:47PM +0100, Daniel Vetter wrote: > > On Mon, Nov 23, 2015 at 09:20:24AM +, Chris Wilson wrote: > > > If the system has no available swap pages, we cannot make forward > > > progress in the shrinker by

Re: [Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-24 Thread Chris Wilson
On Tue, Nov 24, 2015 at 06:15:47PM +0100, Daniel Vetter wrote: > On Mon, Nov 23, 2015 at 09:20:24AM +, Chris Wilson wrote: > > If the system has no available swap pages, we cannot make forward > > progress in the shrinker by releasing active pages, only by releasing > > purgeable pages which ar

Re: [Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-24 Thread Daniel Vetter
On Mon, Nov 23, 2015 at 09:20:24AM +, Chris Wilson wrote: > If the system has no available swap pages, we cannot make forward > progress in the shrinker by releasing active pages, only by releasing > purgeable pages which are immediately reaped. Take total_swap_pages into > account when countin

[Intel-gfx] [PATCH] drm/i915: Disable shrinker for non-swapped backed objects

2015-11-23 Thread Chris Wilson
If the system has no available swap pages, we cannot make forward progress in the shrinker by releasing active pages, only by releasing purgeable pages which are immediately reaped. Take total_swap_pages into account when counting up available objects to be shrunk and subsequently shrinking them. B