# Swap still reported even though Page file is disabled

**URL:** <https://discuss.elastic.co/t/swap-still-reported-even-though-page-file-is-disabled/102773>\
**Category:** Elasticsearch\
**Created:** [October 4, 2017, 10:48pm UTC](https://discuss.elastic.co/t/swap-still-reported-even-though-page-file-is-disabled/102773 "2017-10-04T22:48:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jthoni](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jthoni](https://discuss.elastic.co/u/jthoni)\
**Post date:** [October 4, 2017, 10:48pm UTC](https://discuss.elastic.co/t/swap-still-reported-even-though-page-file-is-disabled/102773/1 "2017-10-04T22:48:02Z")

</div>

I originally asked this question a while back:

> [@Can't avoid swapping on Windows cluster](https://discuss.elastic.co/t/cant-avoid-swapping-on-windows-cluster/72414):
>
> We have a cluster that has three indexes (one main, and two supporting) with 5 shards and one replica. I am using 7 Windows nodes, each of which have 8 cores and 56gb RAM. I have set the heap to use 28gb. I have disabled the paging file in the OS and set mlock to true. No matter what I have tried, I am still seeing swap being used. ElasticHQ is reporting between 19 - 32 mb swap being used on the nodes. We have found that we have far exceeded the recommended shard size of 30 - 50gb. Our sh…

I was never able to get around it. I just set up a new cluster with significantly more resources in the hopes of improving our perf. I still find that there is a ton of swapping going on.

I am on Windows (so I can't use Linux methods for preventing swapping). I have completely disabled paging and rebooted. After going this, I get:

```
PS C:\Windows\system32> Get-Counter -Counter "\Paging File(*)\% Usage"
Get-Counter : The specified instance is not present.
PS C:\Windows\system32> (gwmi Win32_ComputerSystem).AutomaticManagedPagefile
False
gwmi win32_pagefilesetting

```

Windows is showing that there is no swap, but I still see:

```
        "swap": {
           "total_in_bytes": 60129071104,
           "free_in_bytes": 26670817280,
           "used_in_bytes": 33458253824
        }

```

I can't seem to get around this. Here is what VMMap is showing

 ![vmmap](https://us1.discourse-cdn.com/elastic/original/3X/4/b/4b4e850ab603e25408ec0e517cb1c3eddcf653ab.png)

Has anyone been able to disable swapping on Windows?

---

<div class="post-metadata">

**Author:** ![jthoni](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jthoni](https://discuss.elastic.co/u/jthoni)\
**Post date:** [October 6, 2017, 3:53am UTC](https://discuss.elastic.co/t/swap-still-reported-even-though-page-file-is-disabled/102773/2 "2017-10-06T03:53:01Z")

</div>

ping.  
Is no one running Elasticsearch on Windows?

---

<div class="post-metadata">

**Author:** ![jthoni](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jthoni](https://discuss.elastic.co/u/jthoni)\
**Post date:** [October 11, 2017, 5:09pm UTC](https://discuss.elastic.co/t/swap-still-reported-even-though-page-file-is-disabled/102773/3 "2017-10-11T17:09:53Z")

</div>

a...parently not...

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 11, 2017, 5:23pm UTC](https://discuss.elastic.co/t/swap-still-reported-even-though-page-file-is-disabled/102773/4 "2017-10-11T17:23:40Z")

</div>

@Martijn_Laarman Do you think you can help here?

---

<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:** [November 8, 2017, 5:23pm UTC](https://discuss.elastic.co/t/swap-still-reported-even-though-page-file-is-disabled/102773/5 "2017-11-08T17:23:47Z")

</div>

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