[Intel-gfx] [PATCH i-g-t] lib: Do two writes to /proc/sys/vm/drop_caches again

Chris Wilson chris at chris-wilson.co.uk
Tue Sep 27 09:41:37 UTC 2016


On Tue, Sep 27, 2016 at 12:22:12PM +0300, Petri Latvala wrote:
> The drop_caches sysctl has a max value of 4, so writing 7 to it just
> fails. Avoid the earlier two-writes problem by opening the fd twice.
> 
> v2: Don't lseek(), open() twice. (Chris)
> 
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>

Thanks, pushed. The sysctl being a bitmask and not accepting the full
range is a bit surprising.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list