From: Chris Wilson <chris@chris-wilson.co.uk>
To: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>, stable@vger.kernel.org
Subject: Re: [PATCH] drm/i915: Revert shrinker changes from "Track unbound pages"
Date: Thu, 10 Jan 2013 00:23:38 +0000 [thread overview]
Message-ID: <6c3329$81ng31@orsmga002.jf.intel.com> (raw)
In-Reply-To: <1357754229-26092-1-git-send-email-daniel.vetter@ffwll.ch>
On Wed, 9 Jan 2013 18:57:09 +0100, Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> This partially reverts
>
> commit 6c085a728cf000ac1865d66f8c9b52935558b328
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date: Mon Aug 20 11:40:46 2012 +0200
>
> drm/i915: Track unbound pages
>
> Closer inspection of that patch revealed a bunch of unrelated changes
> in the shrinker:
> - The shrinker count is now in pages instead of objects.
> - For counting the shrinkable objects the old code only looked at the
> inactive list, the new code looks at all bounds objects (including
> pinned ones). That is obviously in addition to the new unbound list.
> - The shrinker cound is no longer scaled with
> sysctl_vfs_cache_pressure.
I made a mistake and copied the wrong code in my original
implementation:
vfs_cache_pressure
------------------
Controls the tendency of the kernel to reclaim the memory which is used for
caching of directory and inode objects.
At the default value of vfs_cache_pressure=100 the kernel will attempt to
reclaim dentries and inodes at a "fair" rate with respect to pagecache and
swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer
to retain dentry and inode caches. When vfs_cache_pressure=0, the kernel will
never reclaim dentries and inodes due to memory pressure and this can easily
lead to out-of-memory conditions. Increasing vfs_cache_pressure beyond 100
causes the kernel to prefer to reclaim dentries and inodes.
--------------------
It's not an inode or a directory and our pages directly akin to the page
and buffer caches, so I should have never used vfs_cache_pressure and
you have not justified why you are adding it back.
> - When actually shrinking objects, the old code first dropped
> purgeable objects, then normal (inactive) objects. Only then did it,
> in a last-ditch effort idle the gpu and evict everything. The new
> code omits the intermediate step of evicting normal inactive
> objects.
This is the crux of the papering, so just do this and call it what it is.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
next prev parent reply other threads:[~2013-01-10 0:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 17:57 [PATCH] drm/i915: Revert shrinker changes from "Track unbound pages" Daniel Vetter
2013-01-10 0:23 ` Chris Wilson [this message]
2013-01-10 9:34 ` Daniel Vetter
2013-01-10 10:21 ` Daniel Vetter
2013-01-10 11:37 ` Daniel Vetter
2013-01-10 17:03 ` Daniel Vetter
2013-01-10 16:58 ` Chris Wilson
2013-01-10 17:03 ` [Intel-gfx] " Daniel Vetter
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='6c3329$81ng31@orsmga002.jf.intel.com' \
--to=chris@chris-wilson.co.uk \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=stable@vger.kernel.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