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:
committed by
Marge Bot
parent
3a13e318de
commit
d5ec115260
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user