문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
linux:performance [2021/10/11 23:10] kwon37xi [limits.conf] |
linux:performance [2023/04/29 14:08] (현재) kwon37xi [vm.max_map_count] |
||
---|---|---|---|
줄 29: | 줄 29: | ||
AWS 인스턴스의 경우 명시적으로 지정하지 않으면 아예 swap 공간을 만들지 않으므로 swappiness가 의미가 없는 듯. | 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) ===== | ||
* '' | * '' | ||
줄 44: | 줄 57: | ||
===== limits.conf ===== | ===== limits.conf ===== | ||
+ | * [[https:// | ||
* ''/ | * ''/ | ||
+ | * '' | ||
* 계정명은 '' | * 계정명은 '' | ||
< | < | ||
줄 65: | 줄 80: | ||
</ | </ | ||
* [[http:// | * [[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:// |