On Thu, Jul 18, 2019 at 02:30:01PM +0800, Wei Wang wrote:
On 07/18/2019 01:58 PM, Michael S. Tsirkin wrote:That would be good. Except instead of failing it can hit a race
what if it does not fail?As memory pressure is system-wide (no matter who triggers it), free page
Shrinker is called on system memory pressure. On memory pressureMemory pressure could be triggered by an unrelated allocation
get_free_page_and_send will fail memory allocation, so it stops allocating
more.
e.g. from another driver.
hinting
will fail on memory pressure, same as other drivers.
condition where it will reallocate memory freed by shrinker. Not good.