ClickHouse/docker
Azat Khuzhin 6fba6f7ddd Disable min_bytes_to_use_mmap_io by default
Reading files using mmap() does not have any significant benefits over
plain read() [1].

  [1]: https://gist.github.com/azat/3d6c8d82bdd91e7a38d997fd6bcfd574

And not only it does not have significant benefits, it also has some
issues, due to max_server_memory_usage (default to 90% of available
RAM), since when you read files with mmap() eventually process RSS may
exceed max_server_memory_usage, and in this case any allocation will
fail (with "Memory limit exceeded (total)") error (yes kernel will
unload pages, but likely it will happens after queries will starting to
fail), like in this test [2].

  [2]: https://gist.github.com/azat/4813489828162e6c2ce131963c6a1acb

TL;DR;

Note that there was also an idea to take those mmap()'ed regions in
memory tracking (#23211), but there are some drawbacks (since accounting
mmap() is tricky, first of all you need to account only once per inode
for file and plus kernel can unload some pages and those memory will not
be used by the server anymore).

And as an adddition to #23211 there was #23212, that adds
max_bytes_to_use_mmap_io, but since mmap is not a subject for memory
accounting there is no need in it.
2021-04-20 00:25:16 +03:00
..
bare Update README.md 2020-08-04 17:26:02 +03:00
builder Update build.sh 2020-12-14 02:31:35 +03:00
client Auto version update to [21.5.1.1] [54450] 2021-04-02 18:34:29 +03:00
packager remove debug 2021-04-07 23:38:48 +03:00
server Auto version update to [21.5.1.1] [54450] 2021-04-02 18:34:29 +03:00
test Disable min_bytes_to_use_mmap_io by default 2021-04-20 00:25:16 +03:00
images.json Images file update 2021-03-30 18:44:54 +03:00
README.md Move integration tests docker files to docker/ directory. Rename image -> runner. 2020-04-17 19:01:16 +03:00

ClickHouse Dockerfiles

This directory contain Dockerfiles for clickhouse-client and clickhouse-server. They are updated in each release.

Also there is bunch of images for testing and CI. They are listed in images.json file and updated on each commit to master. If you need to add another image, place information about it into images.json.