Skip to content

Commit

Permalink
Merge remote-tracking branch 'rschu1ze/master' into comp_expr_cache_s…
Browse files Browse the repository at this point in the history
…ettings
  • Loading branch information
rschu1ze committed Jun 23, 2024
2 parents 4e1a68f + a9bdce0 commit 2015622
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 134 deletions.
2 changes: 1 addition & 1 deletion contrib/re2
Submodule re2 updated 96 files
+7 −6 .bazelrc
+23 −18 .github/bazel.sh
+6 −7 .github/cmake.sh
+17 −3 .github/workflows/ci-bazel.yml
+18 −70 .github/workflows/ci-cmake.yml
+15 −28 .github/workflows/ci.yml
+41 −0 .github/workflows/pages.yml
+10 −2 .github/workflows/pr.yml
+101 −52 .github/workflows/python.yml
+39 −0 .github/workflows/release.yml
+1 −0 .gitignore
+0 −13 AUTHORS
+209 −51 BUILD.bazel
+6 −1 CMakeLists.txt
+0 −41 CONTRIBUTORS
+14 −12 MODULE.bazel
+28 −23 Makefile
+1 −1 README
+5 −1 app/BUILD.bazel
+21 −33 app/build.sh
+6 −6 doc/mksyntaxgo
+38 −2 python/BUILD.bazel
+16 −2 python/_re2.cc
+3 −2 python/re2.py
+7 −0 python/re2_test.py
+31 −7 python/setup.py
+98 −0 python/toolchains/generate.py
+4 −4 re2/bitmap256.cc
+11 −9 re2/bitmap256.h
+9 −6 re2/bitstate.cc
+14 −11 re2/compile.cc
+30 −24 re2/dfa.cc
+10 −6 re2/filtered_re2.cc
+0 −219 re2/fuzzing/compiler-rt/LICENSE
+0 −397 re2/fuzzing/compiler-rt/include/fuzzer/FuzzedDataProvider.h
+3 −1 re2/fuzzing/re2_fuzzer.cc
+3 −3 re2/mimics_pcre.cc
+21 −17 re2/nfa.cc
+17 −15 re2/onepass.cc
+87 −35 re2/parse.cc
+15 −13 re2/prefilter.cc
+3 −2 re2/prefilter.h
+22 −20 re2/prefilter_tree.cc
+5 −4 re2/prefilter_tree.h
+39 −31 re2/prog.cc
+42 −16 re2/prog.h
+62 −57 re2/re2.cc
+36 −31 re2/re2.h
+13 −11 re2/regexp.cc
+40 −11 re2/regexp.h
+15 −10 re2/set.cc
+13 −9 re2/simplify.cc
+9 −7 re2/sparse_array.h
+9 −7 re2/sparse_set.h
+8 −6 re2/testing/backtrack.cc
+1 −1 re2/testing/charclass_test.cc
+10 −7 re2/testing/compile_test.cc
+15 −12 re2/testing/dfa_test.cc
+19 −10 re2/testing/dump.cc
+1 −0 re2/testing/exhaustive1_test.cc
+2 −2 re2/testing/exhaustive2_test.cc
+3 −3 re2/testing/exhaustive3_test.cc
+0 −1 re2/testing/exhaustive_test.cc
+14 −5 re2/testing/exhaustive_tester.cc
+1 −0 re2/testing/exhaustive_tester.h
+31 −30 re2/testing/filtered_re2_test.cc
+2 −1 re2/testing/mimics_pcre_test.cc
+2 −3 re2/testing/null_walker.cc
+61 −3 re2/testing/parse_test.cc
+9 −6 re2/testing/possible_match_test.cc
+1 −1 re2/testing/random_test.cc
+4 −5 re2/testing/re2_arg_test.cc
+48 −18 re2/testing/re2_test.cc
+189 −153 re2/testing/regexp_benchmark.cc
+11 −7 re2/testing/regexp_generator.cc
+1 −0 re2/testing/regexp_generator.h
+6 −5 re2/testing/regexp_test.cc
+2 −1 re2/testing/required_prefix_test.cc
+6 −3 re2/testing/search_test.cc
+28 −28 re2/testing/set_test.cc
+2 −3 re2/testing/simplify_test.cc
+11 −8 re2/testing/string_generator.cc
+1 −0 re2/testing/string_generator.h
+7 −3 re2/testing/string_generator_test.cc
+46 −40 re2/testing/tester.cc
+1 −1 re2/testing/tester.h
+5 −4 re2/tostring.cc
+1 −20 re2/unicode.py
+12 −4 re2/unicode_casefold.cc
+15 −10 re2/unicode_groups.cc
+4 −3 re2/walker-inl.h
+0 −2 re2Config.cmake.in
+0 −21 util/fuzz.cc
+0 −109 util/logging.h
+4 −3 util/pcre.cc
+16 −16 util/pcre.h
12 changes: 8 additions & 4 deletions contrib/re2-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,20 @@ set(RE2_SOURCES
add_library(_re2 ${RE2_SOURCES})
target_include_directories(_re2 PUBLIC "${SRC_DIR}")
target_link_libraries(_re2 PRIVATE
absl::absl_check
absl::absl_log
absl::base
absl::core_headers
absl::fixed_array
absl::flags
absl::flat_hash_map
absl::flat_hash_set
absl::hash
absl::inlined_vector
absl::strings
absl::str_format
absl::synchronization
absl::optional
absl::span)
absl::span
absl::str_format
absl::strings
absl::synchronization)

add_library(ch_contrib::re2 ALIAS _re2)
2 changes: 1 addition & 1 deletion src/Common/ICachePolicy.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ICachePolicy

/// HashFunction usually hashes the entire key and the found key will be equal the provided key. In such cases, use get(). It is also
/// possible to store other, non-hashed data in the key. In that case, the found key is potentially different from the provided key.
/// Then use getWithKey() to also return the found key including it's non-hashed data.
/// Then use getWithKey() to also return the found key including its non-hashed data.
virtual MappedPtr get(const Key & key) = 0;
virtual std::optional<KeyMapped> getWithKey(const Key &) = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/Core/ServerSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace DB
M(Double, index_mark_cache_size_ratio, DEFAULT_INDEX_MARK_CACHE_SIZE_RATIO, "The size of the protected queue in the secondary index mark cache relative to the cache's total size.", 0) \
M(UInt64, page_cache_chunk_size, 2 << 20, "Bytes per chunk in userspace page cache. Rounded up to a multiple of page size (typically 4 KiB) or huge page size (typically 2 MiB, only if page_cache_use_thp is enabled).", 0) \
M(UInt64, page_cache_mmap_size, 1 << 30, "Bytes per memory mapping in userspace page cache. Not important.", 0) \
M(UInt64, page_cache_size, 10ul << 30, "Amount of virtual memory to map for userspace page cache. If page_cache_use_madv_free is enabled, it's recommended to set this higher than the machine's RAM size. Use 0 to disable userspace page cache.", 0) \
M(UInt64, page_cache_size, 0, "Amount of virtual memory to map for userspace page cache. If page_cache_use_madv_free is enabled, it's recommended to set this higher than the machine's RAM size. Use 0 to disable userspace page cache.", 0) \
M(Bool, page_cache_use_madv_free, DBMS_DEFAULT_PAGE_CACHE_USE_MADV_FREE, "If true, the userspace page cache will allow the OS to automatically reclaim memory from the cache on memory pressure (using MADV_FREE).", 0) \
M(Bool, page_cache_use_transparent_huge_pages, true, "Userspace will attempt to use transparent huge pages on Linux. This is best-effort.", 0) \
M(UInt64, mmap_cache_size, DEFAULT_MMAP_CACHE_MAX_SIZE, "A cache for mmapped files.", 0) \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@
</policies>
</storage_configuration>

<page_cache_size>10000000000</page_cache_size>

<query_log></query_log>
</clickhouse>
21 changes: 0 additions & 21 deletions tests/queries/0_stateless/02867_page_cache.reference

This file was deleted.

106 changes: 0 additions & 106 deletions tests/queries/0_stateless/02867_page_cache.sql

This file was deleted.

0 comments on commit 2015622

Please sign in to comment.