public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>,
	intel-gfx@lists.freedesktop.org, Hugh Dickins <hughd@google.com>
Subject: Re: [PATCH 4/4] drm/i915: Invalidate our pages under memory pressure
Date: Fri, 11 Apr 2014 10:38:25 +0200	[thread overview]
Message-ID: <20140411083825.GV9262@phenom.ffwll.local> (raw)
In-Reply-To: <20140411083020.GA32747@nuc-i3427.alporthouse.com>

On Fri, Apr 11, 2014 at 09:30:20AM +0100, Chris Wilson wrote:
> On Tue, Mar 25, 2014 at 01:23:06PM +0000, Chris Wilson wrote:
> > Try to flush out dirty pages into the swapcache (and from there into the
> > swapfile) when under memory pressure and forced to drop GEM objects from
> > memory. In effect, this should just allow us to discard unused pages for
> > memory reclaim and to start writeback earlier.
> > 
> > v2: Hugh Dickins warned that explicitly starting writeback from
> > shrink_slab was prone to deadlocks within shmemfs.
> > 
> > Cc: Hugh Dickins <hughd@google.com>
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> 
> Good news! QA have declared that this series really does prevent the
> random OOM where we have completely unused swap. So all it needs is
> someone brave enough to review.

Awesome work.

Do we need the additional patch you've just posted to improve the
writeback stalling after calling shrinkers too, or is that not required?

wrt reviewers I'm poking people to get this done from our side. For
merging an ack on the mm pieces would be good so that I can pull it in
through drm-intel trees. My plan is to merge it in 3.16 if it all checks
out.

Cheers, Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

  reply	other threads:[~2014-04-11  8:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-25 13:23 [PATCH 1/4] drm/i915: Translate ENOSPC from shmem_get_page() to ENOMEM Chris Wilson
2014-03-25 13:23 ` [PATCH 2/4] drm/i915: Include bound and active pages in the count of shrinkable objects Chris Wilson
2014-05-19 16:04   ` Barbalho, Rafael
2014-03-25 13:23 ` [PATCH 3/4] drm/i915: Refactor common lock handling between shrinker count/scan Chris Wilson
2014-05-19 16:05   ` Barbalho, Rafael
2014-03-25 13:23 ` [PATCH 4/4] drm/i915: Invalidate our pages under memory pressure Chris Wilson
2014-04-11  8:30   ` Chris Wilson
2014-04-11  8:38     ` Daniel Vetter [this message]
2014-04-11  8:46       ` Chris Wilson
2014-04-16 17:13   ` Robert Beckett
2014-04-17 16:34     ` Jani Nikula
2014-04-22 19:06       ` Daniel Vetter
2014-04-22 23:23         ` Robert Beckett
2014-05-19 16:07   ` Barbalho, Rafael
2014-05-20  7:53   ` Daniel Vetter
2014-05-20  7:56     ` Chris Wilson
2014-05-20  8:12       ` Daniel Vetter
2014-05-19 16:03 ` [PATCH 1/4] drm/i915: Translate ENOSPC from shmem_get_page() to ENOMEM Barbalho, Rafael

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140411083825.GV9262@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=chris@chris-wilson.co.uk \
    --cc=hughd@google.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox