WT file expansion when mongorestore in parallel

I have a 63GB bson file which generated by mongodump from a collection in MongoDB ClusterA.
After restored to a new MongoDB clusterB, I found that the larger the numInsertionWorkersPerCollection, the more serious the data expansion.
Here is what I observed:

  • numInsertionWorkersPerCollection =1, storageSize of collection in clusterB: 23017185280
  • numInsertionWorkersPerCollection =2, storageSize of collection in clusterB: 24113913856
  • numInsertionWorkersPerCollection =1, storageSize of collection in clusterB: 26031575040
  • numInsertionWorkersPerCollection =1, storageSize of collection in clusterB: 26677657600
  • numInsertionWorkersPerCollection =1, storageSize of collection in clusterB: 28335878144

“file bytes available for reuse” in collectionStats result is very low, about 1MB.
So I wrote a tool to analyze the padding size in WT data blocks, and found more paddings when storageSize is larger.

So, what confused me is:

  1. What is the relationship between numInsertionWorkersPerCollection and data expansion?
  2. Is there any way to avoid data expansion(or reduce padding size)?

My MongoDB version :4.4.13 (community)

  • numInsertionWorkersPerCollection =1, storageSize of collection in clusterB: 23017185280
  • numInsertionWorkersPerCollection =2, storageSize of collection in clusterB: 24113913856
  • numInsertionWorkersPerCollection =4, storageSize of collection in clusterB: 26031575040
  • numInsertionWorkersPerCollection =8, storageSize of collection in clusterB: 26677657600
  • numInsertionWorkersPerCollection =16, storageSize of collection in clusterB: 28335878144

Hi @FirstName_pengzhenyi welcome to the community!

Could you provide the output of db.collection.stats() for all those collections please?

Also, I am assuming that you’re working with one collection and not multiple. Is this correct?

Best regards
Kevin

I did the restore operation again, and get the result (MongoDB Version 4.4.13 community):

  • numInsertionWorkersPerCollection =1, storageSize of collection in clusterB: 18287190016
  • numInsertionWorkersPerCollection =2, storageSize of collection in clusterB: 19349106688
  • numInsertionWorkersPerCollection =4, storageSize of collection in clusterB: 20934098944
  • numInsertionWorkersPerCollection =8, storageSize of collection in clusterB: 22373642240
  • numInsertionWorkersPerCollection =16, storageSize of collection in clusterB: 23564926976

numInsertionWorkersPerCollection=1:

PRIMARY> db.coll1.stats()
{
        "ns" : "tenant_cxd.coll1",
        "size" : 67615718696,
        "count" : 151810196,
        "avgObjSize" : 445,
        "storageSize" : 18287190016,
        "freeStorageSize" : 274432,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:tenant_cxd/collection-48-3303682114623090744",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 935676,
                        "blocks allocated" : 948769,
                        "blocks freed" : 29736,
                        "checkpoint size" : 18286899200,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 274432,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 18287190016,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 28601,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 4,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 760262,
                        "bytes dirty in the cache cumulative" : 223673489,
                        "bytes read into cache" : 237207,
                        "bytes written from cache" : 70364761333,
                        "checkpoint blocked page eviction" : 74,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 372,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 36170,
                        "eviction walk target pages histogram - 0-9" : 8988,
                        "eviction walk target pages histogram - 10-31" : 5489,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 7706,
                        "eviction walk target pages histogram - 64-128" : 13987,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 3780,
                        "eviction walks gave up because they restarted their walk twice" : 10727,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 4670,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 2387,
                        "eviction walks reached end of tree" : 32947,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 21564,
                        "eviction walks started from saved location in tree" : 14606,
                        "hazard pointer blocked page eviction" : 157,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 19293,
                        "in-memory page splits" : 9536,
                        "internal pages evicted" : 9034,
                        "internal pages split during eviction" : 91,
                        "leaf pages split during eviction" : 9670,
                        "modified pages evicted" : 18694,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 1,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 3,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 304527404,
                        "pages seen by eviction walk" : 68164462,
                        "pages written from cache" : 948319,
                        "pages written requiring in-memory restoration" : 8714,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 797730
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 17,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 1930120,
                        "pages visited" : 3762345
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 131072,
                        "compressed pages read" : 3,
                        "compressed pages written" : 923906,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 24413
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 335268,
                        "close calls that result in cache" : 335268,
                        "create calls" : 11,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 1,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 151810196,
                        "insert key and value bytes" : 68357901840,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 1,
                        "open cursor count" : 0,
                        "operation restarted" : 0,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 670536,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 0,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 696647856,
                        "approximate byte size of transaction IDs in pages written" : 125936,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 1434275,
                        "internal page multi-block writes" : 459,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 9878,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 55,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 19609,
                        "page reconciliation calls for eviction" : 12146,
                        "pages deleted" : 17,
                        "pages written including an aggregated newest start durable timestamp " : 19048,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 1880,
                        "pages written including an aggregated oldest start timestamp " : 18879,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 415598,
                        "pages written including at least one start timestamp" : 415598,
                        "pages written including at least one start transaction ID" : 125,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 43540491,
                        "records written including a start timestamp" : 43540491,
                        "records written including a start transaction ID" : 15742,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 1,
        "indexBuilds" : [ ],
        "totalIndexSize" : 3575508992,
        "totalSize" : 21862699008,
        "indexSizes" : {
                "_id_" : 3575508992
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667295531, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667295531, 1)
}

numInsertionWorkersPerCollection=2:

PRIMARY> db.coll2.stats()
{
        "ns" : "tenant_cxd.coll2",
        "size" : 67615718696,
        "count" : 151810196,
        "avgObjSize" : 445,
        "storageSize" : 19349106688,
        "freeStorageSize" : 995328,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:tenant_cxd/collection-50-3303682114623090744",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 1229055,
                        "blocks allocated" : 1238528,
                        "blocks freed" : 16723,
                        "checkpoint size" : 19348094976,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 995328,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 19349106688,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 28603,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 5,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 102663,
                        "bytes dirty in the cache cumulative" : 114576824,
                        "bytes read into cache" : 377949,
                        "bytes written from cache" : 70886249949,
                        "checkpoint blocked page eviction" : 67,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 673,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 40884,
                        "eviction walk target pages histogram - 0-9" : 7072,
                        "eviction walk target pages histogram - 10-31" : 6162,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 7802,
                        "eviction walk target pages histogram - 64-128" : 19848,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 2720,
                        "eviction walks gave up because they restarted their walk twice" : 3502,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 7720,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 3957,
                        "eviction walks reached end of tree" : 21225,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 17901,
                        "eviction walks started from saved location in tree" : 22983,
                        "hazard pointer blocked page eviction" : 127,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 19945,
                        "in-memory page splits" : 9552,
                        "internal pages evicted" : 12104,
                        "internal pages split during eviction" : 122,
                        "leaf pages split during eviction" : 9671,
                        "modified pages evicted" : 21753,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 2,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 5,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 323230941,
                        "pages seen by eviction walk" : 85414700,
                        "pages written from cache" : 1238296,
                        "pages written requiring in-memory restoration" : 9122,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 1140033
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 19,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 1115112,
                        "pages visited" : 3005558
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 131072,
                        "compressed pages read" : 5,
                        "compressed pages written" : 1216404,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 21892
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 335267,
                        "close calls that result in cache" : 335267,
                        "create calls" : 9,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 1,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 151810196,
                        "insert key and value bytes" : 68357901840,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 1,
                        "open cursor count" : 0,
                        "operation restarted" : 1445,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 670534,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 0,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 2055183120,
                        "approximate byte size of transaction IDs in pages written" : 411056,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 1314174,
                        "internal page multi-block writes" : 248,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 9756,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 50,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 22226,
                        "page reconciliation calls for eviction" : 13129,
                        "pages deleted" : 19,
                        "pages written including an aggregated newest start durable timestamp " : 21284,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 929,
                        "pages written including an aggregated oldest start timestamp " : 21269,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 1124935,
                        "pages written including at least one start timestamp" : 1124935,
                        "pages written including at least one start transaction ID" : 441,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 128448945,
                        "records written including a start timestamp" : 128448945,
                        "records written including a start transaction ID" : 51382,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 1,
        "indexBuilds" : [ ],
        "totalIndexSize" : 5042601984,
        "totalSize" : 24391708672,
        "indexSizes" : {
                "_id_" : 5042601984
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667295671, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667295671, 1)
}

numInsertionWorkersPerCollection=4:

PRIMARY> db.coll4.stats()
{
        "ns" : "tenant_cxd.coll4",
        "size" : 67615718696,
        "count" : 151810196,
        "avgObjSize" : 445,
        "storageSize" : 20934098944,
        "freeStorageSize" : 1286144,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:tenant_cxd/collection-52-3303682114623090744",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 1279637,
                        "blocks allocated" : 1285906,
                        "blocks freed" : 10007,
                        "checkpoint size" : 20932796416,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 1286144,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 20934098944,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 28604,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 5,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 335628,
                        "bytes dirty in the cache cumulative" : 77408265,
                        "bytes read into cache" : 57729,
                        "bytes written from cache" : 70951051955,
                        "checkpoint blocked page eviction" : 32,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 1375,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 247881,
                        "eviction walk target pages histogram - 0-9" : 215953,
                        "eviction walk target pages histogram - 10-31" : 5715,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 8715,
                        "eviction walk target pages histogram - 64-128" : 17498,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 2211,
                        "eviction walks gave up because they restarted their walk twice" : 213402,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 4377,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 2454,
                        "eviction walks reached end of tree" : 435714,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 222452,
                        "eviction walks started from saved location in tree" : 25429,
                        "hazard pointer blocked page eviction" : 153,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 23749,
                        "in-memory page splits" : 9503,
                        "internal pages evicted" : 12319,
                        "internal pages split during eviction" : 124,
                        "leaf pages split during eviction" : 9752,
                        "modified pages evicted" : 21932,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 2,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 2,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 328264091,
                        "pages seen by eviction walk" : 53008306,
                        "pages written from cache" : 1285772,
                        "pages written requiring in-memory restoration" : 9303,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 1222297
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 32,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 891719,
                        "pages visited" : 2253825
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 131072,
                        "compressed pages read" : 1,
                        "compressed pages written" : 1267545,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 18227
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 335433,
                        "close calls that result in cache" : 335433,
                        "create calls" : 10,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 1,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 151810196,
                        "insert key and value bytes" : 68357901840,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 1,
                        "open cursor count" : 0,
                        "operation restarted" : 80535,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 670866,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 0,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 2369781376,
                        "approximate byte size of transaction IDs in pages written" : 1269568,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 1290984,
                        "internal page multi-block writes" : 271,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 9677,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 85,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 22233,
                        "page reconciliation calls for eviction" : 14809,
                        "pages deleted" : 32,
                        "pages written including an aggregated newest start durable timestamp " : 17895,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 1071,
                        "pages written including an aggregated oldest start timestamp " : 17894,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 1249229,
                        "pages written including at least one start timestamp" : 1249229,
                        "pages written including at least one start transaction ID" : 1338,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 148111336,
                        "records written including a start timestamp" : 148111336,
                        "records written including a start transaction ID" : 158696,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 1,
        "indexBuilds" : [ ],
        "totalIndexSize" : 5121662976,
        "totalSize" : 26055761920,
        "indexSizes" : {
                "_id_" : 5121662976
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667295751, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667295751, 1)
}

numInsertionWorkersPerCollection=8:

PRIMARY> db.coll8.stats()
{
        "ns" : "tenant_cxd.coll8",
        "size" : 67615718696,
        "count" : 151810196,
        "avgObjSize" : 445,
        "storageSize" : 22373642240,
        "freeStorageSize" : 1757184,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:tenant_cxd/collection-54-3303682114623090744",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 1295782,
                        "blocks allocated" : 1299306,
                        "blocks freed" : 5886,
                        "checkpoint size" : 22371868672,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 1757184,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 22373642240,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 28606,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 5,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 100832,
                        "bytes dirty in the cache cumulative" : 56391706,
                        "bytes read into cache" : 54646,
                        "bytes written from cache" : 70884387305,
                        "checkpoint blocked page eviction" : 23,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 3338,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 37434,
                        "eviction walk target pages histogram - 0-9" : 3801,
                        "eviction walk target pages histogram - 10-31" : 6059,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 8260,
                        "eviction walk target pages histogram - 64-128" : 19314,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 975,
                        "eviction walks gave up because they restarted their walk twice" : 1127,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 4357,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 2162,
                        "eviction walks reached end of tree" : 9610,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 8632,
                        "eviction walks started from saved location in tree" : 28802,
                        "hazard pointer blocked page eviction" : 109,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 28489,
                        "in-memory page splits" : 9481,
                        "internal pages evicted" : 12420,
                        "internal pages split during eviction" : 125,
                        "leaf pages split during eviction" : 9787,
                        "modified pages evicted" : 22024,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 2,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 1,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 328824010,
                        "pages seen by eviction walk" : 50366780,
                        "pages written from cache" : 1299224,
                        "pages written requiring in-memory restoration" : 9397,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 1253254
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 38,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 549089,
                        "pages visited" : 1456538
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 131072,
                        "compressed pages read" : 1,
                        "compressed pages written" : 1283105,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 16119
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 335197,
                        "close calls that result in cache" : 335197,
                        "create calls" : 14,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 1,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 151810196,
                        "insert key and value bytes" : 68357901840,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 1,
                        "open cursor count" : 0,
                        "operation restarted" : 106424,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 670394,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 0,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 2429533408,
                        "approximate byte size of transaction IDs in pages written" : 3562680,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 1289520,
                        "internal page multi-block writes" : 270,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 9636,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 1,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 22227,
                        "page reconciliation calls for eviction" : 15140,
                        "pages deleted" : 38,
                        "pages written including an aggregated newest start durable timestamp " : 15837,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 840,
                        "pages written including an aggregated oldest start timestamp " : 15837,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 1281782,
                        "pages written including at least one start timestamp" : 1281782,
                        "pages written including at least one start transaction ID" : 3864,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 151845838,
                        "records written including a start timestamp" : 151845838,
                        "records written including a start transaction ID" : 445335,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 1,
        "indexBuilds" : [ ],
        "totalIndexSize" : 5234679808,
        "totalSize" : 27608322048,
        "indexSizes" : {
                "_id_" : 5234679808
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667295831, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667295831, 1)
}

numInsertionWorkersPerCollection=16:

PRIMARY> db.coll16.stats()
{
        "ns" : "tenant_cxd.coll16",
        "size" : 67615718696,
        "count" : 151810196,
        "avgObjSize" : 445,
        "storageSize" : 23564926976,
        "freeStorageSize" : 884736,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:tenant_cxd/collection-56-3303682114623090744",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 1295729,
                        "blocks allocated" : 1298243,
                        "blocks freed" : 3975,
                        "checkpoint size" : 23564025856,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 884736,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 23564926976,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 28606,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 5,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 1451405390,
                        "bytes dirty in the cache cumulative" : 46278939,
                        "bytes read into cache" : 0,
                        "bytes written from cache" : 70823621636,
                        "checkpoint blocked page eviction" : 97,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 6431,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 36367,
                        "eviction walk target pages histogram - 0-9" : 2320,
                        "eviction walk target pages histogram - 10-31" : 5331,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 8372,
                        "eviction walk target pages histogram - 64-128" : 20344,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 473,
                        "eviction walks gave up because they restarted their walk twice" : 91,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 3885,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 2012,
                        "eviction walks reached end of tree" : 6412,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 6466,
                        "eviction walks started from saved location in tree" : 29901,
                        "hazard pointer blocked page eviction" : 249,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 34610,
                        "in-memory page splits" : 9483,
                        "internal pages evicted" : 12031,
                        "internal pages split during eviction" : 123,
                        "leaf pages split during eviction" : 9808,
                        "modified pages evicted" : 21619,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 2,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 0,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 327443443,
                        "pages seen by eviction walk" : 49576873,
                        "pages written from cache" : 1298187,
                        "pages written requiring in-memory restoration" : 9420,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 1233923
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 44,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 369613,
                        "pages visited" : 1039622
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 131072,
                        "compressed pages read" : 0,
                        "compressed pages written" : 1282938,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 15249
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 335080,
                        "close calls that result in cache" : 335084,
                        "create calls" : 23,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 1,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 151810196,
                        "insert key and value bytes" : 68357901840,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 1,
                        "open cursor count" : 0,
                        "operation restarted" : 120127,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 670168,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 0,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 2429548400,
                        "approximate byte size of transaction IDs in pages written" : 5579072,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 1288798,
                        "internal page multi-block writes" : 282,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 9621,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 101,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 21968,
                        "page reconciliation calls for eviction" : 15697,
                        "pages deleted" : 44,
                        "pages written including an aggregated newest start durable timestamp " : 14980,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 766,
                        "pages written including an aggregated oldest start timestamp " : 14980,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 1282158,
                        "pages written including at least one start timestamp" : 1282158,
                        "pages written including at least one start transaction ID" : 6038,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 151846775,
                        "records written including a start timestamp" : 151846775,
                        "records written including a start transaction ID" : 697384,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 1,
        "indexBuilds" : [ ],
        "totalIndexSize" : 5264338944,
        "totalSize" : 28829265920,
        "indexSizes" : {
                "_id_" : 5264338944
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667295871, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667295871, 1)
}

Hi @FirstName_pengzhenyi

I did my own testing but end up with different numbers. Note that I only tested with numInsertionWorkersPerCollection of 1 and 16, since they look to be the extreme ends of your tests.

I tried to create an average object size in the ballpark of yours, with 10 million documents totalling about 5 GB in size.

Here’s the script I used for the test. I used mgeneratejs to generate random data for testing.

mgeneratejs -n 10000000 '{name:"$name", address:"$address", text:"$paragraph"}' | mongoimport -d test -c test --drop
mongodump -d test -c test
mongorestore --nsInclude=test.test --nsFrom=test.test --nsTo=test.test_1 --numInsertionWorkersPerCollection=1 --drop
mongorestore --nsInclude=test.test --nsFrom=test.test --nsTo=test.test_16 --numInsertionWorkersPerCollection=16 --drop

Here’s my results:

numInsertionWorkersPerCollection=1 total storage size ~5.32 GB

  ns: 'test.test_1',
  size: 5405415355,
  count: 10000000,
  avgObjSize: 540,
  storageSize: 5708476416,

numInsertionWorkersPerCollection=16 total storage size ~5.3 GB

  ns: 'test.test_16',
  size: 5405415355,
  count: 10000000,
  avgObjSize: 540,
  storageSize: 5687885824,

I’m using MongoDB 4.4.13 and mongorestore version 100.5.4. The test deployment is a singe-node replica set.

In my case, there doesn’t seem to be any size expansion. I’m not sure why your results are very different, but if you can maybe run the script I posted above and see if you’re seeing a different result? Otherwise please post the example documents & the reproduction script for your initial experiment. Also please post details about the MongoDB deployment you’re using.

Best regards
Kevin

1 Like

I did another test and find some confused question. I have about 12GB bson file and use mongoimport tool to import to mongodb.

Here are my two test case:

  1. If i create index after the document insertion complete, the index size is normal. It’s size is about 11GB
zhangruian-rs_0:PRIMARY> db.user_1400005918.stats()
{
        "ns" : "pushdb.user_1400005918",
        "size" : 2017049569,
        "count" : 92558532,
        "avgObjSize" : 21,
        "storageSize" : 1004810240,
        "freeStorageSize" : 1093632,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:pushdb/collection-0--4493473792861060111",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 42109,
                        "blocks allocated" : 46786,
                        "blocks freed" : 9754,
                        "checkpoint size" : 1003700224,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 1093632,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 1004810240,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 2368,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 4,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 27746,
                        "bytes dirty in the cache cumulative" : 66852720,
                        "bytes read into cache" : 9802642216,
                        "bytes written from cache" : 2983019028,
                        "checkpoint blocked page eviction" : 0,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 177,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 21077,
                        "eviction walk target pages histogram - 0-9" : 10958,
                        "eviction walk target pages histogram - 10-31" : 5597,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 2750,
                        "eviction walk target pages histogram - 64-128" : 1772,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 3,
                        "eviction walks gave up because they restarted their walk twice" : 7415,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 3467,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 567,
                        "eviction walks reached end of tree" : 17747,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 11452,
                        "eviction walks started from saved location in tree" : 9625,
                        "hazard pointer blocked page eviction" : 8,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 2144,
                        "in-memory page splits" : 1054,
                        "internal pages evicted" : 329,
                        "internal pages split during eviction" : 3,
                        "leaf pages split during eviction" : 1132,
                        "modified pages evicted" : 1435,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 1,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 117303,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 159242466,
                        "pages seen by eviction walk" : 6732638,
                        "pages written from cache" : 46486,
                        "pages written requiring in-memory restoration" : 702,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 139182
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 9,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 944508,
                        "pages visited" : 2444803
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 131072,
                        "compressed pages read" : 117272,
                        "compressed pages written" : 41769,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 4717
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 185289,
                        "close calls that result in cache" : 185289,
                        "create calls" : 14,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 277675602,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 92558532,
                        "insert key and value bytes" : 2462974393,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 277675602,
                        "open cursor count" : 0,
                        "operation restarted" : 0,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 649903,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 279327,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 177205344,
                        "approximate byte size of transaction IDs in pages written" : 535336,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 71589,
                        "internal page multi-block writes" : 214,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 1268,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 1,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 1952,
                        "page reconciliation calls for eviction" : 714,
                        "pages deleted" : 9,
                        "pages written including an aggregated newest start durable timestamp " : 3503,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 397,
                        "pages written including an aggregated oldest start timestamp " : 3313,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 11404,
                        "pages written including at least one start timestamp" : 11404,
                        "pages written including at least one start transaction ID" : 47,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 11075334,
                        "records written including a start timestamp" : 11075334,
                        "records written including a start transaction ID" : 66917,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 15,
        "indexBuilds" : [ ],
        "totalIndexSize" : 11148996608,
        "totalSize" : 12153806848,
        "indexSizes" : {
                "_id_" : 1232883712,
                "_id_1_tags.0_1_tags.1_1_tags.2_1_tags.3_1_tags.4_1_tags.5_1_tags.6_1_tags.7_1_tags.8_1_tags.9_1" : 2455584768,
                "tagsv2_1" : 417800192,
                "tags.4_1" : 417800192,
                "_id_1_tagsv2_1" : 1334550528,
                "tags.0_1" : 417800192,
                "tags.2_1" : 417800192,
                "tags.3_1" : 417800192,
                "_id_hashed" : 1520025600,
                "tags.1_1" : 417800192,
                "tags.7_1" : 417800192,
                "tags.8_1" : 417800192,
                "tags.9_1" : 427950080,
                "tags.5_1" : 417800192,
                "tags.6_1" : 417800192
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667976189, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667976189, 1)
}
  1. If i create index before insert the document, and wait util the insertion complete the index size is about three times larger than original. It’s size is about 43GB.
zhangruian-rs_0:PRIMARY> db.test.stats()
{
        "ns" : "test.test",
        "size" : 2017049561,
        "count" : 92558532,
        "avgObjSize" : 21,
        "storageSize" : 1526210560,
        "freeStorageSize" : 163840,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:test/collection-446--4493473792861060111",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 65677,
                        "blocks allocated" : 66929,
                        "blocks freed" : 1959,
                        "checkpoint size" : 1526030336,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 163840,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 1526210560,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 2375,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 4,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 48471,
                        "bytes dirty in the cache cumulative" : 50890771,
                        "bytes read into cache" : 5778117,
                        "bytes written from cache" : 3780824788,
                        "checkpoint blocked page eviction" : 0,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 1214,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 114482,
                        "eviction walk target pages histogram - 0-9" : 35321,
                        "eviction walk target pages histogram - 10-31" : 79152,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 9,
                        "eviction walk target pages histogram - 64-128" : 0,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 16,
                        "eviction walks gave up because they restarted their walk twice" : 7260,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 14095,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 1746,
                        "eviction walks reached end of tree" : 31612,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 23133,
                        "eviction walks started from saved location in tree" : 91349,
                        "hazard pointer blocked page eviction" : 585,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 3854,
                        "in-memory page splits" : 1021,
                        "internal pages evicted" : 400,
                        "internal pages split during eviction" : 4,
                        "leaf pages split during eviction" : 1273,
                        "modified pages evicted" : 1713,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 1,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 70,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 170620003,
                        "pages seen by eviction walk" : 8363540,
                        "pages written from cache" : 66845,
                        "pages written requiring in-memory restoration" : 856,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 39654
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 30,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 183662,
                        "pages visited" : 248730
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 114692,
                        "compressed pages read" : 65,
                        "compressed pages written" : 64476,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 2369
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 185136,
                        "close calls that result in cache" : 185136,
                        "create calls" : 23,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 44,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 92557683,
                        "insert key and value bytes" : 2462956479,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 44,
                        "open cursor count" : 0,
                        "operation restarted" : 76325,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 370300,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 0,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 1442649472,
                        "approximate byte size of transaction IDs in pages written" : 44721696,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 65682,
                        "internal page multi-block writes" : 80,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 1272,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 5,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 1873,
                        "page reconciliation calls for eviction" : 1569,
                        "pages deleted" : 30,
                        "pages written including an aggregated newest start durable timestamp " : 2263,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 815,
                        "pages written including an aggregated oldest start timestamp " : 2254,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 63957,
                        "pages written including at least one start timestamp" : 63957,
                        "pages written including at least one start transaction ID" : 4308,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 90165592,
                        "records written including a start timestamp" : 90165592,
                        "records written including a start transaction ID" : 5590212,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 15,
        "indexBuilds" : [ ],
        "totalIndexSize" : 43485159424,
        "totalSize" : 45011369984,
        "indexSizes" : {
                "_id_" : 4596736000,
                "_id_1_tags.0_1_tags.1_1_tags.2_1_tags.3_1_tags.4_1_tags.5_1_tags.6_1_tags.7_1_tags.8_1_tags.9_1" : 6599782400,
                "tagsv2_1" : 1999462400,
                "tags4_1" : 2001522688,
                "_id_1_tagsv2_1" : 4955938816,
                "tags0_1" : 2003283968,
                "tags2_1" : 2006695936,
                "tags3_1" : 2000535552,
                "tags1_1" : 2010071040,
                "tags7_1" : 2012762112,
                "tags8_1" : 2015150080,
                "tags9_1" : 2011406336,
                "tags5_1" : 2011742208,
                "tags6_1" : 2005483520,
                "_id_hashed" : 5254586368
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667976629, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667976629, 1)
}

I also use mgeneratejs to generate random data for testing,the script is:

mgeneratejs -n 50000000 '{name:"$name","age": "$age", address:"$address"}'

And here is my result, the “age” index bloat abourt two times than origin.

1.Create index after the document insertion complete.

zhangruian-rs_0:PRIMARY> db.after.stats()
{
        "ns" : "test1.after",
        "size" : 4225699095,
        "count" : 50000000,
        "avgObjSize" : 84,
        "storageSize" : 2333638656,
        "freeStorageSize" : 1114112,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:test1/collection-494--4493473792861060111",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 105849,
                        "blocks allocated" : 106617,
                        "blocks freed" : 1282,
                        "checkpoint size" : 2332508160,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 1114112,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 2333638656,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 2381,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 4,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 518574416,
                        "bytes dirty in the cache cumulative" : 8842199,
                        "bytes read into cache" : 4957732027,
                        "bytes written from cache" : 5000818153,
                        "checkpoint blocked page eviction" : 10,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 755,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 5920,
                        "eviction walk target pages histogram - 0-9" : 1041,
                        "eviction walk target pages histogram - 10-31" : 1542,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 1507,
                        "eviction walk target pages histogram - 64-128" : 1830,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 245,
                        "eviction walks gave up because they restarted their walk twice" : 70,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 1341,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 430,
                        "eviction walks reached end of tree" : 1653,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 2088,
                        "eviction walks started from saved location in tree" : 3832,
                        "hazard pointer blocked page eviction" : 45,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 3256,
                        "in-memory page splits" : 947,
                        "internal pages evicted" : 1338,
                        "internal pages split during eviction" : 10,
                        "leaf pages split during eviction" : 970,
                        "modified pages evicted" : 1847,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 1,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 93216,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 96003530,
                        "pages seen by eviction walk" : 7364730,
                        "pages written from cache" : 106583,
                        "pages written requiring in-memory restoration" : 886,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 178780
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 8,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 248165,
                        "pages visited" : 815109
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 75380,
                        "compressed pages read" : 92743,
                        "compressed pages written" : 104898,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 1685
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 100010,
                        "close calls that result in cache" : 100010,
                        "create calls" : 22,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 50000008,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 50000000,
                        "insert key and value bytes" : 4458831259,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 50000008,
                        "open cursor count" : 0,
                        "operation restarted" : 35591,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 250021,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 50001,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 464948608,
                        "approximate byte size of transaction IDs in pages written" : 2685696,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 136439,
                        "internal page multi-block writes" : 38,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 973,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 46,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 2026,
                        "page reconciliation calls for eviction" : 1022,
                        "pages deleted" : 8,
                        "pages written including an aggregated newest start durable timestamp " : 1415,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 107,
                        "pages written including an aggregated oldest start timestamp " : 1414,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 73792,
                        "pages written including at least one start timestamp" : 73792,
                        "pages written including at least one start transaction ID" : 642,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 29059288,
                        "records written including a start timestamp" : 29059288,
                        "records written including a start transaction ID" : 335712,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 2,
        "indexBuilds" : [ ],
        "totalIndexSize" : 1489510400,
        "totalSize" : 3823149056,
        "indexSizes" : {
                "_id_" : 1212551168,
                "age_1" : 276959232
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667976969, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667976969, 1)
}

APPEND INFOMATION FOR zhangruian1997:
2.Create index before the document insertion complete.

zhangruian-rs_0:PRIMARY> db.before.stats()
{
        "ns" : "test1.before",
        "size" : 4225699095,
        "count" : 50000000,
        "avgObjSize" : 84,
        "storageSize" : 2321723392,
        "freeStorageSize" : 225280,
        "capped" : false,
        "wiredTiger" : {
                "metadata" : {
                        "formatVersion" : 1
                },
                "creationString" : "access_pattern_hint=none,allocation_size=4KB,app_metadata=(formatVersion=1),assert=(commit_timestamp=none,durable_timestamp=none,read_timestamp=none,write_timestamp=off),block_allocation=best,block_compressor=snappy,cache_resident=false,checksum=on,colgroups=,collator=,columns=,dictionary=0,encryption=(keyid=,name=),exclusive=false,extractor=,format=btree,huffman_key=,huffman_value=,ignore_in_memory_cache_size=false,immutable=false,import=(enabled=false,file_metadata=,repair=false),internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=q,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=64MB,log=(enabled=false),lsm=(auto_throttle=true,bloom=true,bloom_bit_count=16,bloom_config=,bloom_hash_count=8,bloom_oldest=false,chunk_count_limit=0,chunk_max=5GB,chunk_size=10MB,merge_custom=(prefix=,start_generation=0,suffix=),merge_max=15,merge_min=0),memory_page_image_max=0,memory_page_max=10m,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,readonly=false,source=,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,tiered_object=false,tiered_storage=(auth_token=,bucket=,bucket_prefix=,cache_directory=,local_retention=300,name=,object_target_size=10M),type=file,value_format=u,verbose=[],write_timestamp_usage=none",
                "type" : "file",
                "uri" : "statistics:table:test1/collection-498--4493473792861060111",
                "LSM" : {
                        "bloom filter false positives" : 0,
                        "bloom filter hits" : 0,
                        "bloom filter misses" : 0,
                        "bloom filter pages evicted from cache" : 0,
                        "bloom filter pages read into cache" : 0,
                        "bloom filters in the LSM tree" : 0,
                        "chunks in the LSM tree" : 0,
                        "highest merge generation in the LSM tree" : 0,
                        "queries that could have benefited from a Bloom filter that did not exist" : 0,
                        "sleep for LSM checkpoint throttle" : 0,
                        "sleep for LSM merge throttle" : 0,
                        "total size of bloom filters" : 0
                },
                "block-manager" : {
                        "allocations requiring file extension" : 102046,
                        "blocks allocated" : 102706,
                        "blocks freed" : 1177,
                        "checkpoint size" : 2321481728,
                        "file allocation unit size" : 4096,
                        "file bytes available for reuse" : 225280,
                        "file magic number" : 120897,
                        "file major version number" : 1,
                        "file size in bytes" : 2321723392,
                        "minor version number" : 0
                },
                "btree" : {
                        "btree checkpoint generation" : 2381,
                        "btree clean tree checkpoint expiration time" : NumberLong("9223372036854775807"),
                        "btree compact pages reviewed" : 0,
                        "btree compact pages selected to be rewritten" : 0,
                        "btree compact pages skipped" : 0,
                        "btree skipped by compaction as process would not reduce size" : 0,
                        "column-store fixed-size leaf pages" : 0,
                        "column-store internal pages" : 0,
                        "column-store variable-size RLE encoded values" : 0,
                        "column-store variable-size deleted values" : 0,
                        "column-store variable-size leaf pages" : 0,
                        "fixed-record size" : 0,
                        "maximum internal page key size" : 368,
                        "maximum internal page size" : 4096,
                        "maximum leaf page key size" : 2867,
                        "maximum leaf page size" : 32768,
                        "maximum leaf page value size" : 67108864,
                        "maximum tree depth" : 4,
                        "number of key/value pairs" : 0,
                        "overflow pages" : 0,
                        "pages rewritten by compaction" : 0,
                        "row-store empty values" : 0,
                        "row-store internal pages" : 0,
                        "row-store leaf pages" : 0
                },
                "cache" : {
                        "bytes currently in the cache" : 2603112693,
                        "bytes dirty in the cache cumulative" : 8499780,
                        "bytes read into cache" : 0,
                        "bytes written from cache" : 5049290552,
                        "checkpoint blocked page eviction" : 0,
                        "checkpoint of history store file blocked non-history store page eviction" : 0,
                        "data source pages selected for eviction unable to be evicted" : 894,
                        "eviction gave up due to detecting an out of order on disk value behind the last update on the chain" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update" : 0,
                        "eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update after validating the update chain" : 0,
                        "eviction gave up due to detecting out of order timestamps on the update chain after the selected on disk update" : 0,
                        "eviction walk passes of a file" : 2332,
                        "eviction walk target pages histogram - 0-9" : 224,
                        "eviction walk target pages histogram - 10-31" : 543,
                        "eviction walk target pages histogram - 128 and higher" : 0,
                        "eviction walk target pages histogram - 32-63" : 827,
                        "eviction walk target pages histogram - 64-128" : 738,
                        "eviction walk target pages reduced due to history store cache pressure" : 0,
                        "eviction walks abandoned" : 75,
                        "eviction walks gave up because they restarted their walk twice" : 43,
                        "eviction walks gave up because they saw too many pages and found no candidates" : 526,
                        "eviction walks gave up because they saw too many pages and found too few candidates" : 299,
                        "eviction walks reached end of tree" : 779,
                        "eviction walks restarted" : 0,
                        "eviction walks started from root of tree" : 943,
                        "eviction walks started from saved location in tree" : 1389,
                        "hazard pointer blocked page eviction" : 8,
                        "history store table insert calls" : 0,
                        "history store table insert calls that returned restart" : 0,
                        "history store table out-of-order resolved updates that lose their durable timestamp" : 0,
                        "history store table out-of-order updates that were fixed up by reinserting with the fixed timestamp" : 0,
                        "history store table reads" : 0,
                        "history store table reads missed" : 0,
                        "history store table reads requiring squashed modifies" : 0,
                        "history store table truncation by rollback to stable to remove an unstable update" : 0,
                        "history store table truncation by rollback to stable to remove an update" : 0,
                        "history store table truncation to remove an update" : 0,
                        "history store table truncation to remove range of updates due to key being removed from the data page during reconciliation" : 0,
                        "history store table truncation to remove range of updates due to out-of-order timestamp update on data page" : 0,
                        "history store table writes requiring squashed modifies" : 0,
                        "in-memory page passed criteria to be split" : 4152,
                        "in-memory page splits" : 947,
                        "internal pages evicted" : 468,
                        "internal pages split during eviction" : 9,
                        "leaf pages split during eviction" : 959,
                        "modified pages evicted" : 1425,
                        "overflow pages read into cache" : 0,
                        "page split during eviction deepened the tree" : 1,
                        "page written requiring history store records" : 0,
                        "pages read into cache" : 0,
                        "pages read into cache after truncate" : 1,
                        "pages read into cache after truncate in prepare state" : 0,
                        "pages requested from the cache" : 95537019,
                        "pages seen by eviction walk" : 4373058,
                        "pages written from cache" : 102680,
                        "pages written requiring in-memory restoration" : 901,
                        "the number of times full update inserted to history store" : 0,
                        "the number of times reverse modify inserted to history store" : 0,
                        "tracked dirty bytes in the cache" : 0,
                        "unmodified pages evicted" : 51061
                },
                "cache_walk" : {
                        "Average difference between current eviction generation when the page was last considered" : 0,
                        "Average on-disk page image size seen" : 0,
                        "Average time in cache for pages that have been visited by the eviction server" : 0,
                        "Average time in cache for pages that have not been visited by the eviction server" : 0,
                        "Clean pages currently in cache" : 0,
                        "Current eviction generation" : 0,
                        "Dirty pages currently in cache" : 0,
                        "Entries in the root page" : 0,
                        "Internal pages currently in cache" : 0,
                        "Leaf pages currently in cache" : 0,
                        "Maximum difference between current eviction generation when the page was last considered" : 0,
                        "Maximum page size seen" : 0,
                        "Minimum on-disk page image size seen" : 0,
                        "Number of pages never visited by eviction server" : 0,
                        "On-disk page image sizes smaller than a single allocation unit" : 0,
                        "Pages created in memory and never written" : 0,
                        "Pages currently queued for eviction" : 0,
                        "Pages that could not be queued for eviction" : 0,
                        "Refs skipped during cache traversal" : 0,
                        "Size of the root page" : 0,
                        "Total number of pages currently in cache" : 0
                },
                "checkpoint-cleanup" : {
                        "pages added for eviction" : 9,
                        "pages removed" : 0,
                        "pages skipped during tree walk" : 54220,
                        "pages visited" : 400443
                },
                "compression" : {
                        "compressed page maximum internal page size prior to compression" : 4096,
                        "compressed page maximum leaf page size prior to compression " : 52424,
                        "compressed pages read" : 0,
                        "compressed pages written" : 101048,
                        "page written failed to compress" : 0,
                        "page written was too small to compress" : 1632
                },
                "cursor" : {
                        "Total number of entries skipped by cursor next calls" : 0,
                        "Total number of entries skipped by cursor prev calls" : 0,
                        "Total number of entries skipped to position the history store cursor" : 0,
                        "Total number of times a search near has exited due to prefix config" : 0,
                        "bulk loaded cursor insert calls" : 0,
                        "cache cursors reuse count" : 100006,
                        "close calls that result in cache" : 100008,
                        "create calls" : 22,
                        "cursor next calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor next calls that skip greater than or equal to 100 entries" : 0,
                        "cursor next calls that skip less than 100 entries" : 4,
                        "cursor prev calls that skip due to a globally visible history store tombstone" : 0,
                        "cursor prev calls that skip greater than or equal to 100 entries" : 0,
                        "cursor prev calls that skip less than 100 entries" : 1,
                        "insert calls" : 50000000,
                        "insert key and value bytes" : 4458831259,
                        "modify" : 0,
                        "modify key and value bytes affected" : 0,
                        "modify value bytes modified" : 0,
                        "next calls" : 4,
                        "open cursor count" : 0,
                        "operation restarted" : 40894,
                        "prev calls" : 1,
                        "remove calls" : 0,
                        "remove key bytes removed" : 0,
                        "reserve calls" : 0,
                        "reset calls" : 200018,
                        "search calls" : 0,
                        "search history store calls" : 0,
                        "search near calls" : 0,
                        "truncate calls" : 0,
                        "update calls" : 0,
                        "update key and value bytes" : 0,
                        "update value size change" : 0
                },
                "reconciliation" : {
                        "approximate byte size of timestamps in pages written" : 536914272,
                        "approximate byte size of transaction IDs in pages written" : 2723424,
                        "dictionary matches" : 0,
                        "fast-path pages deleted" : 0,
                        "internal page key bytes discarded using suffix compression" : 124063,
                        "internal page multi-block writes" : 30,
                        "internal-page overflow keys" : 0,
                        "leaf page key bytes discarded using prefix compression" : 0,
                        "leaf page multi-block writes" : 974,
                        "leaf-page overflow keys" : 0,
                        "maximum blocks required for a page" : 1,
                        "overflow values written" : 0,
                        "page checksum matches" : 0,
                        "page reconciliation calls" : 1915,
                        "page reconciliation calls for eviction" : 1029,
                        "pages deleted" : 9,
                        "pages written including an aggregated newest start durable timestamp " : 1485,
                        "pages written including an aggregated newest stop durable timestamp " : 0,
                        "pages written including an aggregated newest stop timestamp " : 0,
                        "pages written including an aggregated newest stop transaction ID" : 0,
                        "pages written including an aggregated newest transaction ID " : 74,
                        "pages written including an aggregated oldest start timestamp " : 1483,
                        "pages written including an aggregated prepare" : 0,
                        "pages written including at least one prepare" : 0,
                        "pages written including at least one start durable timestamp" : 78351,
                        "pages written including at least one start timestamp" : 78351,
                        "pages written including at least one start transaction ID" : 663,
                        "pages written including at least one stop durable timestamp" : 0,
                        "pages written including at least one stop timestamp" : 0,
                        "pages written including at least one stop transaction ID" : 0,
                        "records written including a prepare" : 0,
                        "records written including a start durable timestamp" : 33557142,
                        "records written including a start timestamp" : 33557142,
                        "records written including a start transaction ID" : 340428,
                        "records written including a stop durable timestamp" : 0,
                        "records written including a stop timestamp" : 0,
                        "records written including a stop transaction ID" : 0
                },
                "session" : {
                        "object compaction" : 0,
                        "tiered operations dequeued and processed" : 0,
                        "tiered operations scheduled" : 0,
                        "tiered storage local retention time (secs)" : 0,
                        "tiered storage object size" : 0
                },
                "transaction" : {
                        "race to read prepared update retry" : 0,
                        "rollback to stable history store records with stop timestamps older than newer records" : 0,
                        "rollback to stable inconsistent checkpoint" : 0,
                        "rollback to stable keys removed" : 0,
                        "rollback to stable keys restored" : 0,
                        "rollback to stable restored tombstones from history store" : 0,
                        "rollback to stable restored updates from history store" : 0,
                        "rollback to stable skipping delete rle" : 0,
                        "rollback to stable skipping stable rle" : 0,
                        "rollback to stable sweeping history store keys" : 0,
                        "rollback to stable updates removed from history store" : 0,
                        "transaction checkpoints due to obsolete pages" : 0,
                        "update conflicts" : 0
                }
        },
        "nindexes" : 2,
        "indexBuilds" : [ ],
        "totalIndexSize" : 1751912448,
        "totalSize" : 4073635840,
        "indexSizes" : {
                "_id_" : 1148047360,
                "age_1" : 603865088
        },
        "scaleFactor" : 1,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1667976989, 1),
                "signature" : {
                        "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                        "keyId" : NumberLong(0)
                }
        },
        "operationTime" : Timestamp(1667976989, 1)
}

So, what confused me is why the index(age_1) bloat can be so serious?My MongoDB Version is 4.4.13 (community)

Hi @zhangruian1997

This is an expected outcome at this point. When you pre-create an index, the index is timestamped and the entries in it are written with timestamp information. This is done to support snapshot history retention. When you create an index later, WiredTiger does bulk insert into the index - which is not timestamped, and more efficiently packed. Note that this situation may improve in later versions, but at this moment this is how it works :slight_smile:

Best regards
Kevin