# Disable memory swapping

**URL:** <https://discuss.elastic.co/t/disable-memory-swapping/121787>\
**Category:** Elasticsearch\
**Created:** [February 28, 2018, 6:47am UTC](https://discuss.elastic.co/t/disable-memory-swapping/121787 "2018-02-28T06:47:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sorcerer](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sorcerer](https://discuss.elastic.co/u/sorcerer)\
**Post date:** [February 28, 2018, 6:47am UTC](https://discuss.elastic.co/t/disable-memory-swapping/121787/1 "2018-02-28T06:47:45Z")

</div>

I am using Docker Toolbox in Windows 8.1 environment. I am new to docker. I am trying to install an open source app which call for installing elasticsearch. I have never use elasticsearch before.  
The first instruction installing that app is to disable swapping. In its instruction, it said:

$ sudo sysctl -w vm.swappiness=1  
$ echo 'vm.swappiness=1' \>\> /etc/sysctl.conf (to persist reboots)

I am in windows host environment. The above instruction is for Linux host environment.  
Disabling swapping in windows environment (by default, swapping is enabled) is very bad.  
Must I stop swapping in my windows host in order to run an app in Docker (guest) which requires the installation of Elasticsearch?  
Can I do this swap disabling inside Docker (prior to installing the app) instead?  
If yes, how to do it?

Thanks in advance.

---

<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:** [March 28, 2018, 6:48am UTC](https://discuss.elastic.co/t/disable-memory-swapping/121787/2 "2018-03-28T06:48:17Z")

</div>

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