-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document that Transparent Huge Pages should be disabled on Linux #26551
Comments
I talked to a user and they still experienced the above kernel bug after disabling THP, a lot less frequent though. |
As I mentioned in another channel, we should make the THP recommendation independent of any kernel bugs that may or may not be present. As far as NUMA, our recommendations here require gathering more data and running some experiments. I don’t think we should base our recommendations on the basis of one data point (that might be fixed in different kernel versions). |
Pinging @elastic/es-core-infra |
One additional data point here, me and @danielmitterdorfer are working on a) evaluating the stability and b) performance behavior of Elasticsearch with and without THP. To be more exact, tuning involves not only testing THP enabled/false but also the So far in our nightly benchmarking environment we have discovered that disabling THP (which in newer kernels is usually done by setting Additionally, more recent versions of the Ubuntu kernel (starting with 4.12.2) are now setting THP to We will be providing more details when the necessary longrunning benchmarks have finished, backed by enough CI runs plus sufficient benchmarking data for a THP suggestion. |
MongoDB recommends against THP in the following document, so the same logic might apply to Elasticsearch if our access patterns are similar: https://docs.mongodb.com/manual/tutorial/transparent-huge-pages/ |
@dliappis did you get the chance to test more / dig deeper on this? |
@pmoust unfortunately the deep dive work has been paused due to other activities. However, since my last comment some things haven't been documented so I'll summarize:
|
I wouldn't expect stability issues with |
[docs issue triage] |
Pinging @elastic/es-perf (Team:Performance) |
@dliappis |
This issue hasn’t been updated in 3+ years so I’m closing it. We can revisit if needed. |
I'd like us to have a look again into this @tomcallahan @dliappis, if you agree. |
This issue hasn't been updated in almost 1yr, can we close this? |
Give the previous statement about CA. 7% performance degradation under certain circumstances I would assume it would be beneficial to get an officially recommendation on this topic an add the same.to the official documentation. |
Pinging @elastic/es-docs (Team:Docs) |
Will the recent enhancements to Lucene 9.11.0 around https://lucene.apache.org/core/9_11_0/changes/Changes.html#v9.11.0.new_features |
There seems to be a Kernel issue https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1644056 that causes a Kernel crash during high load.
Also reported in discuss: https://discuss.elastic.co/t/elasticsearch-5-4-2-process-periodically-dying-with-high-cpu-load-and-kernel-message-pgtable-generic-c-33-bad-pmd/92239
It seems like this can be worked around by disabling THP on linux, e.g.
echo -n never > /sys/kernel/mm/transparent_hugepage/enabled
.I had a chat with @jasontedor and we should recommend to disable THP in general, not just with the effected Kernel versions.
Seems like this is enabled by default on at least Ubuntu 14/16.04 and RHEL 6/7.
I think Important System Configuration would be a good place for this.
The text was updated successfully, but these errors were encountered: