Skip to content

enable debug symbols for CMAKE_BUILD_TYPE=Debug - #87

Merged
alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
yurial:yurial-more-debug
Aug 25, 2016
Merged

alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
yurial:yurial-more-debug

Conversation

@yurial

@yurial yurial commented Aug 25, 2016

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread CMakeLists.txt
SET(CMAKE_C_FLAGS "${COMMON_WARNING_FLAGS} ${MACHINE_FLAGS} ${GLIBC_COMPATIBILITY_COMPILE_FLAGS} ${CXX11_ABI}")
SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG ${CXX11_ABI}")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g ${CXX11_ABI}")
SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -fimot-frame-pointer")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

imot?

@alexey-milovidov
alexey-milovidov merged commit 9864acb into ClickHouse:master Aug 25, 2016
Comment thread dbms/CMakeLists.txt
src/Dictionaries/ComplexKeyHashedDictionary.cpp
src/Dictionaries/ComplexKeyCacheDictionary.cpp
PROPERTIES COMPILE_FLAGS -g0)
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CMAKE_BUILD_TYPE can be not only Debug, but debug or DeBuG ...

@kpp

kpp commented Aug 25, 2016

Copy link
Copy Markdown

@alexey-milovidov какой ты шустрый, однако

@alexey-milovidov

Copy link
Copy Markdown
Member

Не заметил твои комментарии.

@yurial
yurial deleted the yurial-more-debug branch April 19, 2017 13:54
qoega pushed a commit that referenced this pull request Apr 9, 2020
* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* "docs(system.settings): Table 'system.settings' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries' has been edited"

* "docs(system.dictionaries): Table 'system.dictionaries has been edited"

Co-authored-by: elenbaskakova <[email protected]>
Co-authored-by: BayoNet <[email protected]>
fuwhu pushed a commit to fuwhu/ClickHouse that referenced this pull request Feb 12, 2026
fuwhu pushed a commit to fuwhu/ClickHouse that referenced this pull request Feb 12, 2026
[ClickHouse#87] fix the mutation bug of mapv2

See merge request datacenter/clickhouse!362
middas-0706 pushed a commit to middas-0706/ClickHouse that referenced this pull request Oct 3, 2026
Since ClickHouse#122458 the first query of the test (#0-ClickHouse#7, one per format) is
SELECT * ... LIMIT 100000 with input_format_parallel_parsing = 0, so the
text formats are parsed in one thread. On ARM the speed of that parse is
fixed per server process: the 7 runs of one server agree within 1-2%,
while different servers take 0.26-0.55 s for ClickHouse#2 (JSONEachRow). In the
failing job on ClickHouse#101022 (+54.9%, 0.338 -> 0.524 s) the confirmation
restart drew new levels for both servers (0.293 and 0.345 s), and the
slow side read the same rows and bytes with 1.58x the user CPU. ClickHouse#1 and ClickHouse#2
share the factor within a process (r = 0.86); it does not reach the
other 80 queries of the same processes, which read the same files with
parallel parsing. Why the single-threaded parse is per process on ARM is
not established.

Runs whose two servers differ by more than 15% (query_metric_runs_v1,
raw samples, since 2026-09-27):

                         arm PR   arm master   amd PR   amd master
    #0 TSVWithNames      38/200      5/33       0/48       0/42
    ClickHouse#1 CSVWithNames     111/191     19/35       0/42       0/30
    ClickHouse#2 JSONEachRow      112/199     15/31       0/34       0/32
    ClickHouse#3-ClickHouse#7 binary          1/982      0/188      0/180      0/185

The 80 parallel-parsing queries on the text formats: 0 of 7232 ARM runs.

Read the whole file with the default parallel parsing instead: without a
LIMIT the amount parsed does not depend on read-ahead (why ClickHouse#122458
disabled parallel parsing), and no text format is parsed in one thread.
Avro has no parallel parsing, so ClickHouse#3 now takes about 2.7 s on ARM
(report-only "too long"; ClickHouse#75 of this test is already 2.16 s). The text of
#0-ClickHouse#7 changes, ClickHouse#8-ClickHouse#87 are unchanged.

Local check on x86 with the official 26.10.1.1403 master build, server
pinned to 16 cores with max_parsing_threads = 16, perf.py, 7 runs: new
#0-ClickHouse#2 0.43, 0.47 and 0.96 s with 3% spread, ClickHouse#3 2.15 s, ClickHouse#4-ClickHouse#7 0.09-0.53 s;
every query reads all 2000000 rows of the file, #0-ClickHouse#2 in 7-15 threads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants