summaryrefslogtreecommitdiff
path: root/tests/eviction_common.c
diff options
context:
space:
mode:
authorMichał Winiarski <michal.winiarski@intel.com>2018-06-11 17:31:11 +0200
committerMichał Winiarski <michal.winiarski@intel.com>2018-06-13 12:43:23 +0200
commit30e501adedf2c89839ef1d654a0281155cfbc589 (patch)
tree7b44e7da62f132e5c4106a7569e77798df849803 /tests/eviction_common.c
parente94ce40798e35d2e3c4494f50b617908066bbf8b (diff)
lib: Extract mlock probing
We already have the routine we need in drv_suspend. Let's move it to lib and use it in the mlocking tests. We can also make it a bit faster if we tweak the initial step and initial amount. (I think it's safe to assume that we should be able to lock 3/4 of RAM, this cuts the probe time on my 32G SKL - from ~530s to ~180s) v2: Use available mem, amend step, also lock outside of fork, early exit if the assumption is wrong (Chris) Update the function name in doc (Ewelina) v3: Total for pin, available for initial lock (Chris) Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Ewelina Musial <ewelina.musial@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Ewelina Musial <ewelina.musial@intel.com>
Diffstat (limited to 'tests/eviction_common.c')
0 files changed, 0 insertions, 0 deletions