2.9. 기존 TuneD 프로필 수정
기존 프로필의 매개변수를 사용자 지정 요구 사항에 맞게 수정할 수 있습니다. 수정된 하위 프로필은 기존 TuneD 프로필을 기반으로 생성할 수 있습니다.
사전 요구 사항
- TuneD 서비스가 실행 중입니다. 자세한 내용은 TuneD 설치 및 활성화를 참조하십시오.
프로세스
/etc/tuned/profiles디렉터리에 생성하려는 프로필과 동일한 새 디렉터리를 만듭니다.# mkdir /etc/tuned/profiles/modified-profile새 디렉터리에서
tuned.conf라는 파일을 생성하고 다음과 같이 [main] 섹션을 설정합니다.[main] include=parent-profileparent-profile을 수정 중인 프로필의 이름으로 교체합니다(예:
throughput-performance).프로필 수정 사항을 포함합니다. 예를 들어
throughput-performance프로필의 swappiness를 낮추려면 기본값10대신vm.swappiness값을5로 변경합니다.[main] include=throughput-performance [sysctl] vm.swappiness=5프로필을 활성화합니다.
# tuned-adm profile modified-profile
검증
프로필이 활성화되어 적용되었는지 확인합니다.
$ tuned-adm active Current active profile: modified-profile $ tuned-adm verify Verification succeeded, current system settings match the preset profile. See tuned log file ('/var/log/tuned/tuned.log') for details.