|
(→Database Connections (base.xml))
|
(Half of Linux-Tunables inserted)
|
| Line 156: | |||
| available to a process. | available to a process. | ||
| == System PIDs == | == System PIDs == | ||
| Limits the number of threads. | Limits the number of threads. | ||
| - | The limit is system-wide and configured system-wide. | + | The limit is system-wide and configured system-wide. The name implies this is a process limit, but Linux counts threads a processes. |
| - | The name implies this is a process limit, but Linux counts threads a processes. | + | * Get current value |
| - | *Get current value | ||
| ** sysctl kernel.pid_max | ** sysctl kernel.pid_max | ||
| + | * Set temporarily | ||
| + | ** sysctl -w kernel.pid_max=NUMBER | ||
| + | * Set permanently | ||
| + | ** modify /etc/sysctl.conf: | ||
| + | *** kernel.pid_max=NUMBER | ||
| + | == System threads == | ||
| + | Limits the number of threads. The limit is system-wide and configured system-wide. | ||
| + | * Get current value | ||
| + | ** sysctl kernel.threads-max | ||
| + | * Set temporarily | ||
| + | ** sysctl -w kernel.threads-max=NUMBER | ||
| + | * Set permanently | ||
| + | ** modify /etc/sysctl.conf: | ||
| + | *** kernel.threads-max=NUMBER | ||
| + | == Process memory mapping count == | ||
| + | Limits the number of memory mapped areas. The limit is per process and configured system-wide. | ||
| + | Memory mappings are used for thread stacks. The default value may be sufficient | ||
| + | even if other tunables required adjustment. | ||
| + | * Get current value | ||
| + | ** sysctl vm.max_map_count | ||
| + | * Set temporarily | ||
| + | ** sysctl -w vm.max_map_count=NUMBER | ||
| + | * Set permanently | ||
| + | ** modify /etc/sysctl.conf: | ||
| + | *** vm.max_map_count=NUMBER | ||