From bd926f30ddaed4ec5218cefc7a71d810ccc169e9 Mon Sep 17 00:00:00 2001 From: Alex Kristiansen Date: Mon, 11 Jan 2021 15:59:44 -0800 Subject: [PATCH 1/6] add FAQ entry for MADV settings in older versions --- libbeat/docs/shared-faq.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libbeat/docs/shared-faq.asciidoc b/libbeat/docs/shared-faq.asciidoc index d6c48b73aa97..cb6ad7552a61 100644 --- a/libbeat/docs/shared-faq.asciidoc +++ b/libbeat/docs/shared-faq.asciidoc @@ -206,3 +206,10 @@ to +{beatname_lc}-customname-*+. For more information, see {kibana-ref}/index-patterns.html[Creating an index pattern] in the {kib} docs. endif::no_dashboards[] + +[[madvdontneed-rss]] +==== High RSS memory usage due to MADV settings + +In versions of {beatname_lc} prior to 7.10.2, the go runtime defaults to `MADV_FREE` by default. +In some cases, this can lead to high RSS memory usage while the kernel waits to reclaim any pages assigned to {beatname_lc}. +On versions prior to 7.10.2, set the `GODEBUG="madvdontneed=1"` environment variable if you run into \ No newline at end of file From 52d6dbc8b603f021742e1637c84aa3a6f8f5fca4 Mon Sep 17 00:00:00 2001 From: Alex Kristiansen Date: Mon, 11 Jan 2021 16:21:10 -0800 Subject: [PATCH 2/6] add changelog --- CHANGELOG.next.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index cba42c973453..0c4884a534bf 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -229,6 +229,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix typo in config docs {pull}23185[23185] - Fix `nested` subfield handling in generated Elasticsearch templates. {issue}23178[23178] {pull}23183[23183] - Fix CPU usage metrics on VMs with dynamic CPU config {pull}23154[23154] +- Add FAQ entry for madvdontneed variable {pull}23429[23429] *Auditbeat* From f20f9859e7df6ee22c45f286586a4ff65a729840 Mon Sep 17 00:00:00 2001 From: Alex Kristiansen Date: Mon, 11 Jan 2021 16:24:47 -0800 Subject: [PATCH 3/6] finish sentence --- libbeat/docs/shared-faq.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/docs/shared-faq.asciidoc b/libbeat/docs/shared-faq.asciidoc index cb6ad7552a61..d0e96543674a 100644 --- a/libbeat/docs/shared-faq.asciidoc +++ b/libbeat/docs/shared-faq.asciidoc @@ -212,4 +212,4 @@ endif::no_dashboards[] In versions of {beatname_lc} prior to 7.10.2, the go runtime defaults to `MADV_FREE` by default. In some cases, this can lead to high RSS memory usage while the kernel waits to reclaim any pages assigned to {beatname_lc}. -On versions prior to 7.10.2, set the `GODEBUG="madvdontneed=1"` environment variable if you run into \ No newline at end of file +On versions prior to 7.10.2, set the `GODEBUG="madvdontneed=1"` environment variable if you run into RSS usage issues. \ No newline at end of file From 4caaca66b2647f5eb97e6dd6f5bfab78252651c6 Mon Sep 17 00:00:00 2001 From: Alex K <8418476+fearful-symmetry@users.noreply.github.com> Date: Fri, 15 Jan 2021 08:13:25 -0800 Subject: [PATCH 4/6] Update libbeat/docs/shared-faq.asciidoc Co-authored-by: DeDe Morton --- libbeat/docs/shared-faq.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/docs/shared-faq.asciidoc b/libbeat/docs/shared-faq.asciidoc index d0e96543674a..2886db0c20aa 100644 --- a/libbeat/docs/shared-faq.asciidoc +++ b/libbeat/docs/shared-faq.asciidoc @@ -208,8 +208,8 @@ pattern] in the {kib} docs. endif::no_dashboards[] [[madvdontneed-rss]] -==== High RSS memory usage due to MADV settings +=== High RSS memory usage due to MADV settings In versions of {beatname_lc} prior to 7.10.2, the go runtime defaults to `MADV_FREE` by default. In some cases, this can lead to high RSS memory usage while the kernel waits to reclaim any pages assigned to {beatname_lc}. -On versions prior to 7.10.2, set the `GODEBUG="madvdontneed=1"` environment variable if you run into RSS usage issues. \ No newline at end of file +On versions prior to 7.10.2, set the `GODEBUG="madvdontneed=1"` environment variable if you run into RSS usage issues. From ca02019a09fda2331a4e20f452d1a342540ff3e6 Mon Sep 17 00:00:00 2001 From: Alex K <8418476+fearful-symmetry@users.noreply.github.com> Date: Fri, 15 Jan 2021 08:13:32 -0800 Subject: [PATCH 5/6] Update libbeat/docs/shared-faq.asciidoc Co-authored-by: DeDe Morton --- libbeat/docs/shared-faq.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/docs/shared-faq.asciidoc b/libbeat/docs/shared-faq.asciidoc index 2886db0c20aa..9ef382d171cf 100644 --- a/libbeat/docs/shared-faq.asciidoc +++ b/libbeat/docs/shared-faq.asciidoc @@ -210,6 +210,6 @@ endif::no_dashboards[] [[madvdontneed-rss]] === High RSS memory usage due to MADV settings -In versions of {beatname_lc} prior to 7.10.2, the go runtime defaults to `MADV_FREE` by default. +In versions of {beatname_uc} prior to 7.10.2, the go runtime defaults to `MADV_FREE` by default. In some cases, this can lead to high RSS memory usage while the kernel waits to reclaim any pages assigned to {beatname_lc}. On versions prior to 7.10.2, set the `GODEBUG="madvdontneed=1"` environment variable if you run into RSS usage issues. From 0c86801f918fb7a28102409d515df0209a6eeb9a Mon Sep 17 00:00:00 2001 From: Alex K <8418476+fearful-symmetry@users.noreply.github.com> Date: Fri, 15 Jan 2021 08:13:41 -0800 Subject: [PATCH 6/6] Update libbeat/docs/shared-faq.asciidoc Co-authored-by: DeDe Morton --- libbeat/docs/shared-faq.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/docs/shared-faq.asciidoc b/libbeat/docs/shared-faq.asciidoc index 9ef382d171cf..a3508a8d57bb 100644 --- a/libbeat/docs/shared-faq.asciidoc +++ b/libbeat/docs/shared-faq.asciidoc @@ -211,5 +211,5 @@ endif::no_dashboards[] === High RSS memory usage due to MADV settings In versions of {beatname_uc} prior to 7.10.2, the go runtime defaults to `MADV_FREE` by default. -In some cases, this can lead to high RSS memory usage while the kernel waits to reclaim any pages assigned to {beatname_lc}. +In some cases, this can lead to high RSS memory usage while the kernel waits to reclaim any pages assigned to {beatname_uc}. On versions prior to 7.10.2, set the `GODEBUG="madvdontneed=1"` environment variable if you run into RSS usage issues.