author | Chris Wilson <chris@chris-wilson.co.uk> | |
Mon, 5 Dec 2011 21:29:05 +0000 (21:29 +0000) | ||
committer | Chris Wilson <chris@chris-wilson.co.uk> | |
Mon, 5 Dec 2011 22:22:10 +0000 (22:22 +0000) | ||
commit | e4b60f29609e9993dc7268993da509530862aa78 | |
tree | eaafe22d2f091d6288864359a546991fde9763c3 | tree | snapshot (tar.xz tar.gz zip) |
parent | 902ee661f1864aaf8325621085f6a1b5a6a3673a | commit | diff |
intel: Add an interface to limit vma caching
There is a per-process limit on the number of vma that the process can
keep open, so we cannot keep an unlimited cache of unused vma's (besides
keeping track of all those vma in the kernel adds considerable overhead).
However, in order to work around inefficiencies in the kernel it is
beneficial to reuse the vma, so keep a MRU cache of vma.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
There is a per-process limit on the number of vma that the process can
keep open, so we cannot keep an unlimited cache of unused vma's (besides
keeping track of all those vma in the kernel adds considerable overhead).
However, in order to work around inefficiencies in the kernel it is
beneficial to reuse the vma, so keep a MRU cache of vma.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr.h | diff | blob | history | |
intel/intel_bufmgr_gem.c | diff | blob | history |