[PATCH 2/2] erofs: rename per CPU buffer to global buffer pool and make it configurable
Gao Xiang
hsiangkao at linux.alibaba.com
Tue Apr 2 14:09:58 AEDT 2024
On 2024/4/1 21:56, 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 with hundreds of CPUs, and only a small
> number of CPUs concurrently decompress most of the time.
>
> This patch renames it as 'global buffer pool' and makes it configurable.
> This allows two or more CPUs to share a common buffer to reduce memory
> occupation.
>
> Suggested-by: Gao Xiang <xiang at kernel.org>
> Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>
> Signed-off-by: Chunhai Guo <guochunhai at vivo.com>
I've applied these two patches to -dev-test for the next cycle.
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list