Re: [PATCH 2/2] drm/amdkfd: Allow memory oversubscription on small APUs

2024-04-29 Thread Felix Kuehling
On 2024-04-29 06:38, Yu, Lang wrote: [Public] -Original Message- From: Kuehling, Felix Sent: Saturday, April 27, 2024 6:45 AM To: Yu, Lang ; amd-gfx@lists.freedesktop.org Cc: Yang, Philip ; Koenig, Christian ; Zhang, Yifan ; Liu, Aaron Subject: Re: [PATCH 2/2] drm/amdkfd: Allow

RE: [PATCH 2/2] drm/amdkfd: Allow memory oversubscription on small APUs

2024-04-29 Thread Yu, Lang
[Public] >-Original Message- >From: Kuehling, Felix >Sent: Saturday, April 27, 2024 6:45 AM >To: Yu, Lang ; amd-gfx@lists.freedesktop.org >Cc: Yang, Philip ; Koenig, Christian >; Zhang, Yifan ; Liu, >Aaron >Subject: Re: [PATCH 2/2] drm/amdkfd: Allow memory ov

Re: [PATCH 2/2] drm/amdkfd: Allow memory oversubscription on small APUs

2024-04-26 Thread Felix Kuehling
On 2024-04-26 04:37, Lang Yu wrote: The default ttm_tt_pages_limit is 1/2 of system memory. It is prone to out of memory with such a configuration. Indiscriminately allowing the violation of all memory limits is not a good solution. It will lead to poor performance once you actually reach ttm_p