This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Configure some system specifications | |
| sudo usermod -G input -a $USER | |
| # Max number of files (Required by services like docker/jvm) | |
| sudo sysctl -w fs.inotify.max_user_watches=524288 | |
| sudo sysctl -w vm.max_map_count=262144 | |
| # Better swap if system have a lot of unused memory | |
| sudo sysctl -w vm.swappiness=10 | |
| sudo sysctl -w vm.vfs_cache_pressure=100 |
OlderNewer