Re: [PATCH] erofs: rename per-CPU buffers to global buffer pool and make it configurable

2024-03-22 Thread Chunhai Guo via Linux-erofs
Got it. I will send patch v2 as your suggestion. Thanks, 在 2024/3/22 12:10, Gao Xiang 写道: > > On 2024/3/22 11:47, Chunhai Guo wrote: >> It will cost more time if compressed buffers are allocated on demand for >> low-latency algorithms (like lz4) so EROFS uses per-CPU buffers to keep >> compressed

Re: [PATCH] erofs: rename per-CPU buffers to global buffer pool and make it configurable

2024-03-21 Thread Gao Xiang
On 2024/3/22 11:47, Chunhai Guo wrote: It will cost more time if compressed buffers are allocated on demand for low-latency algorithms (like lz4) so EROFS uses per-CPU buffers to keep compressed data if in-place decompression is unfulfilled. While it is kind of wasteful of memory for a device

[PATCH] erofs: rename per-CPU buffers to global buffer pool and make it configurable

2024-03-21 Thread Chunhai Guo via Linux-erofs
It will cost more time if compressed buffers are allocated on demand for low-latency algorithms (like lz4) so EROFS uses per-CPU buffers to keep compressed data if in-place decompression is unfulfilled. While it is kind of wasteful of memory for a device with hundreds of CPUs, and only a small num