about 1/6 of the anon lru pages.
Mark these pinned pages as unevictable to avoid the premature oom-killer
invocation. See also similar patch on i915 driver [1].
[1]:
https://patchwork.freedesktop.org/patch/msgid/20181106132324.17390-1-ch...@chris-wilson.co.uk
Signed-off-by: Kuo-Hsin Yang
C
On Tue, Dec 18, 2018 at 9:55 PM Chris Wilson wrote:
>
> Quoting Kuo-Hsin Yang (2018-12-17 09:04:01)
> >
> > E.g. when the size of a zone is 3.9 GiB, the inactive_ratio is 5. If
> > active_anon / inactive_anon < 5 and all pages in the inactive_anon lru
> > ar
about 1/6 of the anon lru pages.
Mark these pinned pages as unevictable to avoid the premature oom-killer
invocation. See also similar patch on i915 driver [1].
[1]:
https://patchwork.freedesktop.org/patch/msgid/20181106132324.17390-1-ch...@chris-wilson.co.uk
Signed-off-by: Kuo-Hsin Yang
C
On Fri, Dec 14, 2018 at 6:19 PM Chris Wilson wrote:
>
> Ta, I did not know of that relationship. Perfect details for the
> changelog to explain how this does improve page reclaim even in the
> absence of a GEM shrinker. :)
OK, I will update the changelog.
_
On Fri, Dec 14, 2018 at 5:51 PM Chris Wilson wrote:
>
> Quoting Kuo-Hsin Yang (2018-12-14 09:33:19)
> > On Fri, Dec 14, 2018 at 4:59 PM Chris Wilson
> > wrote:
> > >
> > >
> > > Do you have a driver in mind (msm?) to demonstrate the use case?
> &g
On Fri, Dec 14, 2018 at 4:59 PM Chris Wilson wrote:
>
>
> Do you have a driver in mind (msm?) to demonstrate the use case?
On Samsung Chromebook Plus, the drm/rockchip driver may call
rockchip_gem_get_pages()/drm_gem_get_pages() to pin a lot of pages,
breaking the page reclaim mechanism and causi
/20181106132324.17390-1-ch...@chris-wilson.co.uk
Signed-off-by: Kuo-Hsin Yang
Cc: Daniel Vetter
Cc: Chris Wilson
---
drivers/gpu/drm/drm_gem.c | 36 +---
1 file changed, 33 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm