Re: [PATCH v2] udmabuf: use kmem_cache to alloc udmabuf folio

2024-07-31 Thread Huan Yang
在 2024/7/31 14:26, Huan Yang 写道: The current udmabuf_folio contains a list_head and the corresponding folio pointer, with a size of 24 bytes. udmabuf_folio uses kmalloc to allocate memory. However, kmalloc is a public pool, starting from 64 bytes. This means that each udmabuf_folio allocation

[PATCH v2] udmabuf: use kmem_cache to alloc udmabuf folio

2024-07-30 Thread Huan Yang
The current udmabuf_folio contains a list_head and the corresponding folio pointer, with a size of 24 bytes. udmabuf_folio uses kmalloc to allocate memory. However, kmalloc is a public pool, starting from 64 bytes. This means that each udmabuf_folio allocation will waste 40 bytes. Considering tha