Skip to content

Commit

Permalink
bump recommended max map count to 3 million (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardartoul authored Jan 16, 2019
1 parent 713314a commit 3fff6ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/operational_guide/kernel_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Kernel Configuration
This document lists the Kernel tweaks M3DB needs to run well.

## vm.max_map_count
M3DB uses a lot of mmap-ed files for performance, as a result, you might need to bump `vm.max_map_count`. We suggest setting this value to `262144`, so you don’t have to come back and debug issues later.
M3DB uses a lot of mmap-ed files for performance, as a result, you might need to bump `vm.max_map_count`. We suggest setting this value to `3000000`, so you don’t have to come back and debug issues later.

On Linux, you can increase the limits by running the following command as root:
```
sysctl -w vm.max_map_count=262144
sysctl -w vm.max_map_count=3000000
```

To set this value permanently, update the `vm.max_map_count` setting in `/etc/sysctl.conf`.
Expand Down
2 changes: 1 addition & 1 deletion src/dbnode/server/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
const (
// TODO: determine these values based on topology/namespace configuration.
minNoFile = 500000
minVMMapCount = 262144
minVMMapCount = 3000000
maxSwappiness = 1
)

Expand Down

0 comments on commit 3fff6ca

Please sign in to comment.