[PATCH] intel: Limit re-use cache size

2008-12-15 Thread Keith Packard
This limits reuse to 16MB per cache level to try and reduce application memory consumption. Signed-off-by: Keith Packard kei...@keithp.com --- libdrm/intel/intel_bufmgr_gem.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/libdrm/intel/intel_bufmgr_gem.c

Re: [Intel-gfx] [PATCH] intel: Limit re-use cache size

2008-12-15 Thread Eric Anholt
On Mon, 2008-12-15 at 15:08 -0800, Keith Packard wrote: This limits reuse to 16MB per cache level to try and reduce application memory consumption. Is 16MB based on any measurements at all? I don't like this patch. I'd prefer to have us figure out bugs that make the cache grow overly large,

Re: [Intel-gfx] [PATCH] intel: Limit re-use cache size

2008-12-15 Thread Keith Packard
On Mon, 2008-12-15 at 17:49 -0800, Eric Anholt wrote: On Mon, 2008-12-15 at 15:08 -0800, Keith Packard wrote: This limits reuse to 16MB per cache level to try and reduce application memory consumption. Is 16MB based on any measurements at all? Nope. It's random. I don't like this patch.