hk: reduce heap size

at least until our swapping is better in the kernel.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
Alyssa Rosenzweig
2024-09-29 08:28:35 -04:00
committed by Marge Bot
parent 3a13e318de
commit d5ec115260
+2 -2
View File
@@ -1038,8 +1038,8 @@ hk_physical_device_free_disk_cache(struct hk_physical_device *pdev)
#endif
}
/* Use 3/4 of total size to avoid swapping */
#define SYSMEM_HEAP_FRACTION(x) (x * 3 / 4)
/* Use 1/2 of total size to avoid swapping */
#define SYSMEM_HEAP_FRACTION(x) (x * 1 / 2)
static uint64_t
hk_get_sysmem_heap_size(void)