사용자 도구

사이트 도구


linux:performance

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:performance [2021/12/05 18:25]
kwon37xi [systemd 사용시의 limits 설정]
linux:performance [2023/04/29 14:08] (현재)
kwon37xi [vm.max_map_count]
줄 30: 줄 30:
 AWS 인스턴스의 경우 명시적으로 지정하지 않으면 아예 swap 공간을 만들지 않으므로 swappiness가 의미가 없는 듯. AWS 인스턴스의 경우 명시적으로 지정하지 않으면 아예 swap 공간을 만들지 않으므로 swappiness가 의미가 없는 듯.
  
 +===== vm.max_map_count =====
 +  * 리눅스에서 [[linux:wine|Linux Wine]] 혹은 [[linux:steam|Steam]] 게임 혹은 [[search:elasticsearch|Elastic Search]] 서버 설정을 위해 필요할 수 있음.
 +  * 게임용도로는 ''vm.max_map_count=2147483642'' (''MAX_INT - 5'')
 +  * [[search:elasticsearch|Elastic Search]]는 최소 ''vm.max_map_count=262144'' 가 필요함. [[https://www.elastic.co/guide/en/elasticsearch/reference/current/file-descriptors.html|Virtual memory | Elasticsearch Guide | Elastic]]
 +<code sh>
 +sudo sysctl -w vm.max_map_count=2147483642
 +</code>
 +  * ''/etc/sysctl.d/99-vm-max-map-count.conf'' 파일을 만들어서 내용을 추가하면 부팅시 자동적용
 +<code>
 +vm.max_map_count=2147483642
 +</code>
 +  * [[https://www.youtube.com/watch?v=PsHRbfZhgXM&ab_channel=BrodieRobertson|Fedora 39 Changes 1 Line Saving Hours Of Pain - YouTube]] : Fedora 39 에서 기본값으로 ''2147483642'' 적용될 수 있음.
 ===== nproc(Max User Processes) ===== ===== nproc(Max User Processes) =====
   * ''ulimit -u'' 명령으로 값을 볼 수 있다.   * ''ulimit -u'' 명령으로 값을 볼 수 있다.
줄 73: 줄 85:
   * [[https://superuser.com/questions/1200539/cannot-increase-open-file-limit-past-4096-ubuntu/|linux - Cannot Increase open file limit past 4096 (Ubuntu) - Super User]]   * [[https://superuser.com/questions/1200539/cannot-increase-open-file-limit-past-4096-ubuntu/|linux - Cannot Increase open file limit past 4096 (Ubuntu) - Super User]]
   * [[https://man.archlinux.org/man/systemd-system.conf.5|systemd-system.conf(5) — Arch manual pages]]    * [[https://man.archlinux.org/man/systemd-system.conf.5|systemd-system.conf(5) — Arch manual pages]] 
-  * ''/etc/systemd/system.conf'', ''/etc/systemd/user.conf'', ''/etc/systemd/system/unit.d/override.conf'' 등을 사용해서 설정해야 한다. +  * ''/etc/systemd/system.conf'', ''/etc/systemd/user.conf'', ''/etc/systemd/system/unit.d/override.conf'' , ''/etc/systemd/user.conf.d/원하는파일.conf'' 등을 사용해서 설정해야 한다. 
-  * ''/etc/systemd/usr.conf'' 를 통한 각 사용자의 limit 설정+  * ''/etc/systemd/user.conf.d/99-user-system-limits.conf'' 를 통한 각 사용자의 limit 설정
  
 <code> <code>
linux/performance.1638696308.txt.gz · 마지막으로 수정됨: 2021/12/05 18:25 저자 kwon37xi