crypto-org-chain / cronos

Cronos is the first Ethereum-compatible blockchain network built on Cosmos SDK technology. Cronos aims to massively scale the DeFi, GameFi, and overall Web3 user community by providing builders with the ability to instantly port apps and crypto assets from other chains while benefiting from low transaction fees, high throughput, and fast finality.
Other
290 stars 235 forks source link

Problem: memiavl snapshot don't have any compression #827

Open yihuang opened 1 year ago

yihuang commented 1 year ago

Currently for simplicity, the snapshot format is plain data without any compression, compression is important to reduce the size.

yihuang commented 1 year ago

deprioritize this one to avoid premature optimization, uncompressed nodes has fixed size, had the advantage of simplicity.

yihuang commented 1 year ago

now the simpler design is about to release, more sophisticated version can be considered now (if we really want to dig this rabbit hole) ;D

yihuang commented 1 year ago

it seems filesystem level compression works well with memiavl, we probably don't need to worry about this issue at all.

$ sudo compsize -x /chain/.chain-maind/data/memiavl.db
Processed 865 files, 320027 regular extents (320027 refs), 416 inline.
Type       Perc     Disk Usage   Uncompressed Referenced
TOTAL       41%       23G          56G          56G
none       100%       17G          17G          17G
zstd        14%      5.8G          38G          38G
Bunsen1990 commented 1 year ago

Do Not Worry About.

On Tue, 11 July 2023, 7:22 pm yihuang, @.***> wrote:

it seems filesystem level compression works with mmap, if it works well, we probably don't need to worry about this issue at all.

— Reply to this email directly, view it on GitHub https://github.com/crypto-org-chain/cronos/issues/827#issuecomment-1630468974, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNKBY4UMXQ4LELYBWMVZDDXPULNDANCNFSM6AAAAAAUJLUC6M . You are receiving this because you are subscribed to this thread.Message ID: @.***>