How can I confirm LV_MEM_SIZE?

Description

What MCU/Processor/Board and compiler are you using?

ESP32-S3

What LVGL version are you using?

v8.3.10

What do you want to achieve?

When I scrolled through the roller, I received an error Log ( assert failed: block_locate_free tlsf.c:566 (block_size(block) >= size) ). And I learned from various sources that this is caused by the LV_MEM_SIZE being too small. So I tried increasing CONFIG_LV_MEM_BUF_MAX_NUM and the problem was resolved.
But I want to know the following three points:

  1. How large LV_MEM_SIZE needs to be?
  2. How large CONFIG_LV_MEM_BUF_MAX_NUM needs to be after selecting CONFIG_LV_MEM_CUSTOM?
  3. How to calculate these two parameters?

What have you tried so far?

Increase CONFIG_LV_MEM_BUF_MAX_NUM to 64