Skip to content

Conversation

@freemandealer
Copy link
Contributor

@freemandealer freemandealer commented Aug 2, 2024

User can set file_cache_path=[{..., "storage":"memory"}] to use RAM as file cache storage.

@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.

@github-actions github-actions bot added the doing label Aug 2, 2024
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


namespace doris::io {

MemFileCacheStorage::~MemFileCacheStorage() {}
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: use '= default' to define a trivial destructor [modernize-use-equals-default]

Suggested change
MemFileCacheStorage::~MemFileCacheStorage() {}
MemFileCacheStorage::~MemFileCacheStorage() = default;

@gavinchou gavinchou changed the title [wip][feature] support in-memory filecache for no-disk/slow-disk system [wip][feature](file cache) Support in-memory filecache for no-disk/slow-disk system Aug 4, 2024
namespace doris::io {

struct MemBlock {
std::shared_ptr<char> addr;
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 a std::string

Copy link
Contributor Author

@freemandealer freemandealer Aug 20, 2024

Choose a reason for hiding this comment

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

It is a memory address pointing to a char array (a continous memory block), so I think it should be std::shared_ptr<char[]> instead?

@freemandealer
Copy link
Contributor Author

TODO: config: for extensibility, use another json field instead of 'memory' in path

@freemandealer
Copy link
Contributor Author

freemandealer commented Aug 29, 2024

Sry for this hanging WIP PR, I've been dealing with more urgent tasks. I will return to this ASAP!

@freemandealer freemandealer changed the title [wip][feature](file cache) Support in-memory filecache for no-disk/slow-disk system [feature](file cache) Support in-memory filecache for no-disk/slow-disk system Sep 6, 2024
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

LOG_ERROR("").tag("file cache path", cache_base_path).tag("error", strerror(errno));
return Status::IOError("{} statfs error {}", cache_base_path, strerror(errno));
}
size_t disk_capacity = static_cast<size_t>(
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: use auto when initializing with a cast to avoid duplicating the type name [modernize-use-auto]

Suggested change
size_t disk_capacity = static_cast<size_t>(
auto disk_capacity = static_cast<size_t>(

}
}

void test_file_cache_memory_storage(io::FileCacheType cache_type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: function 'test_file_cache_memory_storage' exceeds recommended size/complexity thresholds [readability-function-size]

void test_file_cache_memory_storage(io::FileCacheType cache_type) {
     ^
Additional context

be/test/io/cache/block_file_cache_test.cpp:659: 397 lines including whitespace and comments (threshold 80)

void test_file_cache_memory_storage(io::FileCacheType cache_type) {
     ^


TEST_F(BlockFileCacheTest, ttl_modify_memory_storage) {
test_file_cache_memory_storage(io::FileCacheType::NORMAL);
auto sp = SyncPoint::get_instance();
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: 'auto sp' can be declared as 'auto *sp' [readability-qualified-auto]

Suggested change
auto sp = SyncPoint::get_instance();
L);auto *

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

}
}

void test_file_cache_memory_storage(io::FileCacheType cache_type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: function 'test_file_cache_memory_storage' exceeds recommended size/complexity thresholds [readability-function-size]

void test_file_cache_memory_storage(io::FileCacheType cache_type) {
     ^
Additional context

be/test/io/cache/block_file_cache_test.cpp:659: 389 lines including whitespace and comments (threshold 80)

void test_file_cache_memory_storage(io::FileCacheType cache_type) {
     ^

@freemandealer
Copy link
Contributor Author

run buildall

1 similar comment
@freemandealer
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18457	4585	4482	4482
q2	2875	191	181	181
q3	11752	1146	1177	1146
q4	10537	734	725	725
q5	8536	2947	2861	2861
q6	227	139	137	137
q7	966	621	608	608
q8	9345	2076	2093	2076
q9	7286	6578	6554	6554
q10	7014	2220	2210	2210
q11	460	246	250	246
q12	401	226	224	224
q13	18904	3088	3091	3088
q14	289	246	251	246
q15	548	506	479	479
q16	519	425	416	416
q17	1007	675	798	675
q18	7278	6851	6878	6851
q19	1407	1028	1019	1019
q20	718	329	324	324
q21	4089	3003	3055	3003
q22	1131	1030	1046	1030
Total cold run time: 113746 ms
Total hot run time: 38581 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4340	4276	4295	4276
q2	384	280	270	270
q3	2914	2655	2679	2655
q4	1954	1605	1707	1605
q5	5392	5424	5416	5416
q6	216	131	133	131
q7	2155	1721	1734	1721
q8	3208	3364	3380	3364
q9	8455	8395	8429	8395
q10	3468	3196	3205	3196
q11	586	516	499	499
q12	783	625	594	594
q13	11223	3113	3072	3072
q14	310	270	279	270
q15	517	481	474	474
q16	519	482	474	474
q17	1782	1494	1490	1490
q18	7803	7408	7524	7408
q19	1660	1593	1548	1548
q20	2060	1833	1844	1833
q21	5416	5227	5279	5227
q22	1130	1038	1027	1027
Total cold run time: 66275 ms
Total hot run time: 54945 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 187710 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 a70c120e5e691700e7d2ec2256acb47130d43750, data reload: false

query1	910	376	376	376
query2	6487	1963	1945	1945
query3	6655	210	222	210
query4	27289	23099	23136	23099
query5	4149	503	498	498
query6	267	170	168	168
query7	4598	298	301	298
query8	287	243	229	229
query9	8790	2493	2483	2483
query10	463	287	267	267
query11	17009	15899	15034	15034
query12	145	101	102	101
query13	1633	384	384	384
query14	9965	7314	7261	7261
query15	270	170	183	170
query16	7872	384	417	384
query17	1647	564	553	553
query18	2025	288	275	275
query19	297	148	150	148
query20	120	116	111	111
query21	217	105	103	103
query22	4463	4369	4088	4088
query23	34580	33252	33763	33252
query24	11169	2821	2756	2756
query25	628	376	392	376
query26	1293	152	155	152
query27	2820	278	279	278
query28	7275	2061	2056	2056
query29	887	401	400	400
query30	297	159	153	153
query31	980	756	777	756
query32	102	53	55	53
query33	763	282	291	282
query34	993	470	474	470
query35	854	748	702	702
query36	1106	947	935	935
query37	165	90	87	87
query38	3997	3848	3876	3848
query39	1438	1396	1389	1389
query40	273	115	120	115
query41	50	47	49	47
query42	114	94	99	94
query43	514	483	472	472
query44	1184	763	731	731
query45	189	168	167	167
query46	1095	714	732	714
query47	1858	1806	1822	1806
query48	373	283	294	283
query49	1062	472	430	430
query50	799	416	404	404
query51	7103	6937	6886	6886
query52	99	84	91	84
query53	258	183	177	177
query54	973	449	450	449
query55	76	76	77	76
query56	280	250	256	250
query57	1171	1061	1060	1060
query58	237	237	229	229
query59	2972	2974	2768	2768
query60	301	259	261	259
query61	108	106	102	102
query62	785	659	668	659
query63	216	186	188	186
query64	4348	706	640	640
query65	3222	3299	3142	3142
query66	767	330	329	329
query67	15703	15259	15334	15259
query68	3205	590	572	572
query69	394	294	284	284
query70	1103	1132	1045	1045
query71	332	281	269	269
query72	6488	4207	4123	4123
query73	741	336	334	334
query74	9108	8837	8753	8753
query75	3413	2696	2702	2696
query76	2054	1037	946	946
query77	453	323	329	323
query78	9679	9007	9178	9007
query79	1079	540	527	527
query80	844	519	527	519
query81	543	234	227	227
query82	525	143	145	143
query83	240	160	157	157
query84	237	85	78	78
query85	952	372	340	340
query86	304	302	272	272
query87	4358	4358	4270	4270
query88	2966	2342	2336	2336
query89	390	294	285	285
query90	1863	194	196	194
query91	138	118	114	114
query92	64	53	53	53
query93	1035	543	541	541
query94	713	294	299	294
query95	357	259	260	259
query96	581	263	261	261
query97	3217	3044	3048	3044
query98	224	205	207	205
query99	1530	1299	1291	1291
Total cold run time: 280165 ms
Total hot run time: 187710 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.03	0.03
query3	0.23	0.05	0.06
query4	1.67	0.09	0.09
query5	0.52	0.51	0.49
query6	1.12	0.72	0.71
query7	0.02	0.01	0.01
query8	0.05	0.04	0.04
query9	0.54	0.49	0.48
query10	0.54	0.56	0.53
query11	0.15	0.12	0.11
query12	0.15	0.12	0.12
query13	0.60	0.59	0.58
query14	1.36	1.37	1.45
query15	0.83	0.81	0.83
query16	0.38	0.38	0.38
query17	0.97	1.01	1.00
query18	0.21	0.20	0.19
query19	1.94	1.85	1.87
query20	0.01	0.01	0.01
query21	15.40	0.65	0.65
query22	3.78	6.70	1.96
query23	18.20	1.44	1.33
query24	2.14	0.21	0.22
query25	0.15	0.08	0.08
query26	0.28	0.18	0.17
query27	0.07	0.08	0.08
query28	13.29	1.01	0.99
query29	12.64	3.35	3.33
query30	0.24	0.05	0.06
query31	2.86	0.39	0.40
query32	3.26	0.49	0.47
query33	3.00	2.99	3.04
query34	17.04	4.41	4.38
query35	4.44	4.44	4.47
query36	0.66	0.50	0.50
query37	0.20	0.16	0.16
query38	0.16	0.15	0.16
query39	0.05	0.04	0.04
query40	0.15	0.13	0.13
query41	0.10	0.05	0.05
query42	0.06	0.05	0.05
query43	0.05	0.04	0.04
Total cold run time: 109.63 s
Total hot run time: 31.52 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.88% (9390/25462)
Line Coverage: 28.25% (77427/274080)
Region Coverage: 27.65% (39981/144601)
Branch Coverage: 24.28% (20342/83798)
Coverage Report: http://coverage.selectdb-in.cc/coverage/a70c120e5e691700e7d2ec2256acb47130d43750_a70c120e5e691700e7d2ec2256acb47130d43750/report/index.html

@freemandealer
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17779	7419	7248	7248
q2	2070	161	147	147
q3	10894	1126	1199	1126
q4	10360	730	802	730
q5	7766	3080	3084	3080
q6	239	149	146	146
q7	1014	621	600	600
q8	9445	2044	2093	2044
q9	6796	6469	6443	6443
q10	7003	2291	2274	2274
q11	440	244	255	244
q12	417	210	223	210
q13	17779	2982	2963	2963
q14	238	211	216	211
q15	583	531	530	530
q16	709	599	603	599
q17	976	826	822	822
q18	7475	6737	6550	6550
q19	1415	1025	1085	1025
q20	573	292	294	292
q21	4009	3308	3113	3113
q22	1106	1006	1016	1006
Total cold run time: 109086 ms
Total hot run time: 41403 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7241	7262	7252	7252
q2	321	229	220	220
q3	2992	2959	2985	2959
q4	2108	1861	1811	1811
q5	5584	5586	5636	5586
q6	232	147	143	143
q7	2247	1787	1792	1787
q8	3324	3441	3426	3426
q9	8741	8972	8730	8730
q10	3476	3413	3496	3413
q11	582	476	484	476
q12	823	607	593	593
q13	11281	3144	3148	3144
q14	321	264	277	264
q15	586	527	519	519
q16	742	699	694	694
q17	1825	1586	1572	1572
q18	8324	7764	7804	7764
q19	1724	1446	1638	1446
q20	2138	1906	1884	1884
q21	5582	5224	5490	5224
q22	1173	1071	1021	1021
Total cold run time: 71367 ms
Total hot run time: 59928 ms

@freemandealer
Copy link
Contributor Author

run buildall

gavinchou
gavinchou previously approved these changes Sep 23, 2024
Copy link
Contributor

@gavinchou gavinchou 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 Sep 23, 2024
@doris-robot
Copy link

TPC-DS: Total hot run time: 191044 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 2b8004972f961ad6802c48971230a29aeaa1ae31, data reload: false

query1	941	402	393	393
query2	6341	2059	1983	1983
query3	8684	195	203	195
query4	34247	23317	23426	23317
query5	3436	458	466	458
query6	260	168	163	163
query7	4188	292	287	287
query8	298	215	224	215
query9	9569	2645	2629	2629
query10	465	276	265	265
query11	18046	15185	15299	15185
query12	147	99	98	98
query13	1537	428	405	405
query14	9568	7348	7318	7318
query15	251	169	179	169
query16	8021	495	429	429
query17	1653	634	585	585
query18	2139	320	332	320
query19	362	152	150	150
query20	124	112	116	112
query21	215	108	108	108
query22	4751	4543	4616	4543
query23	34755	34094	34352	34094
query24	11083	2899	2900	2899
query25	624	406	410	406
query26	1168	157	158	157
query27	2266	278	284	278
query28	7798	2467	2420	2420
query29	841	434	429	429
query30	258	163	152	152
query31	1015	781	774	774
query32	95	53	56	53
query33	750	302	301	301
query34	920	494	480	480
query35	902	713	716	713
query36	1094	925	935	925
query37	151	90	84	84
query38	3991	3886	3905	3886
query39	1495	1417	1413	1413
query40	210	97	96	96
query41	51	48	49	48
query42	113	96	92	92
query43	514	476	474	474
query44	1203	831	791	791
query45	197	161	166	161
query46	1138	771	734	734
query47	1915	1855	1861	1855
query48	462	382	363	363
query49	925	415	410	410
query50	805	418	409	409
query51	6939	6915	6852	6852
query52	101	87	108	87
query53	247	174	176	174
query54	1088	475	457	457
query55	77	77	78	77
query56	275	253	251	251
query57	1211	1091	1080	1080
query58	237	228	249	228
query59	3041	2922	2857	2857
query60	284	265	269	265
query61	102	105	103	103
query62	838	674	674	674
query63	217	186	174	174
query64	3942	652	660	652
query65	3255	3176	3221	3176
query66	792	292	296	292
query67	15856	15561	15432	15432
query68	4482	581	573	573
query69	560	296	315	296
query70	1238	1088	1142	1088
query71	394	282	277	277
query72	7513	3998	4059	3998
query73	764	327	333	327
query74	10522	9092	8913	8913
query75	3655	2673	2656	2656
query76	3225	1068	955	955
query77	693	282	276	276
query78	10014	9224	9421	9224
query79	2795	557	574	557
query80	960	437	431	431
query81	575	241	243	241
query82	619	141	140	140
query83	346	138	139	138
query84	281	87	74	74
query85	1399	308	289	289
query86	420	314	296	296
query87	4520	4391	4303	4303
query88	3649	2376	2348	2348
query89	393	288	279	279
query90	2056	192	193	192
query91	203	144	142	142
query92	60	47	49	47
query93	2174	538	530	530
query94	1077	299	288	288
query95	363	249	257	249
query96	617	278	275	275
query97	3224	3155	3121	3121
query98	216	193	194	193
query99	1519	1292	1273	1273
Total cold run time: 301010 ms
Total hot run time: 191044 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.06	0.03	0.03
query3	0.23	0.06	0.06
query4	1.66	0.09	0.10
query5	0.53	0.51	0.51
query6	1.16	0.74	0.72
query7	0.02	0.02	0.02
query8	0.04	0.03	0.03
query9	0.56	0.50	0.50
query10	0.54	0.56	0.54
query11	0.14	0.11	0.11
query12	0.14	0.11	0.11
query13	0.61	0.59	0.59
query14	2.96	2.94	3.13
query15	0.87	0.82	0.82
query16	0.40	0.37	0.38
query17	1.02	1.07	1.05
query18	0.19	0.19	0.19
query19	1.89	1.81	2.01
query20	0.02	0.01	0.01
query21	15.36	0.59	0.61
query22	2.45	2.13	1.68
query23	17.62	0.92	0.75
query24	2.60	1.79	0.67
query25	0.33	0.11	0.10
query26	0.36	0.13	0.13
query27	0.05	0.04	0.03
query28	10.63	1.09	1.08
query29	12.54	3.24	3.22
query30	0.24	0.06	0.05
query31	2.90	0.39	0.39
query32	3.26	0.46	0.45
query33	2.98	2.98	3.04
query34	16.92	4.37	4.36
query35	4.37	4.44	4.40
query36	0.67	0.48	0.46
query37	0.09	0.06	0.07
query38	0.04	0.03	0.04
query39	0.04	0.02	0.02
query40	0.16	0.12	0.13
query41	0.07	0.02	0.02
query42	0.03	0.01	0.02
query43	0.03	0.03	0.03
Total cold run time: 106.82 s
Total hot run time: 32.17 s

TODO:
1. 优化 内存池
2. 写入、读取数据内存零拷贝
3. 原始一些代码的重构(很多fs相关的内容散布在 block_file_cache.cpp 里, 需要进行额外的清理)

Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
@freemandealer
Copy link
Contributor Author

run buildall

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

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

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.29% (9617/25789)
Line Coverage: 28.71% (79607/277308)
Region Coverage: 28.14% (41157/146247)
Branch Coverage: 24.78% (20979/84650)
Coverage Report: http://coverage.selectdb-in.cc/coverage/b78918aa6fbe8837b55d8d7eec5521c005c97869_b78918aa6fbe8837b55d8d7eec5521c005c97869/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17552	7370	7271	7271
q2	2010	290	301	290
q3	12164	1077	1199	1077
q4	10568	725	729	725
q5	7748	3121	3091	3091
q6	237	155	149	149
q7	1031	612	596	596
q8	9432	2033	2033	2033
q9	6816	6423	6391	6391
q10	7003	2247	2279	2247
q11	434	246	249	246
q12	414	223	218	218
q13	17777	2987	2988	2987
q14	241	214	219	214
q15	585	515	526	515
q16	660	623	600	600
q17	976	836	857	836
q18	7262	6696	6750	6696
q19	1402	1044	1014	1014
q20	581	291	276	276
q21	4383	3270	3244	3244
q22	1136	985	999	985
Total cold run time: 110412 ms
Total hot run time: 41701 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7278	7256	7206	7206
q2	337	242	239	239
q3	3124	3017	2889	2889
q4	2083	1842	1719	1719
q5	5643	5609	5708	5609
q6	232	148	152	148
q7	2220	1854	1821	1821
q8	3312	3455	3435	3435
q9	8850	8813	8778	8778
q10	3481	3471	3476	3471
q11	592	469	477	469
q12	819	628	636	628
q13	9902	3157	3185	3157
q14	312	274	270	270
q15	557	545	518	518
q16	718	680	699	680
q17	1819	1657	1557	1557
q18	8199	7755	7825	7755
q19	1716	1566	1534	1534
q20	2142	1891	1914	1891
q21	5407	5374	5447	5374
q22	1171	1081	1054	1054
Total cold run time: 69914 ms
Total hot run time: 60202 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 191397 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 b78918aa6fbe8837b55d8d7eec5521c005c97869, data reload: false

query1	942	384	400	384
query2	6265	2060	2035	2035
query3	8688	197	201	197
query4	33765	23502	23374	23374
query5	3413	452	453	452
query6	274	189	169	169
query7	4191	298	300	298
query8	285	238	214	214
query9	9493	2700	2708	2700
query10	439	280	276	276
query11	17834	15421	15098	15098
query12	159	95	97	95
query13	1531	402	415	402
query14	9661	7446	7534	7446
query15	254	169	181	169
query16	8332	464	472	464
query17	1681	626	599	599
query18	2186	302	324	302
query19	365	154	163	154
query20	124	116	117	116
query21	215	112	105	105
query22	4763	4583	4452	4452
query23	35018	34590	34258	34258
query24	11221	2974	2900	2900
query25	632	396	421	396
query26	1334	160	167	160
query27	2597	281	297	281
query28	8013	2474	2436	2436
query29	897	429	426	426
query30	256	163	156	156
query31	1033	781	782	781
query32	100	53	54	53
query33	748	294	289	289
query34	920	483	480	480
query35	894	744	730	730
query36	1104	924	950	924
query37	157	85	85	85
query38	4082	3945	3895	3895
query39	1474	1427	1441	1427
query40	250	101	102	101
query41	49	48	48	48
query42	129	98	96	96
query43	534	485	494	485
query44	1234	801	800	800
query45	191	165	163	163
query46	1146	790	765	765
query47	1907	1817	1846	1817
query48	466	354	372	354
query49	885	408	419	408
query50	810	409	404	404
query51	7074	7013	7024	7013
query52	102	86	92	86
query53	251	177	203	177
query54	1130	458	460	458
query55	83	73	75	73
query56	280	261	254	254
query57	1220	1085	1126	1085
query58	223	291	224	224
query59	3295	3261	3058	3058
query60	300	274	271	271
query61	107	101	107	101
query62	817	651	657	651
query63	213	183	183	183
query64	4973	634	601	601
query65	3243	3211	3211	3211
query66	1279	291	302	291
query67	15971	15726	15351	15351
query68	4838	567	583	567
query69	518	314	301	301
query70	1175	1141	1137	1137
query71	414	263	282	263
query72	7507	3982	3991	3982
query73	756	330	326	326
query74	9500	8916	9031	8916
query75	3868	2673	2714	2673
query76	3742	815	965	815
query77	595	285	285	285
query78	9859	9151	9128	9128
query79	2352	538	543	538
query80	1153	435	430	430
query81	583	240	243	240
query82	660	146	139	139
query83	309	133	134	133
query84	273	79	78	78
query85	1434	287	281	281
query86	463	287	294	287
query87	4421	4271	4300	4271
query88	3952	2372	2341	2341
query89	394	279	288	279
query90	1913	189	185	185
query91	176	141	141	141
query92	68	52	50	50
query93	2457	546	552	546
query94	969	280	264	264
query95	364	258	256	256
query96	613	279	281	279
query97	3235	3073	3070	3070
query98	214	198	185	185
query99	1668	1304	1304	1304
Total cold run time: 303945 ms
Total hot run time: 191397 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.07	0.03	0.03
query3	0.23	0.06	0.06
query4	1.65	0.10	0.10
query5	0.51	0.53	0.50
query6	1.13	0.72	0.73
query7	0.02	0.02	0.02
query8	0.04	0.03	0.03
query9	0.56	0.52	0.49
query10	0.56	0.57	0.55
query11	0.14	0.11	0.11
query12	0.15	0.11	0.11
query13	0.60	0.60	0.58
query14	3.07	2.97	2.97
query15	0.89	0.82	0.81
query16	0.38	0.38	0.39
query17	1.06	0.98	1.03
query18	0.19	0.19	0.20
query19	1.99	1.86	2.00
query20	0.01	0.00	0.00
query21	15.37	0.59	0.57
query22	3.36	3.04	1.56
query23	17.37	0.86	0.83
query24	2.81	2.01	0.95
query25	0.27	0.06	0.06
query26	0.54	0.14	0.13
query27	0.04	0.04	0.04
query28	10.02	1.10	1.07
query29	12.60	3.26	3.24
query30	0.24	0.06	0.06
query31	2.87	0.38	0.37
query32	3.30	0.46	0.46
query33	3.04	3.01	3.04
query34	16.98	4.38	4.37
query35	4.44	4.43	4.41
query36	0.67	0.48	0.47
query37	0.09	0.06	0.07
query38	0.04	0.03	0.03
query39	0.03	0.02	0.02
query40	0.15	0.13	0.12
query41	0.07	0.02	0.02
query42	0.04	0.02	0.02
query43	0.03	0.03	0.02
Total cold run time: 107.67 s
Total hot run time: 32.42 s

Copy link
Collaborator

@Hastyshell Hastyshell left a comment

Choose a reason for hiding this comment

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

LGTM

@gavinchou gavinchou merged commit 4c124b8 into apache:master Sep 24, 2024
gavinchou pushed a commit that referenced this pull request Sep 24, 2024
…sk system (#38811)

User can set file_cache_path=[{..., "storage":"memory"}] to use RAM as
file cache storage.
@gavinchou gavinchou mentioned this pull request Oct 13, 2024
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.2-merged doing reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants