ci: use tmpfs for temporary ClickHouse files#73097
Merged
alexey-milovidov merged 1 commit intoClickHouse:masterfrom Dec 30, 2024
Merged
ci: use tmpfs for temporary ClickHouse files#73097alexey-milovidov merged 1 commit intoClickHouse:masterfrom
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
Conversation
Member
|
This is an automated comment for commit 55ae5df with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
Member
Author
|
Can someone also verify that the |
Member
|
I have no idea, but CI uses Ubuntu, and on my machine, |
alexey-milovidov
approved these changes
Dec 29, 2024
Some tests can be flaky due to very slow disks [1]:
2024.12.08 23:41:38.215684 [ 436 ] {168c6479-53fd-4946-8475-1adc0ba4dedb} <Debug> executeQuery: (from [::1]:38036) (comment: 00110_external_sort.sql) -- { echoOn }
SELECT number FROM (SELECT number FROM system.numbers LIMIT 10000000) ORDER BY number * 1234567890123456789 LIMIT 9999990, 10 SETTINGS max_memory_usage='300Mi', max_bytes_before_external_sort='20M', min_external_sort_block_bytes='70M'; (stage: Complete)
2024.12.08 23:41:40.203353 [ 2005 ] {168c6479-53fd-4946-8475-1adc0ba4dedb} <Trace> MergeSortingTransform: Will dump sorting block to disk (66.75 MiB > 19.07 MiB)
2024.12.08 23:41:40.204872 [ 2005 ] {168c6479-53fd-4946-8475-1adc0ba4dedb} <Trace> TemporaryFileOnLocalDisk: Creating temporary file 'tmp50027017-924a-4723-83a3-221e37c78e69'
2024.12.08 23:41:40.205973 [ 2005 ] {168c6479-53fd-4946-8475-1adc0ba4dedb} <Trace> DiskLocal: Reserved 66.78 MiB on local disk `_tmp_default`, having unreserved 125.12 GiB.
2024.12.08 23:41:40.208425 [ 2005 ] {168c6479-53fd-4946-8475-1adc0ba4dedb} <Information> MergeSortingTransform: Sorting and writing part of data into temporary file disk(_tmp_default):///var/lib/clickhouse/tmp//tmp50027017-924a-4723-83a3-221e37c78e69
2024.12.08 23:43:09.177947 [ 2005 ] {168c6479-53fd-4946-8475-1adc0ba4dedb} <Information> MergeSortingTransform: Done writing part of data into temporary file disk(_tmp_default):///var/lib/clickhouse/tmp//tmp50027017-924a-4723-83a3-221e37c78e69, compressed 55.08 MiB, uncompressed 69.88 MiB
Here it takes 2 minutes to write 55 MiB
[1]: https://s3.amazonaws.com/clickhouse-test-reports/72598/90ec40e2c1c07e8627619c8d3fbf1a298560fc11/stateless_tests_flaky_check__asan_.html
Note that /tmp and /dev/shm cannot be used due to their limitations:
/tmp is not mounted in Ubuntu (and is also not mounted by Docker), while
/dev/shm has a default size limit of 64MB. However, it is beneficial to
have this option explicitly configurable for flexibility.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Member
Author
|
|
Member
Author
|
Member
Author
|
I've looked briefly thought some tests that uses external sort/aggregation, and some of them apparently became slightly faster (i.e. 00284_external_aggregation) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some tests can be flaky due to very slow disks 1:
Here it takes 2 minutes to write 55 MiB
Changelog category (leave one):