2024/11/20-23:23:28.081578 140008291239488 DEBG dcompact_worker.cpp:2219: /storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00: fork to child time = 0.009512 sec 2024/11/20-23:23:28.082163 140008291239488 DEBG dcompact_worker.cpp:1013: Beg SerDeRead: /storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00 2024/11/20-23:23:28.087274 140008291239488 DEBG dcompact_worker.cpp:1033: End SerDeRead: /storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00 2024/11/20-23:23:28.089001 140008291239488 TRAC dcompact_worker.cpp:1083: INFO_LOG_LEVEL: rpc = INFO_LEVEL, env_var = undefined 2024/11/20-23:23:28.089270 140008291239488 [WARN] [column_family.cc:386] multiple cf_paths/db_paths and level_compaction_dynamic_level_bytes can't be used together 2024/11/20-23:23:28.134900 140008291239488 [version_set.cc:6211] Recovering from manifest file: /worker/dcompact-log/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/2024-11-20T17.53.03/.rocksdb/job-20600/att-00/MANIFEST-049091 2024/11/20-23:23:28.189083 140008291239488 [version_set.cc:6254] Recovered from manifest file:/worker/dcompact-log/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/2024-11-20T17.53.03/.rocksdb/job-20600/att-00/MANIFEST-049091 succeeded,manifest_file_number is 49091, next_file_number is 84947, last_sequence is 1306262262, log_number is 0,prev_log_number is 0,max_column_family is 0,min_log_number_to_keep is 84772 2024/11/20-23:23:28.189096 140008291239488 [version_set.cc:6269] Column family [default] (ID 0), log number is 0 2024/11/20-23:23:28.189187 140008291239488 [version_set.cc:5724] Creating manifest 84947 2024/11/20-23:23:28.217262 140008291239488 DEBG dcompact_worker.cpp:1225: /storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00: bottommost_level: fake = 1, rpc = 1 2024/11/20-23:23:28.234247 140008291239488 [compaction_job.cc:2437] [default] [JOB 20600] Compacting 4@4 files to L5, score 1.00, subcompactions 1 : 1 2024/11/20-23:23:28.234257 140008291239488 [compaction_job.cc:2445] [default]: Compaction start summary: Base version 15502 Base level 4, inputs: [52696(30MB) 52691(19MB) 52773(53MB) 52845(44MB)] 2024/11/20-23:23:28.238243 140008291239488 [top_zip_table.cc:59] core git_version_hash_info_is:commit 81964c21ebbcc178d8e99dae0fbf61bded2729cc Author: rockeet Date: Mon Nov 11 21:28:46 2024 +0800 Makefile: fix gen git-version-*.cpp GIT_PATH_ARG = :!src/terark/fsa :!tools/fsa :!src/terark/zbs :!tools/zbs g++ (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. INCS = -Isrc -I3rdparty/zstd -Iboost-include DEFS = -DTOPLING_IO_WITH_URING=1 -DDIVSUFSORT_API= CXXFLAGS = -fPIC -time -fdiagnostics-color -mcx16 -fno-stack-protector WARNINGS = -Wno-class-memaccess -Wformat=2 -Wcomment -Wall -Wextra -Wno-unused-parameter -Wno-alloc-size-larger-than -Wno-deprecated-declarations -Wstrict-aliasing=3 RLS_FLAGS = -O3 -DNDEBUG -g3 WITH_BMI2 = 1 compile_cpu_flag: -march=haswell -mbmi -mbmi2 LDFLAGS = -fPIC -rdynamic 2024/11/20-23:23:28.238267 140008291239488 [top_zip_table.cc:60] fsa git_version_hash_info_is:commit 5dfecb7d107196f044ff5bf78dc39d2e725b9d9b Author: leipeng Date: Thu Nov 7 15:22:45 2024 +0800 Makefile: fix for x86_64 CPU older than haswell GIT_PATH_ARG = src/terark/fsa tools/fsa g++ (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. INCS = -Isrc -I3rdparty/zstd -Iboost-include DEFS = -DTOPLING_IO_WITH_URING=1 -DDIVSUFSORT_API= CXXFLAGS = -fPIC -time -fdiagnostics-color -mcx16 -fno-stack-protector WARNINGS = -Wno-class-memaccess -Wformat=2 -Wcomment -Wall -Wextra -Wno-unused-parameter -Wno-alloc-size-larger-than -Wno-deprecated-declarations -Wstrict-aliasing=3 RLS_FLAGS = -O3 -DNDEBUG -g3 WITH_BMI2 = 1 compile_cpu_flag: -march=haswell -mbmi -mbmi2 LDFLAGS = -fPIC -rdynamic 2024/11/20-23:23:28.238288 140008291239488 [top_zip_table.cc:61] zbs git_version_hash_info_is:commit d44dd5ff72707128fe3c916077b43d2093c01f7c Author: leipeng Date: Sun Oct 27 23:38:26 2024 +0800 Fix for msvc, when toplingdb on msvc GIT_PATH_ARG = src/terark/zbs tools/zbs g++ (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. INCS = -Isrc -I3rdparty/zstd -Iboost-include DEFS = -DTOPLING_IO_WITH_URING=1 -DDIVSUFSORT_API= CXXFLAGS = -fPIC -time -fdiagnostics-color -mcx16 -fno-stack-protector WARNINGS = -Wno-class-memaccess -Wformat=2 -Wcomment -Wall -Wextra -Wno-unused-parameter -Wno-alloc-size-larger-than -Wno-deprecated-declarations -Wstrict-aliasing=3 RLS_FLAGS = -O3 -DNDEBUG -g3 WITH_BMI2 = 1 compile_cpu_flag: -march=haswell -mbmi -mbmi2 LDFLAGS = -fPIC -rdynamic 2024/11/20-23:23:28.238296 140008291239488 [top_zip_table.cc:62] topling-zip_table_reader: git_version_hash_info_is: commit 79614a7e7dc27362fc5151b0797eb7d83c674c7b Author: rockeet Date: Sun Nov 10 15:02:21 2024 +0800 cpu_has_bmi2.sh: detect by compile c++ code check __BMI2__ g++ (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. cpu_flag: -march=native -mbmi -mbmi2 2024/11/20-23:23:28.238306 140008291239488 [top_zip_table.cc:64] topling-rocks git_version_hash_info_is: commit c46b65a52d9c74aa8b87aeb8438620ff2dbc669c Author: rockeet Date: Sun Nov 10 15:02:42 2024 +0800 cpu_has_bmi2.sh: detect by compile c++ code check __BMI2__ g++ (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. cpu_flag: -march=native -mbmi -mbmi2 2024/11/20-23:23:28.510596 140008291239488 [top_zip_table_builder.cc:960] ToplingZipTableBuilder(/storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00/084948.sst) /dev/shm/ToplingTemp/Topling-1142308-5EpP7b 2024/11/20-23:23:29.687166 140008291239488 [top_zip_table_builder.cc:1378] ToplingZipTableBuilder::Finish(/storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00/084948.sst): first pass time = 1.18's, 136.299'MB/sec 2024/11/20-23:23:30.881681 140008291239488 [top_zip_table_builder.cc:2798] ToplingZipTableBuilder::Finish(/storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00/084948.sst): old prealloc_size = 170806103, real_size = 123889744 2024/11/20-23:23:30.881887 140008291239488 [top_zip_table_builder.cc:1799] BuildReorderMap(/storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00/084948.sst): index type = NestLoudsTrieDAWG_Mixed_XL_256_32_FL, store type = DictZipBlobStore usrkeys = 239654 prefix = 4 raw-key = 0.0029 GB zip-key = 0.0004 GB avg-key = 12.00 avg-zkey = 1.69 raw-val = 0.1546 GB zip-val = 0.1234 GB avg-val = 645.13 avg-zval = 515.02 2024/11/20-23:23:30.881926 140008291239488 [top_zip_table_builder.cc:1325] /storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00/084948.sst: sumWaitingMem = 0.001 GB, sumWorkingMem = 0.000 GB, reorder workingMem = 0.0005 GB, waited 0.000 sec, Key+Value = 0.160 GB 2024/11/20-23:23:31.236257 140008291239488 [top_zip_table_builder.cc:3129] ToplingZipTableBuilder::Finish(/storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00/084948.sst): second pass time = 1.19's, 129.911'MB/sec, value only(96.4% of KV) wait indexing time = 0.00's, remap KeyValue time = 0.35's, 353.721'MB/sec (all stages of remap) Get OrderMap time = 0.00's, 2693.641'MB/sec (index lex order gen) rebuild zvType time = 0.28's, 0.217'MB/sec write SST data time = 0.08's, 1595.273'MB/sec dict compress time = 2317511522.23's, 0.000'MB/sec z-dict build time = 0.00's, sample length = 1.586'MB, throughput = 53339.823'MB/sec zip my value time = 1.19's, unzip length = 0.155'GB zip my value throughput = 129.911'MB/sec zip pipeline throughput = 129.911'MB/sec entries = 239654 avg-key = 24.00 avg-zkey = 1.69 avg-val = 645.13 avg-zval = 515.02 usrkeys = 239654 avg-key = 16.00 avg-zkey = 1.69 avg-val = 645.13 avg-zval = 515.02 TagRS{ kinds = LegacyZvType bytes = 0 } TagArray{ size = 0 bytes = 0 } seq expand size = 0 multi value expand size = 0 cnt WriteAppend = 9 UnZipSize{ index = 0.0038 GB value = 0.1546 GB dict = 1.59 MB all = 0.1604 GB } __ZipSize{ index = 0.0004 GB value = 0.1234 GB dict = 1.59 MB all = 0.1254 GB } UnZip/Zip{ index = 9.4860 value = 1.2526 dict = 1.00 all = 1.2786 } Zip/UnZip{ index = 0.1054 value = 0.7983 dict = 1.00 all = 0.7821 } ---------------------------- total value len = 563.220340 GB avg = 0.331 KB (by entry num) total key len = 44.320158 GB avg = 0.026 KB total ukey len = 32.797976 GB avg = 0.014 KB total ukey num = 2.321254230 Billion total entry num = 1.700756252 Billion write speed all = 31.661058598 MB/sec (with seq num) write speed all = 30.951999781 MB/sec (without seq num) 2024/11/20-23:23:31.382220 140008291239488 [compaction_job.cc:1948] [default] [JOB 20600] Generated table #84948: 239654 keys, 125419163 bytes, temperature: kWarm 2024/11/20-23:23:31.382310 140008291239488 EVENT_LOG_v1 {"time_micros": 1732116211382269, "cf_name": "default", "job": 20600, "event": "table_file_creation", "file_number": 84948, "file_size": 125419163, "file_checksum": "", "file_checksum_func_name": "Unknown", "smallest_seqno": 0, "largest_seqno": 0, "table_properties": {"data_size": 123425408, "index_size": 404224, "index_partitions": 0, "top_level_index_size": 0, "index_key_is_user_key": 0, "index_value_is_delta_encoded": 0, "filter_size": 0, "raw_key_size": 5751696, "raw_average_key_size": 24, "raw_value_size": 154607723, "raw_average_value_size": 645, "num_data_blocks": 1, "num_entries": 239654, "num_filter_entries": 0, "num_deletions": 0, "num_merge_operands": 0, "num_range_deletions": 0, "format_version": 0, "fixed_key_len": 24, "fixed_value_len": 18446744073709551615, "filter_policy": "", "column_family_name": "default", "column_family_id": 0, "comparator": "leveldb.BytewiseComparator", "merge_operator": "nullptr", "prefix_extractor_name": "nullptr", "property_collectors": "[Rdb_tbl_prop_coll_factory]", "compression": "TooZip", "compression_options": "LegacyZvType-NestLoudsTrieDAWG_Mixed_XL_256_32_FL-DictZipBlobStore", "creation_time": 1732116208, "oldest_key_time": 0, "file_creation_time": 1732116208, "slow_compression_estimated_data_size": 0, "fast_compression_estimated_data_size": 0, "db_id": "d89b4006-2803-486e-b7a2-759bcf348921", "db_session_id": "6MZ3RU376XPAYLWHL32R", "orig_file_number": 84948, "seqno_to_time_mapping": "N/A", "__indexstats__": "[...1 records...]"}} 2024/11/20-23:23:31.428477 140008291239488 [compaction_job.cc:703] job-20600: subcompact[0], size: 0.125419 G, files: /storage/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/mytopling/.rocksdb/job-20600/att-00 [084948] 2024/11/20-23:23:31.455169 140008291239488 (Original Log Time 2024/11/20-23:23:28.234319) EVENT_LOG_v1 {"time_micros": 1732116208234274, "job": 20600, "event": "compaction_started", "compaction_reason": "LevelMaxLevelSize", "files_L4": [52696, 52691, 52773, 52845], "score": 1.00165, "input_data_size": 155278276, "oldest_snapshot_seqno": 1306262045} 2024/11/20-23:23:31.455172 140008291239488 (Original Log Time 2024/11/20-23:23:31.454845) [compaction_job.cc:2022] [default] [JOB 20600] Compacted 4@4 files to L5 => 125419163 bytes 2024/11/20-23:23:31.455173 140008291239488 (Original Log Time 2024/11/20-23:23:31.455101) [compaction_job.cc:1224] [default] compacted to: files[0 0 0 0 0 1 0] max score 0.00, MB/sec: 48.6 rd, 39.3 wr, level 5, files in(4, 0) out(1 +0 blob) MB in(148.1, 0.0 +0.0 blob) out(119.6 +0.0 blob), read-write-amplify(1.8) write-amplify(0.8) OK, records in: 239654, records dropped: 0 output_compression: Snappy 2024/11/20-23:23:31.455177 140008291239488 (Original Log Time 2024/11/20-23:23:31.455148) EVENT_LOG_v1 {"time_micros": 1732116211455124, "cf": "default", "job": 20600, "event": "compaction_finished", "compaction_time_micros": 3194166, "compaction_time_cpu_micros": 567359, "output_level": 5, "num_output_files": 1, "total_output_size": 125419163, "num_input_records": 239654, "num_output_records": 239654, "num_subcompactions": 1, "output_compression": "Snappy", "num_single_delete_mismatches": 0, "num_single_delete_fallthrough": 0, "file_write_nanos": 89679705, "file_range_sync_nanos": 0, "file_fsync_nanos": 769, "file_prepare_write_nanos": 2544, "lsm_state": [0, 0, 0, 0, 0, 1, 0]} 2024/11/20-23:23:31.601489 140008291239488 DEBG dcompact_worker.cpp:240: HttpPost: 200 OK: url = http://nlb-7zny4kaa1poal01o64.cn-shenzhen.nlb.aliyuncs.com:8443, body = {"instanceId":"nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137","labourId":"","dbId":"d89b4006-2803-486e-b7a2-759bcf348921","dbStarts":1732096383,"starts":1732116208,"executesMs":3364,"compactionJobId":20600,"attempt":0,"compactionInputRawBytes":160359419,"compactionInputZipBytes":155278276,"compactionOutputRawBytes":0,"compactionOutputZipBytes":125419163,"headers":{"Accept":"*/*","Connection":"close","Host":"aliyun-topling-saas.topling.cn:18443","RemoteIp":"120.24.192.169","X-Forwarded-For":"120.24.192.169","region":"cn-shenzhen","token":"e6474c481bd4415abc537135cc03626b","instance-token":"e6474c481bd4415abc537135cc03626b","provider":"aliyun","CloudMarketInstanceId":"si-59c0ae5c955845588903","MeteringAssit":"","Transfer-Encoding":"chunked","traceparent":"00-048347b5a4b97b7995c84935c52ca96a-d9561e871e0ceef4-00"}}, response = 2024/11/20-23:23:31.601572 140008291239488 INFO dcompact_worker.cpp:1464: finish /worker/dcompact-log/nfs/i-wz9deglxdazgiryp6ltb_10.57.5.137/2024-11-20T17.53.03/.rocksdb/job-20600/att-00: olev 5, work 3.365 s, result 8.113 ms, install 0.348 ms, input{raw 152.931 MiB zip 148.085 MiB}