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 via Linux-erofs
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

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

2021-02-22 Thread Huang Jianan via Linux-erofs
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

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

2021-02-22 Thread Gao Xiang
(cont. the previous reply) On Tue, Feb 23, 2021 at 01:19:26PM +0800, Gao Xiang wrote: ... > > + __le16 lz4_max_distance;/* lz4 max distance */ unneeded comment. > > + __u8 reserved2[42]; > > }; > > > > /* > > diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h > > index 67a7

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

2021-02-22 Thread Gao Xiang
On Tue, Feb 23, 2021 at 12:36:34PM +0800, Huang Jianan via Linux-erofs wrote: > From: huangjianan > > 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 >

[PATCH v2] erofs-utils: support adjust lz4 history window size

2021-02-22 Thread Huang Jianan via Linux-erofs
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

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

2021-02-22 Thread Huang Jianan via Linux-erofs
From: huangjianan 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 n

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

2021-02-22 Thread Gao Xiang
On Tue, Feb 23, 2021 at 10:03:59AM +0800, Huang Jianan wrote: > Hi Xiang, > > On 2021/2/22 12:44, Gao Xiang wrote: > > Hi Jianan, > > > > On Thu, Feb 18, 2021 at 08:00:49PM +0800, Huang Jianan via Linux-erofs > > wrote: > > > From: huangjianan > > > > > > lz4 uses LZ4_DISTANCE_MAX to record hi

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

2021-02-22 Thread Huang Jianan via Linux-erofs
Hi Xiang, On 2021/2/22 12:44, Gao Xiang wrote: Hi Jianan, On Thu, Feb 18, 2021 at 08:00:49PM +0800, Huang Jianan via Linux-erofs wrote: From: huangjianan lz4 uses LZ4_DISTANCE_MAX to record history preservation. When using rolling decompression, a block with a higher compression ratio will c

Low-Cost Loans for SMEs & Investment Funding.

2021-02-22 Thread Nicholas Toms
My name is Nicholas Toms, an investment portfolio manage. We offer the right loan Investment funding with low interest to finance your business or project ranging from US$1M to US$2BIllion. Kindly contact me for more details as I am open to questions. Sincerely, Nicholas Toms

Re: [PATCH v3] erofs-utils: fix battach on full buffer blocks

2021-02-22 Thread Li GuiFu via Linux-erofs
On 2021/2/15 0:00, Gao Xiang via Linux-erofs wrote: > From: Hu Weiwen > > When the subsequent erofs_battach() is called on an buffer block of > which (bb->buffers.off % EROFS_BLKSIZ == 0), `tail_blkaddr' won't be > updated correctly. This bug can be reproduced by: > > mkdir bug-repo > head -c