?????? [Discuss] Optimize write cache: ??Two write caches become multi-cache blocks; ??All data directories share write cache resources;

2022-06-08 Thread lordcheng10
The 2-block cache sometimes affects the processing power of bookie. We have encountered the problem of write failure because both caches are full. If the write cache is increased, it will cause too much data in a flush, which will lead to a longer time for a flush, and the cache resources cannot

Re: [Discuss] Optimize write cache: ①Two write caches become multi-cache blocks; ②All data directories share write cache resources;

2022-06-08 Thread Matteo Merli
The reason for having 2 block is on purpose to keep the entries in the cache for the longest possible time. That will maximize the number of entries for the same ledger that will be stored sequentially on the disk and it will increase the read performance. On Wed, Jun 8, 2022 at 12:05 AM lordcheng

[Discuss] Optimize write cache: ??Two write caches become multi-cache blocks; ??All data directories share write cache resources;

2022-06-08 Thread lordcheng10
The current write cache has only 2 blocks, which has the following deficiencies:       1.Insufficient use of cache: When half of the write cache is flushed, it must wait for all the data in the write cache to be flushed before it can be released. With the same write cache size, if we divide the