[LTP] [PATCH v2 1/1] cachestat01: Reduce required space on 64kb page size

Hongchen Zhang zhanghongchen@loongson.cn
Fri Oct 18 09:50:41 CEST 2024


On 2024/8/1 pm 5:14, Petr Vorel wrote:
Hi Petr and Cyri,
   I encountered the same problem when using 16K page. The calculated 
num_sthift is 5 (300 * 1024 * 2.5/16384~=46), and the final write size 
is 16384 * (2<<15)=512MB, so num_sthift is too large.

I think we can change the calculation method of num_sthift to:

unsigned int max_shift = log2(tst_device->size*MB(1)/page_size);
num_shift = MIN(max_shift, 15);

>> Hi!
>>> Problem is only with Btrfs and XFS. Others have between 0-1% (including
>>> Bcachefs). Therefore 2.6* (or 2.7*) is IMHO still secure.
>>> If you worry, we can have 2.5* (more secure).
> 
>> Let's go for 2.5 then.
> 
> Thanks, merged!
> 
> Kind regards,
> Petr
> 


-- 
Best Regards
Hongchen Zhang



More information about the ltp mailing list