문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:performance [2018/04/25 10:27] kwon37xi [limits.conf] |
linux:performance [2023/04/29 14:03] kwon37xi [vm.max_map_count] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Linux Performance ====== | ====== Linux Performance ====== | ||
+ | * [[linux: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
줄 26: | 줄 27: | ||
혹은 ''/ | 혹은 ''/ | ||
+ | |||
+ | AWS 인스턴스의 경우 명시적으로 지정하지 않으면 아예 swap 공간을 만들지 않으므로 swappiness가 의미가 없는 듯. | ||
+ | |||
+ | ===== vm.max_map_count ===== | ||
+ | * 리눅스에서 [[linux: | ||
+ | * 게임용도로는 '' | ||
+ | * [[search: | ||
===== nproc(Max User Processes) ===== | ===== nproc(Max User Processes) ===== | ||
줄 42: | 줄 50: | ||
===== limits.conf ===== | ===== limits.conf ===== | ||
+ | * [[https:// | ||
+ | * ''/ | ||
+ | * '' | ||
+ | * 계정명은 '' | ||
< | < | ||
계정명 | 계정명 | ||
줄 56: | 줄 68: | ||
# 현재 프로세스 limits 확인 | # 현재 프로세스 limits 확인 | ||
cat / | 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 ===== | ||
줄 76: | 줄 110: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// |