This repository contains a docker image with a dedicated server for Insurgency Sandstorm that you can fully customize to your need for COOP and PVP servers.
This image will be build daily so you don’t have to update anything inside a container. I tried to build the image as “best-practice” as possible and to document everything for you.
#### Official documentation: [Sandstorm Server Admin Guide](https://sandstorm-support.newworldinteractive.com/hc/en-us/articles/360049211072-Server-Admin-Guide)
```docker build -t andrewmhub/insurgency-sandstorm:latest .``` or get it on [docker hub](https://hub.docker.com/r/andrewmhub/insurgency-sandstorm) ```docker pull andrewmhub/insurgency-sandstorm```
Running multiple instances (use PORT, QUERYPORT and HOSTNAME) and LAUNCH_SERVER_ENV in [modmap.env](https://github.com/AndrewMarchukov/insurgency-sandstorm-server-dockerize/blob/master/modmap.env):
Autoupdate game server. This script will keep your game servers automaticly updated updating intervals announce the server is shutting down for updates
### How to save RAM on UE4 Linux(Docker) dedicated server
if you launch multiple servers on same host you can save some memory, on 2 servers more than 1gb memory saved
```echo 1 > /sys/kernel/mm/ksm/run```
and add launch options ```-useksm -ksmmergeall``` then restart servers
wait some amount of time and check statistics ```grep -H '' /sys/kernel/mm/ksm/*```
```pages_unshared``` means just what it says: the pages could not be shared because they're unique.
```pages_shared``` indicates how many pages are actually in use and being shared.
```pages_sharing``` indicates how many pages the VMs think there are. If you didn't have KSM running, this is how many pages would actually be in use.
So, in your example, 264281 pages have been found to be shareable, and so they were merged into 162221 pages, while 241483 pages were not shareable. KSM saved you about 398 MB of memory.