执行insert into target select * from source; 从内表写入到iceberg只设置了并行度1
看上去主要被arrow占用了
内存dump
digraph "/opt/starrocks/be/lib/starrocks_be; 67617.0 MB" {
node [width=0.375,height=0.25];
Legend [shape=box,fontsize=24,shape=plaintext,label="/opt/starrocks/be/lib/starrocks_be\lTotal MB: 67617.0\lFocusing on: 67617.0\lDropped nodes with <= 338.1 abs(MB)\lDropped edges with <= 67.6 MB\l"];
N1 [label="__clone@@GLIBC_2.2.5\n0.0 (0.0%)\rof 67616.5 (100.0%)\r",shape=box,fontsize=8.0];
N2 [label="pthread_condattr_setpshared@GLIBC_2.2.5\n0.0 (0.0%)\rof 67616.5 (100.0%)\r",shape=box,fontsize=8.0];
N3 [label="starrocks\nThread\nsupervise_thread\n0.0 (0.0%)\rof 67561.3 (99.9%)\r",shape=box,fontsize=8.0];
N4 [label="starrocks\nThreadPool\ndispatch_thread\n0.0 (0.0%)\rof 67561.3 (99.9%)\r",shape=box,fontsize=8.0];
N5 [label="starrocks\npipeline\nGlobalDriverExecutor\n_worker_thread\n0.0 (0.0%)\rof 66121.8 (97.8%)\r",shape=box,fontsize=8.0];
N6 [label="starrocks\npipeline\nPipelineDriver\nprocess\n0.0 (0.0%)\rof 66121.8 (97.8%)\r",shape=box,fontsize=8.0];
N7 [label="starrocks\nconnector\nConnectorChunkSink\nadd\n0.0 (0.0%)\rof 66038.5 (97.7%)\r",shape=box,fontsize=8.0];
N8 [label="starrocks\npipeline\nConnectorSinkOperator\npush_chunk\n0.0 (0.0%)\rof 66038.5 (97.7%)\r",shape=box,fontsize=8.0];
N9 [label="starrocks\nformats\nParquetFileWriter\nwrite\n0.0 (0.0%)\rof 65702.2 (97.2%)\r",shape=box,fontsize=8.0];
N10 [label="posix_memalign\n57376.5 (84.9%)\r",shape=box,fontsize=54.1];
N11 [label="starrocks\nArrowMemoryPool\nAllocate\n0.0 (0.0%)\rof 57376.5 (84.9%)\r",shape=box,fontsize=8.0];
N12 [label="starrocks\nparquet\nChunkWriter\nwrite\n0.0 (0.0%)\rof 56337.9 (83.3%)\r",shape=box,fontsize=8.0];
N13 [label="starrocks\nparquet\nLevelBuilder\n_write_column_chunk\n0.0 (0.0%)\rof 56337.9 (83.3%)\r",shape=box,fontsize=8.0];
N14 [label="starrocks\nparquet\nLevelBuilder\nwrite\n0.0 (0.0%)\rof 56337.9 (83.3%)\r",shape=box,fontsize=8.0];
N15 [label="std\n_Function_handler\n_M_invoke@78761b0\n0.0 (0.0%)\rof 56337.9 (83.3%)\r",shape=box,fontsize=8.0];
N16 [label="arrow\nPoolBuffer\nReserve\n0.0 (0.0%)\rof 56092.4 (83.0%)\r",shape=box,fontsize=8.0];
N17 [label="arrow\nPoolBuffer\nResize\n0.0 (0.0%)\rof 56092.4 (83.0%)\r",shape=box,fontsize=8.0];
N18 [label="parquet\nTypedColumnWriterImpl\nWriteBatch\n0.0 (0.0%)\rof 55787.3 (82.5%)\r",shape=box,fontsize=8.0];
N19 [label="parquet\nTypedColumnWriterImpl\nWriteBatch\n{lambda#1}\noperator\n0.0 (0.0%)\rof 55787.3 (82.5%)\r",shape=box,fontsize=8.0];
N20 [label="starrocks\nArrowMemoryPool\nReallocate\n0.0 (0.0%)\rof 51795.2 (76.6%)\r",shape=box,fontsize=8.0];
N21 [label="parquet\nColumnWriterImpl\nAddDataPage\n[clone\n.localalias]\n0.0 (0.0%)\rof 43615.1 (64.5%)\r",shape=box,fontsize=8.0];
N22 [label="parquet\nColumnWriterImpl\nBuildDataPageV1\n[clone\n.localalias]\n0.0 (0.0%)\rof 43614.1 (64.5%)\r",shape=box,fontsize=8.0];
N23 [label="arrow\nio\nBufferOutputStream\nReserve\n[clone\n.localalias]\n0.0 (0.0%)\rof 39793.5 (58.9%)\r",shape=box,fontsize=8.0];
N24 [label="arrow\nio\nBufferOutputStream\nWrite\n[clone\n.localalias]\n0.0 (0.0%)\rof 39793.5 (58.9%)\r",shape=box,fontsize=8.0];
N25 [label="parquet\nSerializedPageWriter\nWriteDataPage\n0.0 (0.0%)\rof 33678.5 (49.8%)\r",shape=box,fontsize=8.0];
N26 [label="parquet\nColumnWriterImpl\nClose\n[clone\n.localalias]\n0.0 (0.0%)\rof 7826.0 (11.6%)\r",shape=box,fontsize=8.0];
N27 [label="parquet\nRowGroupWriter\nClose\n0.0 (0.0%)\rof 7826.0 (11.6%)\r",shape=box,fontsize=8.0];
N28 [label="starrocks\nformats\nParquetFileWriter\n_flush_row_group\n0.0 (0.0%)\rof 7826.0 (11.6%)\r",shape=box,fontsize=8.0];
N29 [label="parquet\nBufferedPageWriter\nClose\n0.0 (0.0%)\rof 7808.0 (11.5%)\r",shape=box,fontsize=8.0];
N30 [label="starrocks\nio\nAsyncFlushOutputStream\nwrite\n0.0 (0.0%)\rof 7803.0 (11.5%)\r",shape=box,fontsize=8.0];
N31 [label="starrocks\nparquet\nAsyncParquetOutputStream\nWrite@786e860\n0.0 (0.0%)\rof 7803.0 (11.5%)\r",shape=box,fontsize=8.0];
N32 [label="starrocks\nparquet\nAsyncParquetOutputStream\nWrite@786eee0\n0.0 (0.0%)\rof 7803.0 (11.5%)\r",shape=box,fontsize=8.0];
N33 [label="std\nvector\n_M_default_append@53ed810\n7803.0 (11.5%)\r",shape=box,fontsize=25.0];
N34 [label="parquet\nSerializedPageWriter\nWriteDictionaryPage\n0.0 (0.0%)\rof 6137.5 (9.1%)\r",shape=box,fontsize=8.0];
N35 [label="parquet\nTypedColumnWriterImpl\nWriteDictionaryPage\n0.0 (0.0%)\rof 6137.5 (9.1%)\r",shape=box,fontsize=8.0];
N36 [label="parquet\n\nDictEncoderImpl\nPutByteArray\n0.0 (0.0%)\rof 5671.6 (8.4%)\r",shape=box,fontsize=8.0];
N37 [label="arrow\nBufferBuilder\nResize\n6.5 (0.0%)\rof 5520.3 (8.2%)\r",shape=box,fontsize=8.5];
N38 [label="parquet\n\nDictEncoderImpl\nPut\n0.0 (0.0%)\rof 5254.4 (7.8%)\r",shape=box,fontsize=8.0];
N39 [label="arrow\nAllocateResizableBuffer\n[clone\n.localalias]\n0.0 (0.0%)\rof 4417.7 (6.5%)\r",shape=box,fontsize=8.0];
N40 [label="arrow\ninternal\nHashTable\nUpsize\n0.0 (0.0%)\rof 3192.4 (4.7%)\r",shape=box,fontsize=8.0];
N41 [label="parquet\nFileSerializer\nAppendRowGroup\n0.0 (0.0%)\rof 1532.3 (2.3%)\r",shape=box,fontsize=8.0];
N42 [label="starrocks\npipeline\nChunkSource\nbuffer_next_batch_chunks_blocking\n0.0 (0.0%)\rof 1437.6 (2.1%)\r",shape=box,fontsize=8.0];
N43 [label="starrocks\npipeline\nOlapChunkSource\n_read_chunk\n0.0 (0.0%)\rof 1437.6 (2.1%)\r",shape=box,fontsize=8.0];
N44 [label="starrocks\npipeline\nScanOperator\n_trigger_next_scan\n{lambda#1}\noperator\n[clone\n.constprop.0]\n0.0 (0.0%)\rof 1437.6 (2.1%)\r",shape=box,fontsize=8.0];
N45 [label="starrocks\nworkgroup\nScanExecutor\nworker_thread\n0.0 (0.0%)\rof 1437.6 (2.1%)\r",shape=box,fontsize=8.0];
N46 [label="parquet\nRowGroupSerializer\nCreateColumnWriterForColumn\n0.0 (0.0%)\rof 1436.2 (2.1%)\r",shape=box,fontsize=8.0];
N47 [label="starrocks\nSegmentIterator\ndo_get_next\n0.0 (0.0%)\rof 1370.5 (2.0%)\r",shape=box,fontsize=8.0];
N48 [label="starrocks\nSegmentIteratorWrapper\ndo_get_next\n0.0 (0.0%)\rof 1370.5 (2.0%)\r",shape=box,fontsize=8.0];
N49 [label="starrocks\nTabletReader\ndo_get_next\n0.0 (0.0%)\rof 1370.5 (2.0%)\r",shape=box,fontsize=8.0];
N50 [label="starrocks\nTimedChunkIterator\ndo_get_next\n0.0 (0.0%)\rof 1370.5 (2.0%)\r",shape=box,fontsize=8.0];
N51 [label="starrocks\npipeline\nOlapChunkSource\n_read_chunk_from_storage\n0.0 (0.0%)\rof 1370.5 (2.0%)\r",shape=box,fontsize=8.0];
N52 [label="starrocks\nParsedPageV2\nread\n0.0 (0.0%)\rof 1336.5 (2.0%)\r",shape=box,fontsize=8.0];
N53 [label="starrocks\nScalarColumnIterator\nnext_batch\n0.0 (0.0%)\rof 1336.5 (2.0%)\r",shape=box,fontsize=8.0];
N54 [label="starrocks\nSegmentIterator\n_do_get_next\n[clone\n.constprop.0]\n0.0 (0.0%)\rof 1336.5 (2.0%)\r",shape=box,fontsize=8.0];
N55 [label="std\nvector\n_M_realloc_insert@b1e4f00\n0.0 (0.0%)\rof 1284.0 (1.9%)\r",shape=box,fontsize=8.0];
N56 [label="parquet\nColumnWriter\nMake\n26.0 (0.0%)\rof 1197.1 (1.8%)\r",shape=box,fontsize=9.0];
N57 [label="arrow\nBaseBinaryBuilder\nAppend\n0.0 (0.0%)\rof 1195.2 (1.8%)\r",shape=box,fontsize=8.0];
N58 [label="parquet\nTypedColumnWriterImpl\nTypedColumnWriterImpl@b24aa40\n0.0 (0.0%)\rof 1156.8 (1.7%)\r",shape=box,fontsize=8.0];
N59 [label="parquet\nMakeEncoder\n21.5 (0.0%)\rof 1053.6 (1.6%)\r",shape=box,fontsize=8.9];
N60 [label="arrow\ninternal\nBinaryMemoTable\nBinaryMemoTable\n0.0 (0.0%)\rof 1018.3 (1.5%)\r",shape=box,fontsize=8.0];
N61 [label="std\nvector\n_M_default_append@54159b0\n986.9 (1.5%)\r",shape=box,fontsize=14.0];
N62 [label="starrocks\nBinaryPlainPageDecoder\nappend_range\n0.0 (0.0%)\rof 930.6 (1.4%)\r",shape=box,fontsize=8.0];
N63 [label="starrocks\nBinaryPlainPageDecoder\nnext_batch@6649460\n0.0 (0.0%)\rof 930.6 (1.4%)\r",shape=box,fontsize=8.0];
N64 [label="parquet\nColumnWriterImpl\nWriteDefinitionLevels\n0.0 (0.0%)\rof 744.0 (1.1%)\r",shape=box,fontsize=8.0];
N65 [label="starrocks\nparquet\nColumnChunkWriter\nwrite\n0.0 (0.0%)\rof 550.6 (0.8%)\r",shape=box,fontsize=8.0];
N66 [label="parquet\nTypedColumnWriterImpl\nWriteBatchSpaced\n{lambda#1}\noperator@b24c000\n0.0 (0.0%)\rof 540.4 (0.8%)\r",shape=box,fontsize=8.0];
N67 [label="parquet\nTypedColumnWriterImpl\nWriteBatchSpaced@b24c3b0\n0.0 (0.0%)\rof 540.4 (0.8%)\r",shape=box,fontsize=8.0];
N68 [label="parquet\n\nDictEncoderImpl\nPutSpaced\n0.0 (0.0%)\rof 417.2 (0.6%)\r",shape=box,fontsize=8.0];
N69 [label="starrocks\nBinaryPlainPageDecoder\nnext_batch@664a040\n0.0 (0.0%)\rof 345.5 (0.5%)\r",shape=box,fontsize=8.0];
N70 [label="starrocks\nNullableColumn\nappend_continuous_strings\n0.0 (0.0%)\rof 345.5 (0.5%)\r",shape=box,fontsize=8.0];
N71 [label="starrocks\nObjectColumn\nappend_strings\n0.0 (0.0%)\rof 345.5 (0.5%)\r",shape=box,fontsize=8.0];
N72 [label="std\n__cxx11\nbasic_string\n_M_mutate\n342.1 (0.5%)\r",shape=box,fontsize=11.6];
N73 [label="std\n__cxx11\nbasic_string\n_M_replace\n0.0 (0.0%)\rof 342.1 (0.5%)\r",shape=box,fontsize=8.0];
N1 -> N2 [label=67616.5, weight=100000, style="setlinewidth(2.000000)"];
N3 -> N4 [label=67561.3, weight=100000, style="setlinewidth(2.000000)"];
N2 -> N3 [label=67561.3, weight=100000, style="setlinewidth(2.000000)"];
N5 -> N6 [label=66121.8, weight=100000, style="setlinewidth(2.000000)"];
N4 -> N5 [label=66121.8, weight=100000, style="setlinewidth(2.000000)"];
N6 -> N8 [label=66038.5, weight=100000, style="setlinewidth(2.000000)"];
N8 -> N7 [label=66038.5, weight=100000, style="setlinewidth(2.000000)"];
N7 -> N9 [label=65702.2, weight=100000, style="setlinewidth(2.000000)"];
N11 -> N10 [label=57376.5, weight=100000, style="setlinewidth(2.000000)"];
N14 -> N13 [label=56337.9, weight=100000, style="setlinewidth(2.000000)"];
N9 -> N12 [label=56337.9, weight=100000, style="setlinewidth(2.000000)"];
N13 -> N15 [label=56337.9, weight=100000, style="setlinewidth(2.000000)"];
N12 -> N14 [label=56337.9, weight=100000, style="setlinewidth(2.000000)"];
N17 -> N16 [label=56092.4, weight=100000, style="setlinewidth(2.000000)"];
N18 -> N19 [label=55787.3, weight=100000, style="setlinewidth(2.000000)"];
N15 -> N18 [label=55787.3, weight=100000, style="setlinewidth(2.000000)"];
N20 -> N11 [label=51795.2, weight=100000, style="setlinewidth(2.000000)"];
N16 -> N20 [label=51795.2, weight=100000, style="setlinewidth(2.000000)"];
N21 -> N22 [label=43614.1, weight=100000, style="setlinewidth(2.000000)"];
N19 -> N21 [label=43593.9, weight=100000, style="setlinewidth(2.000000)"];
N24 -> N23 [label=39793.5, weight=100000, style="setlinewidth(2.000000)"];
N23 -> N17 [label=39793.5, weight=100000, style="setlinewidth(2.000000)"];
N25 -> N24 [label=33656.0, weight=100000, style="setlinewidth(2.000000)"];
N22 -> N25 [label=33626.5, weight=100000, style="setlinewidth(2.000000)"];
N22 -> N17 [label=9964.8, weight=100000, style="setlinewidth(0.884230)"];
N9 -> N28 [label=7826.0, weight=100000, style="setlinewidth(0.694442)"];
N27 -> N26 [label=7826.0, weight=100000, style="setlinewidth(0.694442)"];
N28 -> N27 [label=7826.0, weight=100000, style="setlinewidth(0.694442)"];
N26 -> N29 [label=7808.0, weight=100000, style="setlinewidth(0.692845)"];
N30 -> N33 [label=7803.0, weight=100000, style="setlinewidth(0.692401)"];
N32 -> N31 [label=7803.0, weight=100000, style="setlinewidth(0.692401)"];
N31 -> N30 [label=7803.0, weight=100000];
N29 -> N32 [label=7803.0, weight=100000];
N19 -> N35 [label=6137.5, weight=100000];
N34 -> N24 [label=6137.5, weight=100000];
N35 -> N34 [label=6137.5, weight=100000];
N19 -> N38 [label=5254.4, weight=100000];
N38 -> N36 [label=5254.4, weight=100000];
N39 -> N17 [label=4297.2, weight=100000];
N16 -> N11 [label=4297.2, weight=100000];
N37 -> N39 [label=4218.5, weight=100000];
N36 -> N40 [label=3192.4, weight=100000];
N40 -> N37 [label=3192.4, weight=100000];
N9 -> N41 [label=1532.3, weight=100000];
N44 -> N42 [label=1437.6, weight=100000];
N4 -> N45 [label=1437.6, weight=100000];
N45 -> N44 [label=1437.6, weight=100000];
N42 -> N43 [label=1437.6, weight=100000];
N41 -> N46 [label=1436.2, weight=100000];
N50 -> N48 [label=1370.5, weight=100000];
N51 -> N49 [label=1370.5, weight=100000];
N48 -> N47 [label=1370.5, weight=100000];
N43 -> N51 [label=1370.5, weight=100000];
N49 -> N50 [label=1370.0, weight=100000];
N53 -> N52 [label=1336.5, weight=100000];
N47 -> N54 [label=1336.5, weight=100000];
N54 -> N53 [label=1336.5, weight=100000];
N37 -> N17 [label=1295.3, weight=100000];
N55 -> N11 [label=1284.0, weight=100000];
N36 -> N55 [label=1284.0, weight=100000];
N46 -> N56 [label=1197.1, weight=100000];
N36 -> N57 [label=1195.2, weight=100000];
N56 -> N58 [label=1156.8, weight=100000];
N58 -> N59 [label=1039.8, weight=100000];
N59 -> N60 [label=1018.3, weight=100000];
N60 -> N37 [label=1005.3, weight=100000];
N62 -> N61 [label=930.6, weight=100000];
N63 -> N62 [label=930.6, weight=100000];
N52 -> N63 [label=930.6, weight=100000];
N57 -> N37 [label=904.6, weight=100000];
N64 -> N17 [label=687.8, weight=100000];
N19 -> N64 [label=610.6, weight=100000];
N15 -> N65 [label=550.6, weight=100000];
N67 -> N66 [label=540.4, weight=100000];
N65 -> N67 [label=540.4, weight=100000];
N68 -> N36 [label=417.2, weight=100000];
N66 -> N68 [label=417.2, weight=100000];
N52 -> N69 [label=345.5, weight=100000];
N69 -> N70 [label=345.5, weight=100000];
N70 -> N71 [label=345.5, weight=100000];
N73 -> N72 [label=342.1, weight=100000];
N71 -> N73 [label=342.1, weight=100000];
N66 -> N64 [label=123.2, weight=100000];
}