# Cannot compute used swap when total swap is 0 and free swap is 0 : Elastic Search 6.8.21

**URL:** <https://discuss.elastic.co/t/cannot-compute-used-swap-when-total-swap-is-0-and-free-swap-is-0-elastic-search-6-8-21/292225>\
**Category:** Elasticsearch\
**Created:** [December 16, 2021, 9:24pm UTC](https://discuss.elastic.co/t/cannot-compute-used-swap-when-total-swap-is-0-and-free-swap-is-0-elastic-search-6-8-21/292225 "2021-12-16T21:24:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jthegoodlife](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jthegoodlife/32/99153_2.png) [@jthegoodlife](https://discuss.elastic.co/u/jthegoodlife)\
**Post date:** [December 16, 2021, 9:24pm UTC](https://discuss.elastic.co/t/cannot-compute-used-swap-when-total-swap-is-0-and-free-swap-is-0-elastic-search-6-8-21/292225/1 "2021-12-16T21:24:51Z")

</div>

Hi All,

We have moved up into the version of Elasticsearch 6.8.21

We are getting logs of this continuously

```auto
2021-12-16T21:16:19,858][WARN][o.e.m.o.O.Swap] [BLAH] cannot compute used swap when total swap is 0 and free swap is 0

```

Is there a setting I need to enable to get rid of this WARN. It looks like from search on here I can safely ignore. But any help on getting rid of it would be great.

Many thanks for any help.

---

<div class="post-metadata">

**Author:** ![ezdeazy](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@ezdeazy](https://discuss.elastic.co/u/ezdeazy)\
**Post date:** [December 16, 2021, 11:03pm UTC](https://discuss.elastic.co/t/cannot-compute-used-swap-when-total-swap-is-0-and-free-swap-is-0-elastic-search-6-8-21/292225/2 "2021-12-16T23:03:16Z")

</div>

I am pretty much in the exact same position - we were on 6.8.12 today, but updated due to Log4J madness... now on fresh 6.8.21, cluster is green but all 3 of my data nodes are showing this same "warning".  
I am also understanding we can ignore it, in a later Github PR for elastic they change this to a 'debug' - [Change severity of negative stats messages from WARN to DEBUG by danhermann · Pull Request #60375 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/pull/60375)

replying to follow this thread, to either find out if we can do anything about this, or to report it here once i find out.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 13, 2022, 11:03pm UTC](https://discuss.elastic.co/t/cannot-compute-used-swap-when-total-swap-is-0-and-free-swap-is-0-elastic-search-6-8-21/292225/3 "2022-01-13T23:03:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
