commit | ba2475cd4d750288d24432ca51f3d62ec52bd9c1 | [log] [tgz] |
---|---|---|
author | Rom Lemarchand <romlem@android.com> | Mon May 16 20:17:41 2016 -0700 |
committer | Rom Lemarchand <romlem@google.com> | Mon May 16 20:19:55 2016 -0700 |
tree | d1421ba65d0328dc15d881d2908eded94851a5f7 | |
parent | b1b964214babaddd0f0bd758c54f7fac4fbe4bf7 [diff] |
pagingtest: switch to advising random accesses Switch to using madvise(MADV_RANDOM) and posix_fadvise(POSIX_FADV_RANDOM) to disable caching as opposed to reading the file backwards, which still went through some caching. Measured a 80% drop in worst case performance after switching. Change-Id: I03115dfb94ae7dfc58e0e187af3936c4e371817f