[igt-dev] [PATCH i-g-t] igt/drv_suspend: Suspend under memory pressure

Chris Wilson chris at chris-wilson.co.uk
Fri Jun 8 13:22:53 UTC 2018


Quoting Chris Wilson (2018-06-07 21:50:54)
> Recently we discovered that we have a race between swapping and
> suspend in our resume path (we might be trying to page in an object
> after disabling the block devices). Let's try to exercise that by
> exhausting all of system memory before suspend.
> 
> v2: Explicitly share the large memory area on forking to avoid running
> out of memory inside the suspend helpers (for they fork!)
> 
> References: https://bugs.freedesktop.org/show_bug.cgi?id=106640
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Tomi Sarvela <tomi.p.sarvela at intel.com>
> Reviewed-by: Antonio Argenziano <antonio.argenziano at intel.com>

With the more discerning oomkiller, this finally works as intended.
Pushed while the iron is hot.
-Chris


More information about the igt-dev mailing list