|
|
Log in / Subscribe / Register

Context information in memory-allocation requests

Context information in memory-allocation requests

Posted Jan 5, 2017 22:40 UTC (Thu) by willy (subscriber, #9762)
In reply to: Context information in memory-allocation requests by smurf
Parent article: Context information in memory-allocation requests

You're right; we need to limit recursion. The current GFP_NOFS is a rather blunt instrument and I think we can do better.

It's reasonable for each shrinker to estimate how much stack it's likely to consume to free memory. If we have a function that returns how much stack is still available, a shrinker can know whether to try to free memory or to fail.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds