Re: [PATCH v3] erofs: support adjust lz4 history window size

2021-02-23 Thread Gao Xiang
On Tue, Feb 23, 2021 at 03:44:18PM +0800, Gao Xiang wrote: > On Tue, Feb 23, 2021 at 03:31:19PM +0800, Huang Jianan via Linux-erofs wrote: > > lz4 uses LZ4_DISTANCE_MAX to record history preservation. When > > using rolling decompression, a block with a higher compression > > ratio will cause a

Re: [PATCH v3] erofs: support adjust lz4 history window size

2021-02-22 Thread Gao Xiang
On Tue, Feb 23, 2021 at 03:31:19PM +0800, Huang Jianan via Linux-erofs wrote: > lz4 uses LZ4_DISTANCE_MAX to record history preservation. When > using rolling decompression, a block with a higher compression > ratio will cause a larger memory allocation (up to 64k). It may > cause a large resource

[PATCH v3] erofs: support adjust lz4 history window size

2021-02-22 Thread Huang Jianan
lz4 uses LZ4_DISTANCE_MAX to record history preservation. When using rolling decompression, a block with a higher compression ratio will cause a larger memory allocation (up to 64k). It may cause a large resource burden in extreme cases on devices with small memory and a large number of concurrent