[igt-dev] [PATCH i-g-t] lib: Bump estimates for object overhead

Chris Wilson chris at chris-wilson.co.uk
Fri Apr 3 13:24:14 UTC 2020


We are dramatically underestimating the overhead for an active object
and its inodes.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 lib/intel_os.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_os.c b/lib/intel_os.c
index 8458d39a1..2bb0c981a 100644
--- a/lib/intel_os.c
+++ b/lib/intel_os.c
@@ -306,7 +306,7 @@ int __intel_check_memory(uint64_t count, uint64_t size, unsigned mode,
 			 uint64_t *out_required, uint64_t *out_total)
 {
 /* rough estimate of how many bytes the kernel requires to track each object */
-#define KERNEL_BO_OVERHEAD 512
+#define KERNEL_BO_OVERHEAD 8192 /* 2k for an object, 2k for an inode, etc */
 	uint64_t required, total;
 
 	required = count;
-- 
2.26.0



More information about the igt-dev mailing list