[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAEHM+4rdeGqryvJqTkV_ocEA8y7dOXS_Nx+O3ouFZ44j9wzm=g@mail.gmail.com>
Date: Tue, 6 Nov 2018 17:19:15 +0800
From: Kuo-Hsin Yang <vovoy@...omium.org>
To: mhocko@...nel.org
Cc: linux-kernel@...r.kernel.org, intel-gfx@...ts.freedesktop.org,
linux-mm@...ck.org, Chris Wilson <chris@...is-wilson.co.uk>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
Peter Zijlstra <peterz@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Dave Hansen <dave.hansen@...el.com>
Subject: Re: [PATCH v5] mm, drm/i915: mark pinned shmemfs pages as unevictable
On Tue, Nov 6, 2018 at 5:08 PM Michal Hocko <mhocko@...nel.org> wrote:
>
> On Tue 06-11-18 17:03:51, Kuo-Hsin Yang wrote:
> > The i915 driver uses shmemfs to allocate backing storage for gem
> > objects. These shmemfs pages can be pinned (increased ref count) by
> > shmem_read_mapping_page_gfp(). When a lot of pages are pinned, vmscan
> > wastes a lot of time scanning these pinned pages. In some extreme case,
> > all pages in the inactive anon lru are pinned, and only the inactive
> > anon lru is scanned due to inactive_ratio, the system cannot swap and
> > invokes the oom-killer. Mark these pinned pages as unevictable to speed
> > up vmscan.
> >
> > Export pagevec API check_move_unevictable_pages().
> >
> > This patch was inspired by Chris Wilson's change [1].
> >
> > [1]: https://patchwork.kernel.org/patch/9768741/
> >
> > Cc: Chris Wilson <chris@...is-wilson.co.uk>
> > Cc: Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>
> > Cc: Peter Zijlstra <peterz@...radead.org>
> > Cc: Andrew Morton <akpm@...ux-foundation.org>
> > Cc: Dave Hansen <dave.hansen@...el.com>
> > Signed-off-by: Kuo-Hsin Yang <vovoy@...omium.org>
> > Acked-by: Michal Hocko <mhocko@...e.com>
>
> please make it explicit that the ack applies to mm part as i've
> mentioned when giving my ack to the previous version.
>
> E.g.
> Acked-by: Michal Hocko <mhocko@....com> # mm part
>
> because i am not familiar with the drm code to ack any changes there.
Got it. Thanks.
Powered by blists - more mailing lists