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

Signed-off-by: Chris Wilson <ch...@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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to