문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
linux:performance [2018/04/13 17:51] kwon37xi [limits.conf] |
linux:performance [2023/04/29 14:08] (현재) kwon37xi [vm.max_map_count] |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== Linux Performance ====== | ====== Linux Performance ====== | ||
| + | * [[linux: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| 줄 27: | 줄 28: | ||
| 혹은 ''/ | 혹은 ''/ | ||
| + | AWS 인스턴스의 경우 명시적으로 지정하지 않으면 아예 swap 공간을 만들지 않으므로 swappiness가 의미가 없는 듯. | ||
| + | |||
| + | ===== vm.max_map_count ===== | ||
| + | * 리눅스에서 [[linux: | ||
| + | * 게임용도로는 '' | ||
| + | * [[search: | ||
| + | <code sh> | ||
| + | sudo sysctl -w vm.max_map_count=2147483642 | ||
| + | </ | ||
| + | * ''/ | ||
| + | < | ||
| + | vm.max_map_count=2147483642 | ||
| + | </ | ||
| + | * [[https:// | ||
| ===== nproc(Max User Processes) ===== | ===== nproc(Max User Processes) ===== | ||
| * '' | * '' | ||
| 줄 42: | 줄 57: | ||
| ===== limits.conf ===== | ===== limits.conf ===== | ||
| + | * [[https:// | ||
| + | * ''/ | ||
| + | * '' | ||
| + | * 계정명은 '' | ||
| < | < | ||
| 계정명 | 계정명 | ||
| 줄 52: | 줄 71: | ||
| [[: | [[: | ||
| + | |||
| + | <code sh> | ||
| + | # 현재 프로세스 limits 확인 | ||
| + | cat / | ||
| + | |||
| + | # hardlimit 확인 | ||
| + | ulimit -aH | ||
| + | </ | ||
| + | * [[http:// | ||
| + | |||
| + | ===== systemd 사용시의 limits 설정 ===== | ||
| + | * [[linux: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * ''/ | ||
| + | * ''/ | ||
| + | |||
| + | < | ||
| + | [Manager] | ||
| + | DefaultLimitNOFILE=50000 | ||
| + | DefaultLimitNPROC=10000 | ||
| + | </ | ||
| + | <code sh> | ||
| + | $ ulimit -n -u | ||
| + | open files (-n) 50000 | ||
| + | max user processes | ||
| + | </ | ||
| ===== Outbound Socket Connection ===== | ===== Outbound Socket Connection ===== | ||
| * [[http:// | * [[http:// | ||
| 줄 71: | 줄 117: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||