[root@10-186-64-136 ~]# uname -a Linux 10-186-64-136 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux ## CPU [root@10-186-64-136 ~]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 1 座: 4 NUMA 节点: 1 厂商 ID: GenuineIntel CPU 系列: 6 型号: 62 型号名称: Intel(R) Xeon(R) CPU E5-4620 v2 @ 2.60GHz 步进: 4 CPU MHz: 2599.998 BogoMIPS: 5199.99 超管理器厂商: KVM 虚拟化类型: 完全 L1d 缓存: 32K L1i 缓存: 32K L2 缓存: 4096K L3 缓存: 16384K NUMA 节点0 CPU: 0-3 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm ssbd ibrs ibpb stibp fsgsbase tsc_adjust smep erms xsaveopt arat spec_ctrl intel_stibp ## Memory [root@10-186-64-136 ~]# free -m total used free shared buff/cache available Mem: 7821 2561 680 899 4580 4047 Swap: 0 0 0 ## YCSB workload config [root@10-186-64-136 ycsb-mongodb-binding-0.15.0]# cat workloads/workload_user_defined workload=com.yahoo.ycsb.workloads.CoreWorkload recordcount=1000000 operationcount=3000000 insertstart=0 fieldcount=10 fieldlength=100 readallfields=true writeallfields=false fieldlengthdistribution=constant readproportion=0.95 updateproportion=0.05 insertproportion=0 readmodifywriteproportion=0 scanproportion=0 maxscanlength=1000 scanlengthdistribution=uniform insertorder=hashed requestdistribution=zipfian hotspotdatafraction=0.2 hotspotopnfraction=0.8 table=usertable measurementtype=histogram histogram.buckets=1000 timeseries.granularity=1000 ## MongoDB 6.0.6 config [root@10-186-64-136 ~]# cat /data/mongodb/30000/conf/mongod.conf systemLog: destination: file path: "/data/mongodb/30000/log/mongod.log" logAppend: true logRotate: rename storage: dbPath: "/data/mongodb/30000/data" directoryPerDB: true journal: enabled: true commitIntervalMs: 100 wiredTiger: engineConfig: cacheSizeGB: 1 operationProfiling: slowOpThresholdMs: 200 mode: slowOp slowOpSampleRate: 100 processManagement: fork: true pidFilePath: "/data/mongodb/30000/mongod.pid" net: port: 30000 bindIpAll: true replication: oplogSizeMB: 25000 replSetName: onepiece enableMajorityReadConcern: true security: authorization: enabled keyFile: "/data/mongodb/30000/conf/keyfile" ## MongoDB 4.2.22 config [root@10-186-64-136 ~]# cat /data/mongodb/40000/conf/mongod.conf systemLog: destination: file path: "/data/mongodb/40000/log/mongod.log" logAppend: true logRotate: rename timeStampFormat: ctime storage: dbPath: "/data/mongodb/40000/data" directoryPerDB: true journal: enabled: true commitIntervalMs: 100 wiredTiger: engineConfig: cacheSizeGB: 1 operationProfiling: slowOpThresholdMs: 200 mode: slowOp slowOpSampleRate: 100 processManagement: fork: true pidFilePath: "/data/mongodb/40000/mongod.pid" net: port: 40000 bindIpAll: true replication: oplogSizeMB: 25000 replSetName: onepiece enableMajorityReadConcern: true security: authorization: enabled keyFile: "/data/mongodb/40000/conf/keyfile" ## -------------------- performance test report -------------------- ## ## MongoDB 4.2.22 YCSB(readproportion=0.95 && updateproportion=0.05) [OVERALL], RunTime(ms), 60024 [OVERALL], Throughput(ops/sec), 9406.703985072638 [TOTAL_GCS_PS_Scavenge], Count, 90 [TOTAL_GC_TIME_PS_Scavenge], Time(ms), 329 [TOTAL_GC_TIME_%_PS_Scavenge], Time(%), 0.548114087698254 [TOTAL_GCS_PS_MarkSweep], Count, 0 [TOTAL_GC_TIME_PS_MarkSweep], Time(ms), 0 [TOTAL_GC_TIME_%_PS_MarkSweep], Time(%), 0.0 [TOTAL_GCs], Count, 90 [TOTAL_GC_TIME], Time(ms), 329 [TOTAL_GC_TIME_%], Time(%), 0.548114087698254 [READ], Operations, 536346 [READ], AverageLatency(us), 1035.1775514313522 [READ], LatencyVariance(us), 2652569.3525913395 [READ], MinLatency(us), 245 [READ], MaxLatency(us), 315185 [READ], 95thPercentileLatency(us), 2000 [READ], 99thPercentileLatency(us), 4000 [READ], Return=OK, 536346 [CLEANUP], Operations, 10 [CLEANUP], AverageLatency(us), 536.2 [CLEANUP], LatencyVariance(us), 2540732.56 [CLEANUP], MinLatency(us), 0 [CLEANUP], MaxLatency(us), 5318 [CLEANUP], 95thPercentileLatency(us), 5000 [CLEANUP], 99thPercentileLatency(us), 5000 [UPDATE], Operations, 28282 [UPDATE], AverageLatency(us), 1176.3238101972986 [UPDATE], LatencyVariance(us), 1204083.3777860908 [UPDATE], MinLatency(us), 352 [UPDATE], MaxLatency(us), 43017 [UPDATE], 95thPercentileLatency(us), 2000 [UPDATE], 99thPercentileLatency(us), 4000 [UPDATE], Return=OK, 28282 ## MongoDB 6.0.6 YCSB(readproportion=0.95 && updateproportion=0.05) [OVERALL], RunTime(ms), 60024 [OVERALL], Throughput(ops/sec), 7188.8911102225775 [TOTAL_GCS_PS_Scavenge], Count, 64 [TOTAL_GC_TIME_PS_Scavenge], Time(ms), 217 [TOTAL_GC_TIME_%_PS_Scavenge], Time(%), 0.36152205784352925 [TOTAL_GCS_PS_MarkSweep], Count, 0 [TOTAL_GC_TIME_PS_MarkSweep], Time(ms), 0 [TOTAL_GC_TIME_%_PS_MarkSweep], Time(%), 0.0 [TOTAL_GCs], Count, 64 [TOTAL_GC_TIME], Time(ms), 217 [TOTAL_GC_TIME_%], Time(%), 0.36152205784352925 [READ], Operations, 409717 [READ], AverageLatency(us), 1231.4342607214248 [READ], LatencyVariance(us), 3125761.034681488 [READ], MinLatency(us), 313 [READ], MaxLatency(us), 319531 [READ], 95thPercentileLatency(us), 2000 [READ], 99thPercentileLatency(us), 4000 [READ], Return=OK, 409717 [CLEANUP], Operations, 10 [CLEANUP], AverageLatency(us), 581.8 [CLEANUP], LatencyVariance(us), 2980565.9600000004 [CLEANUP], MinLatency(us), 0 [CLEANUP], MaxLatency(us), 5761 [CLEANUP], 95thPercentileLatency(us), 5000 [CLEANUP], 99thPercentileLatency(us), 5000 [UPDATE], Operations, 21789 [UPDATE], AverageLatency(us), 3930.38868236266 [UPDATE], LatencyVariance(us), 9395627.682833042 [UPDATE], MinLatency(us), 1108 [UPDATE], MaxLatency(us), 315844 [UPDATE], 95thPercentileLatency(us), 6000 [UPDATE], 99thPercentileLatency(us), 12000 [UPDATE], Return=OK, 21789 ## MongoDB 6.0.6 YCSB(readproportion=1 && updateproportion=0) [OVERALL], RunTime(ms), 60024 [OVERALL], Throughput(ops/sec), 7974.610155937625 [TOTAL_GCS_PS_Scavenge], Count, 94 [TOTAL_GC_TIME_PS_Scavenge], Time(ms), 295 [TOTAL_GC_TIME_%_PS_Scavenge], Time(%), 0.4914700786352126 [TOTAL_GCS_PS_MarkSweep], Count, 0 [TOTAL_GC_TIME_PS_MarkSweep], Time(ms), 0 [TOTAL_GC_TIME_%_PS_MarkSweep], Time(%), 0.0 [TOTAL_GCs], Count, 94 [TOTAL_GC_TIME], Time(ms), 295 [TOTAL_GC_TIME_%], Time(%), 0.4914700786352126 [READ], Operations, 478668 [READ], AverageLatency(us), 1230.8405700819774 [READ], LatencyVariance(us), 3147900.915480594 [READ], MinLatency(us), 317 [READ], MaxLatency(us), 377961 [READ], 95thPercentileLatency(us), 2000 [READ], 99thPercentileLatency(us), 3000 [READ], Return=OK, 478668 [CLEANUP], Operations, 10 [CLEANUP], AverageLatency(us), 702.9 [CLEANUP], LatencyVariance(us), 4353074.89 [CLEANUP], MinLatency(us), 0 [CLEANUP], MaxLatency(us), 6962 [CLEANUP], 95thPercentileLatency(us), 6000 [CLEANUP], 99thPercentileLatency(us), 6000 ## MongoDB 4.2.22 YCSB(readproportion=1 && updateproportion=0) [OVERALL], RunTime(ms), 60018 [OVERALL], Throughput(ops/sec), 9994.13509280549 [TOTAL_GCS_PS_Scavenge], Count, 129 [TOTAL_GC_TIME_PS_Scavenge], Time(ms), 354 [TOTAL_GC_TIME_%_PS_Scavenge], Time(%), 0.5898230530840748 [TOTAL_GCS_PS_MarkSweep], Count, 0 [TOTAL_GC_TIME_PS_MarkSweep], Time(ms), 0 [TOTAL_GC_TIME_%_PS_MarkSweep], Time(%), 0.0 [TOTAL_GCs], Count, 129 [TOTAL_GC_TIME], Time(ms), 354 [TOTAL_GC_TIME_%], Time(%), 0.5898230530840748 [READ], Operations, 599828 [READ], AverageLatency(us), 981.0875334262489 [READ], LatencyVariance(us), 2241960.586973361 [READ], MinLatency(us), 235 [READ], MaxLatency(us), 313984 [READ], 95thPercentileLatency(us), 1000 [READ], 99thPercentileLatency(us), 3000 [READ], Return=OK, 599828 [CLEANUP], Operations, 10 [CLEANUP], AverageLatency(us), 833.7 [CLEANUP], LatencyVariance(us), 6185784.81 [CLEANUP], MinLatency(us), 0 [CLEANUP], MaxLatency(us), 8295 [CLEANUP], 95thPercentileLatency(us), 8000 [CLEANUP], 99thPercentileLatency(us), 8000 ## MongoDB 6.0.6 YCSB(readproportion=0 && updateproportion=1) [OVERALL], RunTime(ms), 60035 [OVERALL], Throughput(ops/sec), 2367.4023486299657 [TOTAL_GCS_PS_Scavenge], Count, 16 [TOTAL_GC_TIME_PS_Scavenge], Time(ms), 179 [TOTAL_GC_TIME_%_PS_Scavenge], Time(%), 0.298159407012576 [TOTAL_GCS_PS_MarkSweep], Count, 0 [TOTAL_GC_TIME_PS_MarkSweep], Time(ms), 0 [TOTAL_GC_TIME_%_PS_MarkSweep], Time(%), 0.0 [TOTAL_GCs], Count, 16 [TOTAL_GC_TIME], Time(ms), 179 [TOTAL_GC_TIME_%], Time(%), 0.298159407012576 [CLEANUP], Operations, 10 [CLEANUP], AverageLatency(us), 838.2 [CLEANUP], LatencyVariance(us), 6251423.56 [CLEANUP], MinLatency(us), 0 [CLEANUP], MaxLatency(us), 8339 [CLEANUP], 95thPercentileLatency(us), 8000 [CLEANUP], 99thPercentileLatency(us), 8000 [UPDATE], Operations, 142127 [UPDATE], AverageLatency(us), 4151.485432043172 [UPDATE], LatencyVariance(us), 2.607527625019586E7 [UPDATE], MinLatency(us), 1026 [UPDATE], MaxLatency(us), 344167 [UPDATE], 95thPercentileLatency(us), 8000 [UPDATE], 99thPercentileLatency(us), 14000 [UPDATE], Return=OK, 142127 ## MongoDB 4.2.22 YCSB(readproportion=0 && updateproportion=1) [OVERALL], RunTime(ms), 60037 [OVERALL], Throughput(ops/sec), 4476.5228109332575 [TOTAL_GCS_PS_Scavenge], Count, 17 [TOTAL_GC_TIME_PS_Scavenge], Time(ms), 183 [TOTAL_GC_TIME_%_PS_Scavenge], Time(%), 0.3048120325799091 [TOTAL_GCS_PS_MarkSweep], Count, 0 [TOTAL_GC_TIME_PS_MarkSweep], Time(ms), 0 [TOTAL_GC_TIME_%_PS_MarkSweep], Time(%), 0.0 [TOTAL_GCs], Count, 17 [TOTAL_GC_TIME], Time(ms), 183 [TOTAL_GC_TIME_%], Time(%), 0.3048120325799091 [CLEANUP], Operations, 10 [CLEANUP], AverageLatency(us), 1117.7 [CLEANUP], LatencyVariance(us), 1.101443521E7 [CLEANUP], MinLatency(us), 1 [CLEANUP], MaxLatency(us), 11074 [CLEANUP], 95thPercentileLatency(us), 11000 [CLEANUP], 99thPercentileLatency(us), 11000 [UPDATE], Operations, 268757 [UPDATE], AverageLatency(us), 2192.42003371075 [UPDATE], LatencyVariance(us), 3.0394066893567994E7 [UPDATE], MinLatency(us), 330 [UPDATE], MaxLatency(us), 584899 [UPDATE], 95thPercentileLatency(us), 6000 [UPDATE], 99thPercentileLatency(us), 18000 [UPDATE], Return=OK, 268757