Skip to content

Conversation

@luwei16
Copy link
Contributor

@luwei16 luwei16 commented Jun 18, 2024

1 Limit the number of rowsets participating in base compaction.
2 Estimate the appropriate batch size by sampling and analyzing the memory consumption of blocks.

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@luwei16
Copy link
Contributor Author

luwei16 commented Jun 18, 2024

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@luwei16
Copy link
Contributor Author

luwei16 commented Jun 18, 2024

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@luwei16
Copy link
Contributor Author

luwei16 commented Jun 19, 2024

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TPC-H: Total hot run time: 40420 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit da2c8f36e5017a0019936c89d9f89f061981e990, data reload: false

------ Round 1 ----------------------------------
q1	17616	4647	4311	4311
q2	2020	187	189	187
q3	10541	1094	1043	1043
q4	10380	791	877	791
q5	7802	2747	2689	2689
q6	225	140	140	140
q7	960	627	618	618
q8	9574	2098	2095	2095
q9	9030	6545	6567	6545
q10	9060	3849	3819	3819
q11	466	244	237	237
q12	607	236	237	236
q13	18410	3100	3042	3042
q14	260	213	218	213
q15	523	483	461	461
q16	531	399	384	384
q17	979	697	701	697
q18	7970	7604	7558	7558
q19	1691	1406	1476	1406
q20	647	312	346	312
q21	4972	3293	3856	3293
q22	392	343	345	343
Total cold run time: 114656 ms
Total hot run time: 40420 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4360	4292	4297	4292
q2	368	272	261	261
q3	2997	2760	2746	2746
q4	1928	1610	1678	1610
q5	5272	5284	5283	5283
q6	213	130	129	129
q7	2130	1710	1733	1710
q8	3200	3323	3325	3323
q9	8376	8317	8315	8315
q10	3869	3699	3695	3695
q11	589	490	501	490
q12	768	601	599	599
q13	16293	2972	2982	2972
q14	285	258	258	258
q15	524	477	461	461
q16	465	419	415	415
q17	1752	1474	1482	1474
q18	7566	7664	7422	7422
q19	1735	1634	1627	1627
q20	1961	1756	1767	1756
q21	4805	4750	4677	4677
q22	611	504	540	504
Total cold run time: 70067 ms
Total hot run time: 54019 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173148 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit da2c8f36e5017a0019936c89d9f89f061981e990, data reload: false

query1	925	386	376	376
query2	6458	2239	2238	2238
query3	6663	209	214	209
query4	19317	17448	17338	17338
query5	4149	493	464	464
query6	248	165	160	160
query7	4586	302	292	292
query8	310	280	295	280
query9	8571	2363	2347	2347
query10	653	323	273	273
query11	10585	10146	9997	9997
query12	139	84	89	84
query13	1647	364	364	364
query14	8721	7698	7706	7698
query15	232	191	184	184
query16	7673	273	264	264
query17	1913	530	511	511
query18	1839	272	267	267
query19	194	152	149	149
query20	94	85	80	80
query21	207	136	124	124
query22	4358	3957	4031	3957
query23	33708	33144	33053	33053
query24	11735	2858	2748	2748
query25	691	377	426	377
query26	1840	159	161	159
query27	2908	320	320	320
query28	7582	2010	2006	2006
query29	1123	639	650	639
query30	282	148	150	148
query31	943	732	757	732
query32	91	55	58	55
query33	765	281	285	281
query34	980	459	458	458
query35	755	619	630	619
query36	1098	912	973	912
query37	194	69	69	69
query38	2863	2730	2770	2730
query39	869	802	801	801
query40	284	124	124	124
query41	56	51	52	51
query42	118	100	101	100
query43	635	533	536	533
query44	1227	723	730	723
query45	190	167	160	160
query46	1075	717	760	717
query47	1862	1829	1802	1802
query48	384	297	290	290
query49	1176	402	399	399
query50	770	389	386	386
query51	6752	6670	6616	6616
query52	106	97	93	93
query53	357	282	283	282
query54	976	435	434	434
query55	76	76	75	75
query56	275	250	266	250
query57	1120	1034	1053	1034
query58	251	237	244	237
query59	3540	3106	3171	3106
query60	297	288	272	272
query61	93	87	90	87
query62	669	445	473	445
query63	315	284	289	284
query64	9840	2224	1753	1753
query65	3154	3112	3094	3094
query66	1351	339	343	339
query67	15449	15013	15165	15013
query68	4578	545	530	530
query69	452	291	305	291
query70	1183	1120	1150	1120
query71	376	268	268	268
query72	7078	5375	5600	5375
query73	754	331	325	325
query74	5983	5532	5563	5532
query75	3420	2698	2680	2680
query76	2584	937	961	937
query77	457	291	294	291
query78	10275	9807	9611	9611
query79	2755	505	504	504
query80	1109	462	456	456
query81	587	228	223	223
query82	830	103	107	103
query83	234	185	173	173
query84	242	93	85	85
query85	1370	370	266	266
query86	461	317	329	317
query87	3279	3120	3121	3120
query88	4282	2435	2429	2429
query89	467	367	389	367
query90	1749	187	183	183
query91	127	98	96	96
query92	71	49	53	49
query93	1771	515	497	497
query94	1253	186	186	186
query95	404	306	323	306
query96	586	271	269	269
query97	3244	3055	3113	3055
query98	212	203	202	202
query99	1154	840	843	840
Total cold run time: 273634 ms
Total hot run time: 173148 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.31 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit da2c8f36e5017a0019936c89d9f89f061981e990, data reload: false

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.22	0.05	0.05
query4	1.67	0.07	0.06
query5	0.50	0.50	0.48
query6	1.13	0.72	0.72
query7	0.02	0.02	0.01
query8	0.05	0.04	0.04
query9	0.55	0.49	0.49
query10	0.56	0.54	0.54
query11	0.16	0.12	0.12
query12	0.14	0.12	0.11
query13	0.61	0.58	0.60
query14	0.80	0.79	0.77
query15	0.84	0.83	0.82
query16	0.37	0.37	0.36
query17	0.95	1.00	0.99
query18	0.23	0.25	0.25
query19	1.83	1.77	1.71
query20	0.01	0.01	0.01
query21	15.43	0.66	0.64
query22	4.78	6.96	1.53
query23	18.27	1.38	1.38
query24	2.10	0.23	0.25
query25	0.15	0.09	0.09
query26	0.27	0.16	0.17
query27	0.08	0.08	0.08
query28	13.17	1.02	1.02
query29	12.63	3.32	3.32
query30	0.26	0.06	0.07
query31	2.85	0.39	0.38
query32	3.26	0.47	0.47
query33	2.91	2.83	2.92
query34	17.00	4.42	4.45
query35	4.49	4.49	4.46
query36	0.64	0.47	0.48
query37	0.18	0.15	0.14
query38	0.15	0.15	0.14
query39	0.04	0.03	0.03
query40	0.17	0.14	0.14
query41	0.10	0.05	0.05
query42	0.06	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.79 s
Total hot run time: 30.31 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.46% (9007/24702)
Line Coverage: 28.01% (73821/263516)
Region Coverage: 27.50% (38356/139474)
Branch Coverage: 24.18% (19544/80816)
Coverage Report: http://coverage.selectdb-in.cc/coverage/da2c8f36e5017a0019936c89d9f89f061981e990_da2c8f36e5017a0019936c89d9f89f061981e990/report/index.html

@luwei16
Copy link
Contributor Author

luwei16 commented Jun 20, 2024

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TPC-H: Total hot run time: 41006 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit a93005e4857eb9e2047ec35db5e6c0a2313574c4, data reload: false

------ Round 1 ----------------------------------
q1	17980	4787	4337	4337
q2	2518	202	205	202
q3	11001	1170	1171	1170
q4	10555	772	799	772
q5	7764	2729	2684	2684
q6	230	140	139	139
q7	968	626	629	626
q8	9251	2138	2110	2110
q9	9196	6608	6596	6596
q10	8997	3741	3715	3715
q11	487	240	248	240
q12	479	243	237	237
q13	17774	2993	2977	2977
q14	271	211	227	211
q15	518	481	481	481
q16	527	395	376	376
q17	974	701	733	701
q18	8176	7460	7395	7395
q19	3057	1557	1474	1474
q20	641	320	329	320
q21	5030	3904	3974	3904
q22	419	339	349	339
Total cold run time: 116813 ms
Total hot run time: 41006 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4437	4197	4236	4197
q2	365	277	273	273
q3	3002	2787	2705	2705
q4	1946	1607	1618	1607
q5	5280	5329	5298	5298
q6	218	128	133	128
q7	2077	1761	1777	1761
q8	3228	3359	3381	3359
q9	8413	8382	8399	8382
q10	3910	3691	3644	3644
q11	576	479	489	479
q12	767	602	600	600
q13	17544	3006	2995	2995
q14	286	260	258	258
q15	534	475	473	473
q16	467	418	418	418
q17	1805	1516	1479	1479
q18	7873	7688	7374	7374
q19	1705	1615	1545	1545
q20	1976	1797	1796	1796
q21	4899	4871	4660	4660
q22	618	549	535	535
Total cold run time: 71926 ms
Total hot run time: 53966 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.48% (9011/24703)
Line Coverage: 28.03% (73914/263734)
Region Coverage: 27.51% (38390/139545)
Branch Coverage: 24.21% (19569/80830)
Coverage Report: http://coverage.selectdb-in.cc/coverage/a93005e4857eb9e2047ec35db5e6c0a2313574c4_a93005e4857eb9e2047ec35db5e6c0a2313574c4/report/index.html

break;
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a defer, because there are other places where rowsets are removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


DEFINE_Bool(enable_base_compaction_idle_sched, "true");
DEFINE_mInt64(base_compaction_min_rowset_num, "5");
DEFINE_mInt64(base_compaction_max_rowset_num, "20");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shoud limit comlumn num, it is waynum * column_num, because segment columns consumes memory too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to rowset num, we shoud limit score?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

way_num = num_segments();
CHECK(way_num > 0);
}
return way_num;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as score?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The score contains an empty rowset, while the merge way does not include an empty rowset

_merge_rowsets_latency_timer = ADD_TIMER(_profile, "merge_rowsets_latency");
}

int64_t Compaction::merge_way() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge_way_num

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

<< tablet->tablet_id() << " way cnt: " << way_cnt;
return 4096 - 32;
}
int64_t block_mem_limit = config::compaction_memory_bytes_limit / way_cnt;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are meta consuming memory too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR temporarily does not calculate the memory consumption of metadata

src_rowset_readers, dst_rowset_writer, max_rows_per_segment, stats_output,
key_group_cluster_key_idxes));
key_group_cluster_key_idxes, batch_size, &(tablet->sample_infos[i])));
if (is_key) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When memlimit happens, we should adjust batch_size.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as comment.

@doris-robot
Copy link

ClickBench: Total hot run time: 30.47 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 3ac366e61dcf9b802628c402596114ed4b9ecbfb, data reload: false

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.22	0.05	0.05
query4	1.68	0.07	0.09
query5	0.51	0.48	0.50
query6	1.13	0.72	0.72
query7	0.02	0.02	0.01
query8	0.04	0.04	0.04
query9	0.53	0.48	0.50
query10	0.56	0.54	0.56
query11	0.15	0.11	0.12
query12	0.14	0.11	0.12
query13	0.60	0.58	0.59
query14	0.77	0.77	0.78
query15	0.83	0.82	0.82
query16	0.37	0.37	0.35
query17	1.00	1.01	1.04
query18	0.20	0.26	0.24
query19	1.77	1.66	1.71
query20	0.02	0.01	0.01
query21	15.41	0.67	0.66
query22	4.52	7.18	1.80
query23	18.29	1.39	1.30
query24	2.12	0.22	0.22
query25	0.14	0.09	0.08
query26	0.26	0.17	0.18
query27	0.08	0.08	0.08
query28	13.28	1.01	1.00
query29	12.60	3.36	3.32
query30	0.25	0.06	0.06
query31	2.86	0.39	0.38
query32	3.28	0.46	0.46
query33	2.86	2.90	2.91
query34	17.21	4.41	4.43
query35	4.48	4.47	4.50
query36	0.65	0.47	0.48
query37	0.18	0.14	0.15
query38	0.15	0.14	0.14
query39	0.05	0.03	0.04
query40	0.17	0.15	0.14
query41	0.10	0.05	0.04
query42	0.05	0.04	0.05
query43	0.04	0.05	0.04
Total cold run time: 109.69 s
Total hot run time: 30.47 s

void BaseCompaction::_filter_input_rowset() {
auto rs_iter = _input_rowsets.begin();
int score = 0;
while (rs_iter != _input_rowsets.end()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just resize()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@luwei16
Copy link
Contributor Author

luwei16 commented Jun 25, 2024

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

// specific language governing permissions and limitations
// under the License.

#include "olap/base_compaction.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'olap/base_compaction.h' file not found [clang-diagnostic-error]

#include "olap/base_compaction.h"
         ^

@doris-robot
Copy link

TPC-H: Total hot run time: 40077 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 358983fe4517988d3f0e90378d06c26ee247ca15, data reload: false

------ Round 1 ----------------------------------
q1	17934	4505	4360	4360
q2	2491	191	191	191
q3	11284	1108	1063	1063
q4	11176	798	760	760
q5	7506	2688	2700	2688
q6	227	133	130	130
q7	975	611	619	611
q8	9275	2098	2134	2098
q9	9434	6612	6563	6563
q10	9019	3782	3704	3704
q11	479	253	241	241
q12	439	236	237	236
q13	17765	2967	2981	2967
q14	270	227	208	208
q15	515	484	473	473
q16	543	383	374	374
q17	969	694	762	694
q18	8075	7500	7384	7384
q19	4890	1469	1480	1469
q20	655	324	329	324
q21	5608	3204	3921	3204
q22	394	335	340	335
Total cold run time: 119923 ms
Total hot run time: 40077 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4407	4291	4235	4235
q2	379	271	263	263
q3	3011	2786	2733	2733
q4	1874	1627	1575	1575
q5	5263	5275	5275	5275
q6	218	127	124	124
q7	2132	1737	1726	1726
q8	3199	3349	3319	3319
q9	8441	8340	8390	8340
q10	3883	3677	3672	3672
q11	583	484	477	477
q12	777	603	584	584
q13	17395	2980	2986	2980
q14	284	259	265	259
q15	509	484	484	484
q16	468	410	417	410
q17	1782	1489	1479	1479
q18	7772	7526	7283	7283
q19	1826	1616	1617	1616
q20	1993	1775	1798	1775
q21	4802	4793	4712	4712
q22	605	542	546	542
Total cold run time: 71603 ms
Total hot run time: 53863 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 172010 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 358983fe4517988d3f0e90378d06c26ee247ca15, data reload: false

query1	913	368	380	368
query2	6440	2267	2277	2267
query3	6633	207	212	207
query4	18842	17382	17373	17373
query5	4131	457	482	457
query6	250	154	162	154
query7	4593	303	292	292
query8	341	311	283	283
query9	8452	2476	2443	2443
query10	591	311	277	277
query11	10597	10070	10104	10070
query12	122	82	83	82
query13	1631	371	369	369
query14	9981	6489	7685	6489
query15	280	180	189	180
query16	8021	267	265	265
query17	1903	533	509	509
query18	2004	281	270	270
query19	186	143	160	143
query20	93	83	81	81
query21	210	122	121	121
query22	4336	4192	4068	4068
query23	33804	32953	33068	32953
query24	11026	2844	2863	2844
query25	615	353	357	353
query26	1531	148	153	148
query27	2968	308	327	308
query28	7313	2109	2087	2087
query29	987	612	595	595
query30	266	148	150	148
query31	960	748	735	735
query32	94	56	53	53
query33	770	282	274	274
query34	1011	490	462	462
query35	721	603	615	603
query36	1106	921	890	890
query37	152	70	67	67
query38	2878	2769	2764	2764
query39	867	777	812	777
query40	261	127	120	120
query41	56	53	52	52
query42	117	97	98	97
query43	578	533	539	533
query44	1198	739	744	739
query45	196	171	160	160
query46	1079	743	720	720
query47	1884	1828	1816	1816
query48	381	304	305	304
query49	1188	412	412	412
query50	770	380	377	377
query51	7004	6874	6678	6678
query52	107	93	93	93
query53	364	294	283	283
query54	921	462	458	458
query55	75	76	74	74
query56	297	279	305	279
query57	1130	1044	1076	1044
query58	241	283	240	240
query59	3405	3183	3110	3110
query60	303	272	271	271
query61	92	91	92	91
query62	656	471	434	434
query63	329	285	286	285
query64	9723	2240	1752	1752
query65	3162	3088	3085	3085
query66	1361	333	322	322
query67	15408	15109	14890	14890
query68	4585	528	545	528
query69	454	305	307	305
query70	1214	1108	1101	1101
query71	394	276	275	275
query72	7188	5730	5255	5255
query73	750	327	319	319
query74	5942	5575	5526	5526
query75	3476	2657	2641	2641
query76	2883	951	897	897
query77	487	307	298	298
query78	10253	9924	9785	9785
query79	2364	509	506	506
query80	1173	469	467	467
query81	578	220	215	215
query82	760	103	100	100
query83	238	170	166	166
query84	241	88	80	80
query85	1386	274	270	270
query86	471	316	339	316
query87	3302	3063	3133	3063
query88	4220	2376	2343	2343
query89	483	382	372	372
query90	1753	191	185	185
query91	124	99	98	98
query92	67	49	50	49
query93	1836	510	509	509
query94	1264	190	194	190
query95	411	311	309	309
query96	580	268	260	260
query97	3210	3090	3011	3011
query98	219	205	197	197
query99	1282	826	851	826
Total cold run time: 273493 ms
Total hot run time: 172010 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.53 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 358983fe4517988d3f0e90378d06c26ee247ca15, data reload: false

query1	0.04	0.03	0.03
query2	0.08	0.03	0.04
query3	0.22	0.05	0.06
query4	1.67	0.07	0.08
query5	0.50	0.49	0.49
query6	1.13	0.73	0.71
query7	0.02	0.02	0.01
query8	0.04	0.04	0.04
query9	0.55	0.50	0.49
query10	0.54	0.54	0.55
query11	0.14	0.11	0.11
query12	0.14	0.12	0.12
query13	0.59	0.59	0.59
query14	0.76	0.79	0.77
query15	0.83	0.81	0.82
query16	0.36	0.36	0.36
query17	1.02	1.05	1.02
query18	0.21	0.27	0.25
query19	1.78	1.77	1.70
query20	0.02	0.01	0.01
query21	15.44	0.67	0.67
query22	4.07	7.55	1.70
query23	18.30	1.40	1.31
query24	2.08	0.22	0.25
query25	0.16	0.10	0.09
query26	0.27	0.17	0.19
query27	0.08	0.07	0.08
query28	13.18	1.03	1.00
query29	12.58	3.28	3.28
query30	0.26	0.06	0.06
query31	2.85	0.39	0.37
query32	3.28	0.47	0.47
query33	2.88	2.91	2.87
query34	17.20	4.47	4.47
query35	4.52	4.52	4.53
query36	0.65	0.47	0.46
query37	0.19	0.16	0.15
query38	0.15	0.15	0.14
query39	0.04	0.04	0.04
query40	0.17	0.14	0.13
query41	0.09	0.05	0.05
query42	0.06	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.18 s
Total hot run time: 30.53 s

@luwei16
Copy link
Contributor Author

luwei16 commented Jun 26, 2024

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 40180 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 69e584d7f4303a34d798bb5a1bbc9c75f8c6f11c, data reload: false

------ Round 1 ----------------------------------
q1	17628	4482	4294	4294
q2	2027	189	197	189
q3	10876	1203	1086	1086
q4	10225	845	792	792
q5	7553	2734	2714	2714
q6	222	137	136	136
q7	982	608	634	608
q8	9727	2139	2115	2115
q9	9212	6632	6629	6629
q10	9453	3779	3765	3765
q11	452	244	234	234
q12	469	241	231	231
q13	17956	2988	3008	2988
q14	261	224	235	224
q15	515	473	474	473
q16	535	376	380	376
q17	976	651	623	623
q18	7986	7549	7368	7368
q19	4044	1531	1418	1418
q20	654	330	350	330
q21	5011	3296	3250	3250
q22	396	337	345	337
Total cold run time: 117160 ms
Total hot run time: 40180 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4371	4221	4225	4221
q2	372	267	276	267
q3	3011	2920	2913	2913
q4	1997	1757	1765	1757
q5	5615	5508	5477	5477
q6	224	132	134	132
q7	2168	1971	1847	1847
q8	3307	3406	3443	3406
q9	8842	8754	8689	8689
q10	4055	3839	3824	3824
q11	611	504	534	504
q12	789	625	647	625
q13	16071	3138	3171	3138
q14	315	279	272	272
q15	541	473	502	473
q16	505	440	424	424
q17	1867	1567	1523	1523
q18	8058	8026	7909	7909
q19	1805	1562	1642	1562
q20	2181	1882	1852	1852
q21	5146	4997	4989	4989
q22	632	563	567	563
Total cold run time: 72483 ms
Total hot run time: 56367 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173175 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 69e584d7f4303a34d798bb5a1bbc9c75f8c6f11c, data reload: false

query1	930	399	376	376
query2	6284	2520	2243	2243
query3	6630	214	220	214
query4	19645	17611	17239	17239
query5	3780	470	502	470
query6	253	167	161	161
query7	4596	300	290	290
query8	302	279	264	264
query9	8570	2347	2332	2332
query10	569	288	276	276
query11	10511	10091	9948	9948
query12	121	85	85	85
query13	1663	377	373	373
query14	10290	7767	6460	6460
query15	228	179	189	179
query16	7741	275	269	269
query17	1895	540	555	540
query18	1947	277	271	271
query19	196	150	151	150
query20	88	84	82	82
query21	213	129	122	122
query22	4204	4080	4047	4047
query23	33798	33511	33625	33511
query24	11675	2830	2848	2830
query25	681	369	390	369
query26	1807	160	156	156
query27	2992	319	322	319
query28	7514	2130	2131	2130
query29	1115	650	650	650
query30	272	163	154	154
query31	995	809	730	730
query32	93	57	53	53
query33	767	292	308	292
query34	1044	486	492	486
query35	778	643	648	643
query36	1194	983	979	979
query37	181	74	74	74
query38	2983	2819	2836	2819
query39	909	835	815	815
query40	275	134	132	132
query41	53	57	58	57
query42	107	101	99	99
query43	607	557	526	526
query44	1226	744	734	734
query45	191	166	169	166
query46	1107	722	720	720
query47	1877	1749	1766	1749
query48	376	314	309	309
query49	919	417	422	417
query50	771	390	389	389
query51	6989	6803	6832	6803
query52	106	118	89	89
query53	356	286	291	286
query54	889	441	436	436
query55	73	75	76	75
query56	279	267	260	260
query57	1158	1027	1069	1027
query58	251	241	260	241
query59	3298	3077	3125	3077
query60	299	287	272	272
query61	90	110	89	89
query62	607	441	431	431
query63	322	291	292	291
query64	9677	2342	1843	1843
query65	3208	3100	3146	3100
query66	1262	329	326	326
query67	15587	15011	14900	14900
query68	7979	554	549	549
query69	634	470	395	395
query70	1122	1089	1112	1089
query71	505	281	274	274
query72	7564	5336	5684	5336
query73	835	337	329	329
query74	5849	5504	5477	5477
query75	4222	2691	2729	2691
query76	4592	1006	916	916
query77	705	300	306	300
query78	10338	10122	9815	9815
query79	1605	512	520	512
query80	1291	470	459	459
query81	529	224	224	224
query82	736	105	100	100
query83	200	171	165	165
query84	272	94	85	85
query85	1323	348	277	277
query86	407	334	334	334
query87	3318	3081	3088	3081
query88	3272	2473	2458	2458
query89	480	382	377	377
query90	1831	194	188	188
query91	127	104	99	99
query92	59	49	49	49
query93	1879	516	507	507
query94	1018	191	185	185
query95	413	314	316	314
query96	605	276	279	276
query97	3249	3032	3069	3032
query98	216	200	209	200
query99	1213	837	847	837
Total cold run time: 279802 ms
Total hot run time: 173175 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.65 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 69e584d7f4303a34d798bb5a1bbc9c75f8c6f11c, data reload: false

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.24	0.05	0.05
query4	1.64	0.08	0.07
query5	0.50	0.48	0.49
query6	1.15	0.73	0.73
query7	0.02	0.01	0.02
query8	0.05	0.04	0.05
query9	0.56	0.51	0.49
query10	0.56	0.55	0.55
query11	0.15	0.11	0.12
query12	0.15	0.12	0.12
query13	0.60	0.59	0.61
query14	0.78	0.77	0.77
query15	0.85	0.82	0.81
query16	0.37	0.35	0.37
query17	1.00	1.01	1.00
query18	0.22	0.23	0.24
query19	1.92	1.71	1.74
query20	0.01	0.01	0.01
query21	15.47	0.76	0.66
query22	4.24	6.69	1.94
query23	18.25	1.45	1.24
query24	2.20	0.23	0.22
query25	0.16	0.07	0.08
query26	0.27	0.17	0.18
query27	0.09	0.08	0.08
query28	13.23	1.02	0.99
query29	12.64	3.41	3.36
query30	0.25	0.06	0.05
query31	2.83	0.38	0.39
query32	3.26	0.46	0.48
query33	2.89	2.88	2.92
query34	16.99	4.44	4.53
query35	4.52	4.53	4.48
query36	0.68	0.47	0.47
query37	0.19	0.15	0.14
query38	0.15	0.14	0.14
query39	0.04	0.03	0.04
query40	0.18	0.14	0.16
query41	0.10	0.05	0.04
query42	0.06	0.04	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.62 s
Total hot run time: 30.65 s

@luwei16
Copy link
Contributor Author

luwei16 commented Jun 27, 2024

run p0

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jun 27, 2024
@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@gavinchou gavinchou merged commit 9990181 into apache:master Jun 27, 2024
dataroaring pushed a commit that referenced this pull request Jun 28, 2024
)

1 Limit the number of rowsets participating in base compaction.
2 Estimate the appropriate batch size by sampling and analyzing the
memory consumption of blocks.
dataroaring added a commit to dataroaring/incubator-doris that referenced this pull request Jun 29, 2024
dataroaring added a commit that referenced this pull request Jun 30, 2024
dataroaring added a commit that referenced this pull request Jun 30, 2024
@dataroaring
Copy link
Contributor

revert and recommit in #37099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants