aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2021-03-31 18:27:19 -0700
committerRob Clark <robdclark@chromium.org>2021-04-07 11:05:42 -0700
commitcc8a4d5a1bd84a37ff1827e2902c459e9b2d4e25 (patch)
tree7de47a94da6e7aee4f9d19cf7be12351b926035a /tools/perf/scripts/python/stackcollapse.py
parentdrm/msm: Remove unused freed llist node (diff)
downloadlinux-cc8a4d5a1bd84a37ff1827e2902c459e9b2d4e25.tar.gz
linux-cc8a4d5a1bd84a37ff1827e2902c459e9b2d4e25.zip
drm/msm: Avoid mutex in shrinker_count()
When the system is under heavy memory pressure, we can end up with lots of concurrent calls into the shrinker. Keeping a running tab on what we can shrink avoids grabbing a lock in shrinker->count(), and avoids shrinker->scan() getting called when not profitable. Also, we can keep purged objects in their own list to avoid re-traversing them to help cut down time in the critical section further. Signed-off-by: Rob Clark <robdclark@chromium.org> Tested-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20210401012722.527712-3-robdclark@gmail.com Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions