From: Robert Jarzmik <robert.jarzmik@free.fr>
To: linux-mm@kvack.org
Subject: shrink_slab(), shrinkers and aggresivity
Date: Tue, 10 Sep 2013 19:28:44 +0200 [thread overview]
Message-ID: <87li3437sj.fsf@free.fr> (raw)
Hi,
I was wondering if there was such a notion as "shrinkers aggresivity".
Or, in other words, I wondered why shrink_slab(), in its parameters, doesn't
have the priority, ie. the (struct scan_control)->priority.
The usecase I have in mind would be a shrinker which behaves differently,
depending on this priority :
- if priority is low, only drop a subset of its objects, the "cold objects"
- if priority is high, drop each and every possible object
In a GPU cache for example, they are objects that are not used anymore in the
GPU, but some are still mapped into the GPU's MMU table. The GPU MMU
manipulation being costly, such a shrinker would :
- on low priority, consider only the GPU MMU unmapped objects
- on high prioriy, consider all GPU objects
Is it in the shrinker definition that no priority should ever be considered, is
it silly to consider having priority in (struct shrink_control) ?
Thanks in advance for your explanation.
--
Robert
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2013-09-10 17:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87li3437sj.fsf@free.fr \
--to=robert.jarzmik@free.fr \
--cc=linux-mm@kvack.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