Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Monero LMDB blockchain evolution
Input file
violino:/home/software/bitmonero/build/release/bin.perf> ls -l ~/Public/blockchain.raw
-rw-r--r-- 1 hyc hyc 2463754366 Dec 19 07:04 /home/hyc/Public/blockchain.raw
Monero v0.9.0.0
2016-Mar-28 19:33:28.437077 End of file reached
2016-Mar-28 19:33:31.897485 Number of blocks imported: 874829
2016-Mar-28 19:33:31.897709 Finished at block: 874829 total blocks: 874830
2016-Mar-28 19:33:32.181177 Closing IO Service.
Command being timed: "./blockchain_import --database lmdb#nosync --verify 0"
User time (seconds): 344.22
System time (seconds): 96.56
Percent of CPU this job got: 38%
Elapsed (wall clock) time (h:mm:ss or m:ss): 18:57.16
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 6293840
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 334271
Minor (reclaiming a frame) page faults: 1387355
Voluntary context switches: 352920
Involuntary context switches: 233521
Swaps: 0
File system inputs: 42696800
File system outputs: 82961928
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
violino:/home/software/bitmonero/build/release/bin0900> ls -l ~/.bitmonero/lmdb
total 9387595
-rw-r--r-- 1 hyc hyc 9603514368 Mar 28 19:33 data.mdb
-rw-r--r-- 1 hyc hyc 8192 Mar 28 19:33 lock.mdb
Space amplification: 9603514368/2463754366 = 3.897
violino:/home/software/bitmonero/build/release/bin0900> mdb_stat -ef ~/.bitmonero/lmdb
Environment Info
Map address: (nil)
Map size: 10712146944
Page size: 4096
Max pages: 2615270
Number of pages used: 2344608
Last transaction ID: 49
Max readers: 126
Number of readers used: 0
Freelist Status
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 739
Entries: 10
Free pages: 377926
Status of Main DB
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 0
Entries: 19
Data overhead (2344608 - 377926) * 4096 / 2463754366 = 3.269
Monero v0.9.3.0
2016-Mar-28 18:56:44.953413 End of file reached
2016-Mar-28 18:56:48.324588 Number of blocks imported: 874829
2016-Mar-28 18:56:48.324698 Finished at block: 874829 total blocks: 874830
2016-Mar-28 18:56:48.331163 Closing IO Service.
Command being timed: "./blockchain_import --database lmdb#nosync --verify 0"
User time (seconds): 265.21
System time (seconds): 106.28
Percent of CPU this job got: 36%
Elapsed (wall clock) time (h:mm:ss or m:ss): 16:50.76
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 6307712
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 392979
Minor (reclaiming a frame) page faults: 1425684
Voluntary context switches: 432789
Involuntary context switches: 226622
Swaps: 0
File system inputs: 51517232
File system outputs: 82499360
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
violino:/home/software/bitmonero/build/release/bin0.9.3.0> ls -l ~/.bitmonero/lmdb
total 9349045
-rw-r--r-- 1 hyc hyc 9564078080 Mar 28 18:56 data.mdb
-rw-r--r-- 1 hyc hyc 8192 Mar 28 18:56 lock.mdb
Space amplification: 9564078080/2463754366 = 3.881
violino:/home/software/bitmonero/build/release/bin0.9.3.0> mdb_stat -ef ~/.bitmonero/lmdb
Environment Info
Map address: (nil)
Map size: 10550272000
Page size: 4096
Max pages: 2575750
Number of pages used: 2334980
Last transaction ID: 48
Max readers: 126
Number of readers used: 0
Freelist Status
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 739
Entries: 10
Free pages: 378055
Status of Main DB
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 0
Entries: 19
Data overhead = (2334980 - 378055) * 4096 / 2463754366 = 3.253
Perf branch bc69d842cc4982ea48eaa4338247a179b5f8a082
2016-Mar-28 18:18:54.366697 End of file reached
2016-Mar-28 18:18:58.609677 Number of blocks imported: 874829
2016-Mar-28 18:18:58.609758 Finished at block: 874829 total blocks: 874830
2016-Mar-28 18:18:59.210768 Closing IO Service.
Command being timed: "./blockchain_import --database lmdb#nosync --verify 0"
User time (seconds): 219.72
System time (seconds): 40.84
Percent of CPU this job got: 54%
Elapsed (wall clock) time (h:mm:ss or m:ss): 7:54.48
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 6299812
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 3428
Minor (reclaiming a frame) page faults: 699244
Voluntary context switches: 13727
Involuntary context switches: 203434
Swaps: 0
File system inputs: 2658144
File system outputs: 49555208
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
violino:/home/software/bitmonero/build/release/bin> ls -l ~/.bitmonero/lmdb
total 7073517
-rw-r--r-- 1 hyc hyc 7236210688 Mar 28 18:18 data.mdb
-rw-r--r-- 1 hyc hyc 8192 Mar 28 18:18 lock.mdb
Space amplification: 7236210688/2463754366 = 2.937
violino:/home/software/bitmonero/build/release/bin.perf> mdb_stat -ef ~/.bitmonero/lmdb
Environment Info
Map address: (nil)
Map size: 8280969216
Page size: 4096
Max pages: 2021721
Number of pages used: 1766653
Last transaction ID: 48
Max readers: 126
Number of readers used: 0
Freelist Status
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 474
Entries: 2
Free pages: 242422
Status of Main DB
Tree depth: 1
Branch pages: 0
Leaf pages: 1
Overflow pages: 0
Entries: 12
Data overhead (1766653 - 242422) * 4096 / 2463754366 = 2.534
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.