[AIX 성능 도구 12] 커널 튜닝 — /etc/tunables와 tunsave·tunrestore·tuncheck
https://archive.horanglab.com/posts/aix-perf-tuning
핵심 정리
- 재부팅 뒤에도 남는 튜닝 값은 rc 파일을 고치지 않고
/etc/tunables/nextboot하나에 모읍니다. 부팅할 때/etc/inittab의tunrestore -R이 적용하고, 결과는lastboot와lastboot.log에 남습니다. - 여섯 튜닝 명령(
vmo,ioo,no,schedo,raso,nfso)은 구문이 같습니다:-o 이름=값(지금),-p(지금+다음 부팅),-r(다음 부팅만),-d/-D(기본값),-a/-L/-x(목록),-h(도움말). - 매개변수 유형: Dynamic(언제든), Static(못 바꿈), Reboot(재부팅 때), Bosboot(
bosboot후 재부팅), Mount(이후 마운트), Incremental(늘리기만), Connect(이후 연결, inetd 재시작), Deprecated. - 파일 다루기:
tunsave(저장),tunrestore(적용),tuncheck -r -f(편집기로 만든 파일 검증, 필수),tunchange(파일 일부 수정),tundefault -p(모두 기본값). - (6.1) 제한(restricted) 매개변수는 지원 팀용이라
-F없이는 목록에 안 나오고, 바꾸면 경고·확인을 거치며 기본값이 아니면 부팅 때 오류 로그에 남습니다. 문제가 생기면 유지 보수 모드에서 nextboot를 지우고bosboot후 재부팅합니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 제한(restricted) 튜닝 매개변수와 -F, WPAR 안의 읽기 전용 안내가 더해짐) |
| 원문 | Performance Tools Guide and Reference — 5.3판 7장(183208쪽), 6.1판 217240쪽 |
| 파일 | /etc/tunables/nextboot, /etc/tunables/lastboot, /etc/tunables/lastboot.log, /etc/inittab |
| 파일 세트 | bos.perf.tune |
| 관련 명령어 | vmo, ioo, no, schedo, raso, nfso, tunchange, tuncheck, tunrestore, tunsave, tundefault, bosboot |
rc 파일을 고치지 않고도 커널 튜닝을 영구적으로 바꿀 수 있습니다. 모든 튜닝 매개변수의 재부팅 값을 /etc/tunables/nextboot 스탠자 파일 하나에 모으기 때문입니다. 시스템을 재부팅하면 /etc/tunables/nextboot 파일의 값이 자동으로 적용됩니다.
nextboot 파일과 튜닝 매개변수 값 묶음이 든 다른 파일은 다음 명령으로 다룹니다.
tunchange명령: 스탠자 파일의 값을 바꿉니다.tunsave명령: 값을 스탠자 파일에 저장합니다.tunrestore명령: 파일을 적용합니다. 곧 모든 튜닝 매개변수 값을 파일에 적힌 값으로 바꿉니다.tuncheck명령: 손으로 만든 파일은 반드시 이 명령으로 검증해야 합니다.tundefault명령: 튜닝 매개변수를 기본값으로 되돌립니다.
위 명령은 현재 값과 재부팅 값 모두에 작용합니다.
여섯 튜닝 명령(no, nfso, vmo, ioo, raso, schedo)은 공통 구문을 쓰며 튜닝 매개변수 값을 직접 다룹니다. 영구 변경과 각 매개변수의 자세한 도움말 표시 같은 옵션이 있습니다. (6.1) 전역 WPAR 밖에서 시작한 로그인 세션에서는 튜닝 매개변수 값의 대부분을 바꿀 수 없습니다. 이런 읽기 전용 매개변수 값을 바꾸려 하면 명령이 거부하고 표준 오류 출력에 진단 메시지를 씁니다.
SMIT 화면과 웹 기반 시스템 관리자(WebSM) 플러그인으로도 모든 튜닝 매개변수의 현재·재부팅 값과 /etc/tunables 디렉터리의 파일을 다룰 수 있습니다.
관련 정보
bosboot 명령, no 명령, tunables 파일
영어 원문
Kernel tuning
You can make permanent kernel-tuning changes without having to edit any rc files. This is achieved by centralizing the reboot values for all tunable parameters in the /etc/tunables/nextboot stanza file. When a system is rebooted, the values in the /etc/tunables/nextboot file are automatically applied.
The following commands are used to manipulate the nextboot file and other files containing a set of tunable parameter values:
The tunchange command is used to change values in a stanza file.
The tunsave command is used to save values to a stanza file.
The tunrestore is used to apply a file; that is, to change all tunables parameter values to those listed in a file.
The tuncheck command must be used to validate a file created manually.
The tundefault is available to reset tunable parameters to their default values.
The preceding commands work on both current and reboot values.
All six tuning commands (no, nfso, vmo, ioo, raso, and schedo) use a common syntax and are available to directly manipulate the tunable parameter values. Available options include making permanent changes and displaying detailed help on each of the parameters that the command manages. A large majority of tunable parameter values are not modifiable when the login session is initiated outside of the global WPAR partition. Attempts to modify such a read only tunable parameter value is refused by the command and a diagnostic message written to standard error output.
SMIT panels and Web-based System Manager plug-ins are also available to manipulate current and reboot values for all tuning parameters, as well as the files in the /etc/tunables directory.
Related information
bosboot command no command tunables command
마이그레이션과 호환성
이전 릴리스의 AIX에서 마이그레이션한 시스템은 튜닝 명령이 자동으로 호환 모드로 동작하도록 설정됩니다.
이 절의 내용은 대부분 호환 모드에는 해당하지 않습니다. 자세한 것은 Files Reference의 호환 모드(compatibility mode)를 봅니다.
AIX를 처음 설치한 시스템은 이 장에서 설명하는 튜닝 모드로 동작하도록 자동 설정됩니다. 튜닝 모드는 sys0의 pre520tune 속성이 정하며, enable이면 호환 모드, disable이면 튜닝 모드입니다.
pre520tune 속성의 현재 값을 보려면 다음 명령을 실행합니다.
lsattr -E -l sys0
pre520tune 속성의 현재 값을 바꾸려면 다음 명령을 실행합니다.
chdev -l sys0 -a pre520tune=enable
또는 SMIT이나 웹 기반 시스템 관리자를 씁니다.
영어 원문
Migration and compatibility
When machines are migrated from a previous release of AIX, the tuning commands are automatically set to run in compatibility mode.
Most of the information in this section does not apply to compatibility mode. For more information, see compatibility mode in Files Reference.
When a machine is initially installed with AIX, it is automatically set to run in the tuning mode, which is described in this chapter. The tuning mode is controlled by the sys0 attribute called pre520tune, which can be set to enable to run in compatibility mode and disable to run in the tuning mode.
To retrieve the current setting of the pre520tune attribute, run the following command:
lsattr -E -l sys0
To change the current setting of the pre520tune attribute, run the following command:
chdev -l sys0 -a pre520tune=enable
OR
use SMIT or Web-based System Manager.
튜닝 파일 디렉터리
튜닝 매개변수 값 정보는 /etc/tunables 디렉터리에 있습니다. 재부팅할 때마다 만드는 로그 파일을 빼면 이 디렉터리에는 튜닝 매개변수 묶음이 든 ASCII 스탠자 파일만 있습니다.
이 파일들에는 튜닝 매개변수 변경을 나타내는 매개변수=값 쌍이 들어 있고, 여섯 튜닝 명령(schedo, vmo, ioo, no, raso, nfso)에 해당하는 여섯 스탠자로 나뉩니다. AIX 수준, 파일을 만든 때, 사용자가 쓴 파일 용도 설명 같은 정보는 파일의 특별한 스탠자에 저장됩니다. 파일 형식은 tunables 파일 설명을 봅니다.
tunables 디렉터리의 주 파일은 nextboot입니다. 다음 재부팅 때 적용할 모든 튜닝 매개변수 값이 들어 있습니다. lastboot 파일에는 마지막 재부팅 때 설정된 모든 튜닝 값, 마지막 재부팅 시각, 짝이 되는 lastboot.log 파일의 체크섬 정보가 들어 있습니다. lastboot.log에는 마지막 재부팅 동안의 변경과 오류 메시지가 기록됩니다. lastboot와 lastboot.log는 읽기 전용이며 디렉터리와 다른 모든 파일처럼 root 사용자 소유입니다.
사용자는 /etc/tunables에 파일을 얼마든지 만들 수 있지만 자동으로 적용되는 것은 nextboot 파일뿐입니다. 손으로 만든 파일은 반드시 tuncheck 명령으로 검증해야 합니다. 파일에 매개변수나 스탠자가 빠져도 됩니다. tunrestore 명령으로 파일을 적용하면 파일에 있는 튜닝 매개변수만 바뀌고, 빠진 매개변수는 현재 값이나 기본값 그대로 남습니다. tunrestore로 어떤 매개변수를 기본값으로 강제로 되돌리려면(아마 다른 매개변수를 알려진 값으로 맞추려는 것이겠지요. 그렇지 않으면 모든 매개변수를 기본값으로 바꾸는 tundefault를 쓰면 됩니다) DEFAULT를 지정합니다. nextboot 파일에서 DEFAULT를 지정하는 것은 그 매개변수를 아예 적지 않는 것과 같습니다. 재부팅 튜닝 절차가 빠진 매개변수에 기본값을 강제하기 때문입니다. 이렇게 해서 재부팅 뒤에는 늘 모든 튜닝 매개변수가 nextboot 파일에 지정한 값으로 설정됩니다.
튜닝 파일에는 AIX_level, Kernel_type, Last_validation 매개변수가 든 info라는 특별한 스탠자가 있을 수 있습니다. 파일에 tuncheck나 tunsave를 실행하면 이 매개변수가 그때 실행 중인 AIX 수준과 커널 종류(MP64)로 자동 설정됩니다. 두 명령 모두 이 필드를 자동으로 갱신하지만 tuncheck는 오류가 없을 때만 갱신합니다.
lastboot 파일에는 늘 모든 튜닝 매개변수의 값이 들어 있습니다. 기본값으로 설정된 매개변수에는 DEFAULT VALUE 주석이 붙습니다. (6.1) 기본값에서 바뀐 제한 매개변수에는 값 뒤에 # RESTRICTED not at default value 주석이 더 붙습니다. Logfile_checksum 매개변수는 이 파일에만 있으며, 튜닝 재부팅 과정이 로그 파일을 닫은 뒤 설정합니다(info 스탠자의 나머지도 이 과정이 설정함).
튜닝 파일은 다음 가운데 한 방법으로 만들고 고칩니다.
- SMIT이나 웹 기반 시스템 관리자로 튜닝 매개변수의 다음 재부팅 값을 바꾸거나, 현재 값을 모두 다음 부팅용으로 저장하거나, 기존 튜닝 파일을 다음 재부팅 때 쓰도록 요청합니다. 이 작업은 모두
/etc/tunables/nextboot파일을 갱신합니다. 현재 값이나 nextboot 값을 모두 저장할 새 파일을/etc/tunables에 만들 수도 있습니다. - 튜닝 명령(
ioo,raso,vmo,schedo,no,nfso)을-p나-r옵션과 함께 씁니다. 그러면/etc/tunables/nextboot파일이 갱신됩니다. - 편집기로 새 파일을 만들거나 다른 시스템에서 복사합니다. 그 파일에는 반드시
tuncheck [-r | -p] -f를 실행해야 합니다. tunsave명령으로/etc/tunables디렉터리에 파일을 만들거나 덮어씁니다.tunrestore -r명령으로 nextboot 파일을 갱신합니다.
영어 원문
Tunables file directory
Information about tunable parameter values is located in the /etc/tunables directory. Except for a log file created during each reboot, this directory only contains ASCII stanza files with sets of tunable parameters.
These files contain parameter=value pairs specifying tunable parameter changes, classified in six stanzas corresponding to the six tuning commands : schedo, vmo, ioo, no, raso, and nfso. Additional information about the level of AIX, when the file was created, and a user-provided description of file usage is stored in a special stanza in the file. For detailed information on the file's format, see the tunables file.
The main file in the tunables directory is called nextboot. It contains all the tunable parameter values to be applied at the next reboot. The lastboot file in the tunables directory contains all the tunable values that were set at the last machine reboot, a timestamp for the last reboot, and checksum information about the matching lastboot.log file, which is used to log any changes made, or any error messages encountered, during the last rebooting. The lastboot and lastboot.log files are set to be read-only and are owned by the root user, as are the directory and all of the other files.
Users can create as many /etc/tunables files as needed, but only the nextboot file is ever automatically applied. Manually created files must be validated using the tuncheck command. Parameters and stanzas can be missing from a file. Only tunable parameters present in the file will be changed when the file is applied with the tunrestore command. Missing tunables will simply be left at their current or default values. To force resetting of a tunable to its default value with tunrestore (presumably to force other tunables to known values, otherwise tundefault, which sets all parameters to their default value, could have been used), DEFAULT can be specified. Specifying DEFAULT for a tunable in the nextboot file is the same as not having it listed in the file at all because the reboot tuning procedure enforces default values for missing parameters. This will guarantee to have all tunables parameters set to the values specified in the nextboot file after each reboot.
Tunable files can have a special stanza named info containing the parameters AIX_level, Kernel_type and Last_validation. Those parameters are automatically set to the level of AIX and to the type of kernel (MP64) running when the tuncheck or tunsave is run on the file. Both commands automatically update those fields. However, the tuncheck command will only update if no error was detected.
The lastboot file always contains values for every tunable parameters. Tunables set to their default value will be marked with the comment DEFAULT VALUE. Restricted tunables modified from their default value are marked, after the value, with an additional comment # RESTRICTED not at default value. The Logfile_checksum parameter only exists in that file and is set by the tuning reboot process (which also sets the rest of the info stanza) after closing the log file.
Tunable files can be created and modified using one of the following options:
Using SMIT or Web-based System Manager, to modify the next reboot value for tunable parameters, or to ask to save all current values for next boot, or to ask to use an existing tunable file at the next reboot. All those actions will update the /etc/tunables/nextboot file. A new file in the /etc/tunables directory can also be created to save all current or all nextboot values.
Using the tuning commands (ioo, raso, vmo, schedo, no or nfso) with the
-por-roptions, which will update the /etc/tunables/nexboot file.A new file can also be created directly with an editor or copied from another machine. Running tuncheck [
-r | -p]-fmust then be done on that file.Using the tunsave command to create or overwrite files in the /etc/tunables directory
Using the tunrestore -r command to update the nextboot file.
튜닝 매개변수의 유형
여섯 튜닝 명령의 매뉴얼 페이지에는 각 명령이 다루는 모든 매개변수의 목록과, 매개변수마다 유형, 범위, 기본값, 다른 매개변수와의 의존 관계가 나와 있습니다.
튜닝 명령(no, nfso, vmo, ioo, raso, schedo)이 다루는 모든 튜닝 매개변수는 다음 범주로 나뉩니다.
| 유형 | 뜻 |
|---|---|
| Dynamic | 언제든 바꿀 수 있습니다. |
| Static | 절대 바꿀 수 없습니다. |
| Reboot | 재부팅 때만 바꿀 수 있습니다. |
| Bosboot | bosboot를 실행하고 재부팅해야만 바꿀 수 있습니다. |
| Mount | 바꾸면 이후의 파일 시스템·디렉터리 마운트에만 효과가 있습니다. |
| Incremental | 부팅 때를 빼면 늘리기만 할 수 있습니다. |
| Connect | 바꾸면 이후의 소켓 연결에만 효과가 있습니다. |
| Deprecated | 현재 AIX 릴리스에서 더는 바꾸는 것을 지원하지 않습니다. |
Bosboot 유형 매개변수를 바꿀 때마다 튜닝 명령은 bosboot 명령을 실행할지 자동으로 묻습니다. (6.1) 제한 매개변수를 -p나 -r 옵션과 함께 바꾸도록 지정해도 변경을 확인하라는 질문이 나옵니다. Connect 유형 매개변수를 바꾸면 튜닝 명령이 inetd 데몬을 자동으로 다시 시작합니다.
(6.1) 제한 사용(restricted use)으로 분류된 매개변수는 주로 지원 팀이나 개발 팀이 특별히 개입할 때 쓰려고 있는 것이며, 최종 사용자가 바꾸는 것은 권하지 않습니다. 그래서 기본으로는 보이지 않으며 명령줄에 강제(force) 옵션을 줘야 합니다. 제한 매개변수를 바꾸면 경고 메시지가 나오고, 재부팅용이나 영구 변경이면 확인을 받습니다.
영어 원문
Tunable parameters type
The manual page for each of the six tuning commands contains the complete list of all the parameter manipulated by each of the commands and for each parameter, its type, range, default value, and any dependencies on other parameters.
All the tunable parameters manipulated by the tuning commands (no, nfso, vmo, ioo, raso, and schedo) have been classified into the following categories:
Dynamic: if the parameter can be changed at any time
Static: if the parameter can never be changed
Reboot: if the parameter can only be changed during reboot
Bosboot: if the parameter can only be changed by running bosboot and rebooting the machine
Mount: if changes to the parameter are only effective for future file systems or directory mounts
Incremental: if the parameter can only be incremented, except at boot time
Connect: if changes to the parameter are only effective for future socket connections
Deprecated: if changing this parameter is no longer supported by the current release of AIX
For parameters of type Bosboot, whenever a change is performed, the tuning commands automatically prompt the user to ask if they want to execute the bosboot command. When specifying a restricted tunable for modification in association with the option -p or -r, you are also prompted to confirm the change. For parameters of type Connect, the tuning commands automatically restart the inetd daemon.
The tunables classified as restricted use tunables exist primarily for specialized intervention by the support or development teams and are not recommended for end user modification. For this reason, they are not displayed by default and require the force option on the command line. When modifying a restricted tunable, a warning message is displayed and confirmation required if the change is specified for reboot or permanent.
튜닝 명령의 공통 구문
no, nfso, vmo, ioo, raso, schedo 튜닝 명령은 모두 다음 구문을 지원합니다.
command [ -p | -r ] { -o tunable [=newvalue]}
command [ -p | -r ] { -d tunable }
command [ -p | -r ] -D
command [ -p | -r ] [ -F ] -a
command -h [ tunable ]
command [ -F ] -L [ tunable ]
command [ -F ] -x [ tunable ]
| 플래그 | 설명 |
|---|---|
-a |
모든 튜닝 매개변수의 현재 값, 재부팅 값(-r과 함께), 영구 값(-p와 함께)을 한 줄에 하나씩 tunable = value 형태로 보여 줍니다. 영구 옵션에서는 재부팅 값과 현재 값이 같을 때만 값을 보여 주고, 다르면 NONE을 보여 줍니다. 실행 중인 커널이나 현재 플랫폼이 지원하지 않는 매개변수는 "n/a"로 보여 줍니다. |
-d tunable |
매개변수를 기본값으로 되돌립니다. 바꿔야 하는데(지금 기본값이 아닌데) 유형이 Bosboot나 Reboot이거나, Incremental이고 기본값에서 바뀌었는데 -r을 함께 주지 않으면, 바꾸지 않고 메시지를 보여 줍니다. |
-D |
모든 매개변수를 기본값으로 되돌립니다. 바꿔야 할 매개변수가 Bosboot나 Reboot 유형이거나, Incremental이고 기본값에서 바뀌었는데 -r을 함께 주지 않으면, 바꾸지 않고 메시지를 보여 줍니다. |
-F |
(6.1) -a, -L, -x만 주어 모든 매개변수를 나열할 때 제한 매개변수도 강제로 보여 줍니다. -F가 없으면 표시 옵션에 이름을 직접 주지 않는 한 제한 매개변수는 나오지 않습니다. |
-h [tunable] |
매개변수의 도움말을 보여 줍니다. 매개변수를 주지 않으면 명령 사용법을 보여 줍니다. |
-o tunable[=newvalue] |
값을 보여 주거나 newvalue로 설정합니다. 바꿔야 하는데(지정한 값이 현재 값과 다른데) 유형이 Bosboot나 Reboot이거나, Incremental이고 현재 값이 지정한 값보다 큰데 -r을 함께 주지 않으면, 바꾸지 않고 메시지를 보여 줍니다. -r과 함께 새 값 없이 쓰면 다음 부팅 값을 보여 줍니다. -p와 함께 새 값 없이 쓰면 현재 값과 다음 부팅 값이 같을 때만 값을 보여 주고, 다르면 NONE을 보여 줍니다. 지원하지 않는 매개변수는 "n/a"로 보여 줍니다. |
-p |
-o, -d, -D와 함께 쓰면 현재 값과 재부팅 값 모두에 변경을 적용합니다. 곧 현재 값과 함께 /etc/tunables/nextboot 파일도 갱신합니다. Reboot·Bosboot 유형은 현재 값을 바꿀 수 없으므로 이 플래그를 쓸 수 없습니다. -a나 -o와 함께 새 값 없이 쓰면 현재 값과 다음 부팅 값이 같을 때만 값을 보여 주고, 다르면 NONE을 보여 줍니다. |
-r |
-o, -d, -D와 함께 쓰면 재부팅 값에만 변경을 적용합니다. 곧 /etc/tunables/nextboot 파일만 갱신합니다. Bosboot 유형 매개변수가 바뀌면 bosboot를 실행하라고 묻습니다. -a나 -o와 함께 새 값 없이 쓰면 현재 값 대신 다음 부팅 값을 보여 줍니다. |
-x [tunable] |
매개변수 하나나 전체의 특성을 한 줄에 하나씩 tunable,current,default,reboot,min,max,unit,type,{dtunable } 형식으로 나열합니다. current는 현재 값, default는 기본값, reboot는 재부팅 값, min은 최솟값, max는 최댓값, unit은 단위, type은 유형(D Dynamic, S Static, R Reboot, B Bosboot, M Mount, I Incremental, C Connect, d Deprecated), dtunable은 의존 매개변수를 공백으로 구분한 목록입니다. |
-L [tunable] |
매개변수 하나나 전체의 특성을 아래 예와 같은 표 형식으로 나열합니다. CUR 현재 값, DEF 기본값, BOOT 재부팅 값, MIN 최솟값, MAX 최댓값, UNIT 단위, TYPE 유형(-x와 같은 글자), DEPENDENCIES 의존 매개변수(한 줄에 하나)입니다. |
-L의 출력 형식 예입니다.
NAME CUR DEF BOOT MIN MAX UNIT TYPE
DEPENDENCIES
--------------------------------------------------------------------------------
memory_frames 128K 128K 4KB pages S
--------------------------------------------------------------------------------
maxfree 128 128 128 16 200K 4KB pages D
minfree
memory_frames
--------------------------------------------------------------------------------
(6.1) 제한 매개변수를 (-o, -d, -D로) 바꾸면 제한 사용 유형의 매개변수가 바뀌었다는 경고 메시지가 나오고, 명령줄에 -r이나 -p도 주었으면 변경을 확인하라는 질문이 나옵니다. 또 -r이나 -p로 기본값과 다르게 바꾼 제한 매개변수가 있으면 시스템을 재부팅할 때 그 목록을 담은 오류 로그 항목이 추가됩니다.
Mount 유형 매개변수를 (-o, -d, -D로) 바꾸면 이후의 마운트에만 효과가 있다는 경고 메시지가 나옵니다.
Connect 유형 매개변수를 (-o, -d, -D로) 바꾸면 inetd 데몬이 다시 시작되고, 이후의 소켓 연결에만 효과가 있다는 경고 메시지가 나옵니다.
Bosboot나 Reboot 유형 매개변수를 -r 없이 (-o, -d, -D로) 바꾸려 하면 오류 메시지가 나옵니다.
Incremental 유형 매개변수의 현재 값을 (-r 없이 -o, -d, -D로) 현재 값보다 작은 값으로 바꾸려 하면 오류 메시지가 나옵니다.
영어 원문
Common syntax for tuning commands
Review the syntax for all the tuning commands.
The no, nfso, vmo, ioo, raso, and schedo tuning commands all support the following syntax:
command [ -p | -r ] { -o tunable [=newvalue]}
command [ -p | -r ] { -d tunable }
command [ -p | -r ] -D
command [ -p | -r ] [ -F ] -a
command -h [ tunable ]
command [ -F ] -L [ tunable ]
command [ -F ] -x [ tunable ]
-a— Displays current, reboot (when used in conjunction with-r) or permanent (when used in conjunction with-p) value for all tunable parameters, one per line in pairs tunable =value. For the permanent options, a value is displayed for a parameter only if its reboot and current values are equal. Otherwise,NONEis displayed as the value. If a tunable is not supported by the running kernel or the current platform, "n/a" is displayed as the value.-dtunable — Resets tunable to default value. If a tunable needs to be changed (that is, it is currently not set to its default value) and is of type Bosboot or Reboot, or if it is of type Incremental and has been changed from its default value, and-ris not used in combination, it is not changed, but a message displays instead.-D— Resets all tunables to their default value. If tunables needing to be changed are of type Bosboot or Reboot, or are of type Incremental and have been changed from their default value, and-ris not used in combination, they are not changed, but a message displays instead.-F— Forces display of restricted tunable parameters when the options-a,-L, or-xare specified alone on the command line to list all tunables. When-Fis not specified, restricted tunables are not included in a display unless specifically named in association with a display option.-h[tunable] — Displays help about tunable parameter. Otherwise, displays the command usage statement.-otunable[=newvalue] — Displays the value or sets tunable to newvalue. If a tunable needs to be changed (the specified value is different than current value), and is of type Bosboot or Reboot, or if it is of type Incremental and its current value is bigger than the specified value, and-ris not used in combination, it is not changed, but a message displays instead. When-ris used in combination without a new value, the nextboot value for tunable is displayed. When-pis used in combination without a new value, a value is displayed only if the current and next boot values for tunable are the same. Otherwise,NONEis displayed as the value. If a tunable is not supported by the running kernel or the current platform, "n/a" is displayed as the value.-p— When used in combination with-o,-dor-D, makes changes apply to both current and reboot values; that is, turns on the updating of the /etc/tunables/nextboot file in addition to the updating of the current value. This flag cannot be used on Reboot and Bosboot type parameters because their current value cannot be changed. When used with-aor-oflag without specifying a new value, values are displayed only if the current and next boot values for a parameter are the same. Otherwise,NONEis displayed as the value.-r— When used in combination with-o,-dor-Dflags, makes changes apply to reboot values only; that is, turns on the updating of the /etc/tunables/nextboot file. If any parameter of type Bosboot is changed, the user will be prompted to run bosboot. When used with-aor-owithout specifying a new value, next boot values for tunables are displayed instead of current values.-x[tunable] — Lists the characteristics of one or all tunables, one per line, using the following format:tunable,current,default,reboot, min,max,unit,type,{dtunable }where:current = current value default = default value reboot = reboot value min = minimal value max = maximum value unit = tunable unit of measure type = parameter type: D(for Dynamic), S(for Static), R(for Reboot), B(for Bosboot), M(for Mount), I(for Incremental), C (for Connect), and d (for Deprecated) dtunable = space separated list of dependent tunable parameters-L[tunable] — Lists the characteristics of one or all tunables, one per line, using the following format:NAME CUR DEF BOOT MIN MAX UNIT TYPE DEPENDENCIES ----------------------------------------------------------------------- memory_frames 128K 128K 4KB pages S ----------------------------------------------------------------------- maxfree 128 128 128 16 200K 4KB pages D minfree memory_frames ----------------------------------------------------------------------where:CUR = current value DEF = default value BOOT = reboot value MIN = minimal value MAX = maximum value UNIT = tunable unit of measure TYPE = parameter type: D (for Dynamic),S (for Static), R (for Reboot),B (for Bosboot), M (for Mount), I (for Incremental), C (for Connect), and d (for Deprecated) DEPENDENCIES = list of dependent tunable parameters, one per line
Any change (with -o, -d or -D) to a restricted tunable parameter will result in a message being displayed to warn the user that a tunable of the restricted use type has been modified and, if the -r or -p options are also specified on the command line, the user will be prompted for confirmation of the change. In addition, at system reboot, the presence of restricted tunables modified to a value different from their default using a command line specifying the -r or -p options will cause the addition of an error log entry identifying the list of these modified tunables.
Any change (with -o, -d or -D flags) to a parameter of type Mount will result in a message displays to warn the user that the change is only effective for future mountings.
Any change (with -o, -d or -D flags) to a parameter of type Connect will result in the inetd daemon being restarted, and a message will display to warn the user that the change is only effective for socket connections.
Any attempt to change (with -o, -d or -D flags ) a parameter of type Bosboot or Reboot without -r, will result in an error message.
Any attempt to change (with -o, -d or -D flags but without -r) the current value of a parameter of type Incremental with a new value smaller than the current value, will result in an error message.
튜닝 파일을 다루는 명령
다음 명령들은 보통 /etc/tunables 디렉터리의 파일을 다루지만 파일은 어디에 있어도 됩니다. 그래서 파일 이름에 슬래시(/)가 없으면 지정한 파일 이름은 모두 /etc/tunables/파일이름으로 해석됩니다.
내용의 일관성을 보장하려고 갱신하기 전에 모든 파일을 잠급니다. tunsave, tuncheck(성공했을 때만), tundefault -r은 모두 info 스탠자를 갱신합니다.
영어 원문
Tunable file-manipulation commands
The following commands normally manipulate files in the /etc/tunables directory, but the files can be located anywhere. Therefore, as long as the file name does not contain a forward slash (/), all the file names specified are expanded to /etc/tunables/filename.
To guarantee the consistency of their content, all the files are locked before any updates are made. The commands tunsave, tuncheck (only if successful), and tundefault -r all update the info stanza.
tunchange 명령
tunchange 명령은 파일에 있는 하나 이상의 튜닝 스탠자를 갱신합니다.
구문은 다음과 같습니다.
tunchange -f filename ( -t stanza ( {-o parameter[=value]} | -D ) | -m filename2 )
stanza는 schedo, vmo, ioo, raso, no, nfso 가운데 하나입니다.
다음은 /etc/tunables/mytunable 파일의 pacefork 매개변수를 갱신하는 예입니다.
tunchange -f mytunable -t schedo -o pacefork=10
다음은 /etc/tunables/nextboot 파일의 pacefork 매개변수를 조건 없이 갱신하는 예입니다. Bosboot 유형 매개변수를 바꿔도 경고가 나오지 않으므로 조심해서 씁니다.
tunchange -f nextboot -t schedo -o pacefork=10
다음은 nextboot 파일의 schedo 스탠자를 비우는 예입니다.
tunchange -f nextboot -t schedo -D
다음은 /home/admin/schedo_conf 파일을 현재 nextboot 파일과 합치는 예입니다. 합칠 파일에 한 매개변수가 여러 번 나오면 첫 항목만 적용됩니다. 두 파일에 같은 매개변수가 있으면 합칠 파일의 항목이 현재 nextboot 파일의 값을 대신합니다.
tunchange -f nextboot -m /home/admin/schedo_conf
튜닝 명령은 -p와 -r 플래그를 구현할 때 -f nextboot로 tunchange 명령을 부릅니다.
영어 원문
tunchange Command
The tunchange command is used to update one or more tunable stanzas in a file.
The following is the syntax for the tunchange command:
tunchange -f filename ( -t stanza ( {-o parameter[=value]} | -D ) | -m filename2 )
where stanza is schedo, vmo, ioo, raso, no, or nfso.
The following is an example of how to update the pacefork parameter in the /etc/tunables/mytunable directory:
tunchange -f mytunable -t schedo -o pacefork=10
The following is an example of how to unconditionally update the pacefork parameter in the /etc/tunables/nextboot directory. This should be done with caution because no warning will be printed if a parameter of type bosboot was changed.
tunchange -f nextboot -t schedo -o pacefork=10
The following is an example of how to clear the schedo stanza in the nextboot file.
tunchange -f nextboot -t schedo -D
The following is an example of how to merge the /home/admin/schedo_conf file with the current nextboot file. If the file to merge contains multiple entries for a parameter, only the first entry will be applied. If both files contain an entry for the same tunable, the entry from the file to merge will replace the current nextboot file's value.
tunchange -f nextboot -m /home/admin/schedo_conf
The tunchange command is called by the tuning commands to implement the -p and -r flags using -f nextboot.
tuncheck 명령
tuncheck 명령은 파일을 검증합니다.
구문은 다음과 같습니다.
tuncheck [-r|-p] -f filename
다음은 /etc/tunables/mytunable 파일을 현재 값에 적용할 수 있는지 검증하는 예입니다.
tuncheck -f mytunable
다음은 /etc/tunables/nextboot 파일이나 my_nextboot 파일을 재부팅 때 쓸 수 있는지 검증하는 예입니다. 검사할 파일이 nextboot 파일이면 -r 플래그만 쓸 수 있습니다.
tuncheck -r -f nextboot
tuncheck -r -f /home/bill/my_nextboot
nextboot나 my_nextboot 파일의 모든 매개변수는 범위와 의존 관계를 검사하며, 문제가 있으면 "Parameter X is out of range"나 "Dependency problem between parameter A and B" 같은 메시지가 나옵니다. -r과 -p 옵션은 파일에 없는 매개변수의 의존 관계 검사에 쓸 값과, Incremental·Bosboot·Reboot 유형 매개변수의 변경 제안을 어떻게 다룰지를 정합니다.
-r 옵션을 쓰지 않으면 Incremental 유형 매개변수는 파일의 값이 현재 값보다 작지 않은지 검사합니다. Bosboot 유형 매개변수가 현재 값과 다른 값으로 파일에 있으면 bosboot를 실행하라고 묻거나(-r일 때) 오류 메시지가 나옵니다.
의존 관계가 있는 매개변수는 값이 서로 맞는지 검사합니다. 서로 의존하는 매개변수 가운데 일부가 파일에 없으면, 그 값은 현재 값(-p나 -r 없이 부를 때)이나 기본값으로 봅니다. -r 없이 부르면 파일을 현재 값에 적용할 수 있는지 검증하고, -r과 함께 부르면 파일에 없는 매개변수가 기본값으로 남는 재부팅 때 쓸 수 있는지 검증하기 때문입니다. -p로 부르는 것은 인수 없이 한 번, -r로 한 번, 두 번 부르는 것과 같습니다. 곧 파일을 지금 바로 쓸 수도 있고 재부팅 때도 쓸 수 있는지 검사합니다.
참고: 편집기로 파일을 만들거나 다른 시스템에서 파일을 복사한 사용자는 반드시 tuncheck 명령으로 파일을 검증해야 합니다.
영어 원문
tuncheck Command
The tuncheck command is used to validate a file.
The following is the syntax for the tuncheck command:
tuncheck [-r|-p] -f filename
The following is an example of how to validate the /etc/tunables/mytunable file for usage on current values.
tuncheck -f mytunable
The following is an example of how to validate the /etc/tunables/nextboot file or my_nextboot file for usage during reboot. Note that the -r flag is the only valid option when the file to check is the nextboot file.
tuncheck -r -f nextboot
tuncheck -r -f /home/bill/my_nextboot
All parameters in the nextboot or my_nextboot file are checked for range, and dependencies, and if a problem is detected, a message similar to: "Parameter X is out of range" or "Dependency problem between parameter A and B" is issued. The -r and -p options control the values used in dependency checking for parameters not listed in the file and the handling of proposed changes to parameters of type Incremental, Bosboot, and Reboot.
Except when used with the -r option, checking is performed on parameter of type Incremental to make sure the value in the file is not less than the current value. If one or more parameters of type Bosboot are listed in the file with a different value than its current value, the user will either be prompted to run bosboot (when -r is used) or an error message will display.
Parameters having dependencies are checked for compatible values. When one or more parameters in a set of interdependent parameters is not listed in the file being checked, their values are assumed to either be set at their current value (when the tuncheck command is called without -p or -r), or their default value. This is because when called without -r, the file is validated to be applicable on the current values, while with -r, it is validated to be used during reboot when parameters not listed in the file will be left at their default value. Calling this command with -p is the same as calling it twice; once with no argument, and once with the -r flag. This checks whether a file can be used both immediately, and at reboot time.
Note: Users creating a file with an editor, or copying a file from another machine, must run the tuncheck command to validate their file.
tunrestore 명령
tunrestore 명령은 파일의 모든 매개변수를 복원합니다.
구문은 다음과 같습니다.
tunrestore -R | [-r] -f filename
예를 들어 다음은 범위, 의존 관계, Incremental 매개변수 규칙을 모두 만족하면 파일에 있는 모든 튜닝 매개변수의 현재 값을 바꿉니다.
tunrestore -f mytunable
tunrestore -f /etc/tunables/mytunable
문제가 있으면 가능한 변경만 합니다.
다음은 범위와 의존 관계 규칙을 모두 만족하면 파일에 있는 모든 튜닝 매개변수의 재부팅 값을 바꿉니다. 곧 값을 /etc/tunables/nextboot 파일로 복사합니다.
tunrestore -r -f mytunable
Bosboot 유형 매개변수의 변경이 있으면 bosboot 명령을 실행하라고 묻습니다.
다음 명령은 /etc/inittab 파일에서만 부를 수 있으며, 튜닝 매개변수를 /etc/tunables/nextboot 파일의 값으로 바꿉니다.
tunrestore -R
발견한 문제와 한 변경은 모두 /etc/tunables/lastboot.log 파일에 기록됩니다. 모든 매개변수의 현재 값 목록을 담은 새 /etc/tunables/lastboot 파일이 늘 만들어집니다. (6.1) 제한 매개변수가 기본값에서 바뀌어 있으면 그 목록을 담은 오류 로그 항목이 추가됩니다.
filename이 없으면 오류 메시지가 나옵니다. nextboot 파일이 없을 때 -r을 썼으면 오류 메시지가 나옵니다. -R을 썼으면 Bosboot 이외 유형의 모든 튜닝 매개변수가 기본값으로 설정되고 info 스탠자만 든 nextboot 파일이 만들어지며, lastboot.log 파일에 경고가 기록됩니다.
-r을 쓰지 않으면 bosboot와 재부팅이 필요한 매개변수는 바꾸지 않고 바꿀 수 없다는 오류 메시지를 보여 줍니다. -r을 쓰면 Bosboot 유형 매개변수를 바꿔야 할 때 bosboot를 실행하라고 묻습니다. 파일에 없는 매개변수는 그대로 두지만, -R을 쓰면 기본값으로 설정합니다. 파일에 한 매개변수가 여러 번 나오면 첫 항목만 적용하고 경고를 보여 주거나 (-R이면) 기록합니다.
영어 원문
tunrestore Command
The tunrestore command is used to restore all the parameters from a file.
The following is the syntax for the tunrestore command:
tunrestore -R | [-r] -f filename
For example, the following will change the current values for all tunable parameters present in the file if ranges, dependencies, and incremental parameter rules are all satisfied.
tunrestore -f mytunable
tunrestore -f /etc/tunables/mytunable
In case of problems, only the changes possible will be made.
For example, the following will change the reboot values for all tunable parameters present in the file if ranges and dependencies rules are all satisfied. In other words, they will be copied to the /etc/tunables/nextboot file.
tunrestore -r -f mytunable
If changes to parameters of type Bosboot are detected, the user will be prompted to run the bosboot command.
The following command can only be called from the /etc/inittab file and changes tunable parameters to values from the /etc/tunables/nextboot file.
tunrestore -R
Any problem found or change made is logged in the /etc/tunables/lastboot.log file. A new /etc/tunables/lastboot file is always created with the list of current values for all parameters. Any change to restricted tunables from their default values will cause the addition of an error log entry identifying the list of these modified tunables.
If filename does not exist, an error message displays. If the nextboot file does not exist, an error message displays if -r was used. If -R was used, all the tuning parameters of a type other than Bosboot will be set to their default value, and a nextboot file containing only an info stanza will be created. A warning will also be logged in the lastboot.log file.
Except when -r is used, parameters requiring a call to bosboot and a reboot are not changed, but an error message is displayed to indicate they could not be changed. When -r is used, if any parameter of type Bosboot needs to be changed, the user will be prompted to run bosboot. Parameters missing from the file are simply left unchanged, except when -R is used, in which case missing parameters are set to their default values. If the file contains multiple entries for a parameter, only the first entry will be applied, and a warning will be displayed or logged (if called with -R).
tunsave 명령
tunsave 명령은 현재 튜닝 매개변수 값을 파일에 저장합니다.
구문은 다음과 같습니다.
tunsave [-a|-A] -f|-F filename
예를 들어 다음은 기본값과 다른 현재 튜닝 매개변수 값을 모두 /etc/tunables/mytunable 파일에 저장합니다.
tunsave -f mytunable
파일이 이미 있으면 대신 오류 메시지가 나옵니다. 기존 파일을 덮어쓰려면 -F 플래그를 써야 합니다.
다음은 기본값과 다른 현재 튜닝 매개변수 값을 모두 /etc/tunables/nextboot 파일에 저장합니다.
tunsave -f nextboot
필요하면 tunsave 명령이 bosboot를 실행하라고 묻습니다.
다음은 (기본값인 매개변수까지 포함해) 현재 튜닝 매개변수 값을 모두 mytunable 파일에 저장합니다.
tunsave -A -f mytunable
이렇게 하면 현재 설정을 저장해 두었다가 나중에 그대로 재현할 수 있습니다. 기본값이 바뀌어도(다른 시스템에서 파일을 쓰거나 다른 AIX 버전에서 쓸 때 기본값이 바뀔 수 있음) 마찬가지입니다.
다음은 현재 튜닝 매개변수 값을 모두 /etc/tunables/mytunable 파일이나 현재 디렉터리의 mytunable 파일에 저장합니다.
tunsave -a -f mytunable
tunsave -a -f ./mytunable
기본값으로 설정된 매개변수에는 DEFAULT 키워드를 쓴 줄이 파일에 들어갑니다. 곧 바뀐 현재 값만 저장하고 나머지 매개변수는 모두 기본값으로 강제합니다. 그래서 나중에 tunrestore 명령으로 알려진 설정으로 돌아갈 수 있습니다.
영어 원문
tunsave Command
The tunsave command is used to save current tunable parameter values into a file.
The following is the syntax for the tunsave command:
tunsave [-a|-A] -f|-F filename
For example, the following saves all of the current tunable parameter values that are different from their default into the /etc/tunables/mytunable file.
tunsave -f mytunable
If the file already exists, an error message is printed instead. The -F flag must be used to overwrite an existing file.
For example, the following saves all of the current tunable parameter values different from their default into the /etc/tunables/nextboot file.
tunsave -f nextboot
If necessary, the tunsave command will prompt the user to run bosboot.
For example, the following saves all of the current tunable parameters values (including parameters for which default is their value) into the mytunable file.
tunsave -A -f mytunable
This permits you to save the current setting. This setting can be reproduced at a later time, even if the default values have changed (default values can change when the file is used on another machine or when running another version of AIX).
For example, the following saves all current tunable parameter values into the /etc/tunables/mytunable file or the mytunable file in the current directory.
tunsave -a -f mytunable
tunsave -a -f ./mytunable
For the parameters that are set to default values, a line using the keyword DEFAULT will be put in the file. This essentially saves only the current changed values, while forcing all the other parameters to their default values. This permits you to return to a known setup later using the tunrestore command.
tundefault 명령
tundefault 명령은 모든 튜닝 매개변수를 기본값으로 강제로 되돌립니다. -p 플래그는 변경을 영구적으로 만들고, -r 플래그는 변경을 다음 재부팅까지 미룹니다.
구문은 다음과 같습니다.
tundefault [-p|-r]
예를 들어 다음은 Bosboot·Reboot 유형 매개변수와, 기본값보다 큰 값으로 설정된 Incremental 유형 매개변수를 빼고 모든 튜닝 매개변수를 기본값으로 되돌립니다.
tundefault
허용되지 않는 매개변수 변경에는 오류 메시지가 나옵니다.
다음은 모든 튜닝 매개변수를 기본값으로 되돌립니다. /etc/tunables/nextboot 파일도 갱신하고, 필요하면 bosboot 실행을 권하며, 모든 변경이 효과를 내려면 재부팅이 필요하다는 경고를 보여 줍니다.
tundefault -p
이 명령은 모든 튜닝 매개변수를 영구적으로 기본값으로 되돌려, 시스템을 일관된 상태로 돌리고 다음 재부팅 뒤에도 그 상태가 유지되게 합니다.
다음은 /etc/tunables/nextboot 파일의 모든 명령 스탠자를 비우고, 필요하면 bosboot를 권합니다.
tundefault -r
영어 원문
tundefault Command
The tundefault command is used to force all tuning parameters to be reset to their default value. The -p flag makes changes permanent, while the -r flag defers changes until the next reboot.
The following is the syntax for the tundefault command:
tundefault [-p|-r]
For example, the following example resets all tunable parameters to their default value, except the parameters of type Bosboot and Reboot, and parameters of type Incremental set at values bigger than their default value.
tundefault
Error messages will be displayed for any parameter change that is not permitted.
For example, the following example resets all the tunable parameters to their default value. It also updates the /etc/tunables/nextboot file, and if necessary, offers to run bosboot, and displays a message warning that rebooting is needed for all the changes to be effective.
tundefault -p
This command permanently resets all tunable parameters to their default values, returning the system to a consistent state and making sure the state is preserved after the next reboot.
For example, the following example clears all the command stanzas in the /etc/tunables/nextboot file, and proposes bosboot if necessary.
tundefault -r
초기 설정
bos.perf.tune 파일 세트를 설치하면 처음 /etc/tunables/nextboot 파일이 자동으로 만들어집니다.
bos.perf.tune 파일 세트를 설치하면 /etc/inittab 파일 맨 앞에 다음 줄이 더해집니다.
tunable:23456789:wait:/usr/bin/tunrestore -R > /dev/console 2>&1
이 항목은 모든 튜닝 매개변수의 재부팅 값을 설정합니다(nextboot에 없는 것은 기본값). 이전 AIX 버전에서의 마이그레이션과 그때 자동으로 설정되는 호환 모드는 Files Reference를 봅니다.
영어 원문
Initial setup
Installing the bos.perf.tune fileset automatically creates an initial /etc/tunables/nextboot file.
When you install the bos.perf.tune fileset the following line is added at the beginning of the /etc/inittab file:
tunable:23456789:wait:/usr/bin/tunrestore -R > /dev/console 2>&1
This entry sets the reboot value of all tunable parameters to their default. For more information about migration from a previous version of AIX and the compatibility mode automatically setup in case of migration, see the Files Reference guide.
재부팅 튜닝 절차
Bosboot 유형 매개변수는 bosboot 명령이 설정합니다. bosboot는 새 부트 이미지를 만들 때 nextboot 파일에서 값을 가져옵니다.
Reboot 유형 매개변수는 재부팅 과정에서 해당 구성 메서드가 설정하며, 이 메서드도 필요한 값을 nextboot 파일에서 가져옵니다. 두 경우 모두 nextboot 파일이 없으면 매개변수는 기본값으로 설정됩니다. 나머지 매개변수는 모두 다음 과정으로 설정됩니다.
tunrestore -R을 부르면 기본값에서 바뀐 매개변수가 모두lastboot.log파일에 기록됩니다. nextboot 파일에 있는 Reboot·Bosboot 유형 매개변수는tunrestore -R을 부르기 전에 이미 바뀌었어야 하며, 파일의 값과 비교해 차이가 있으면 그것도 기록합니다.lastboot파일에 기본값을 포함한 모든 튜닝 매개변수 설정이 기록됩니다. 기본값에는# DEFAULT VALUE표시가 붙고,AIX_level,Kernel_type,Last_validation,Logfile_checksum필드가 알맞게 설정됩니다./etc/tunables/nextboot파일이 없으면 Bosboot 유형을 뺀 모든 튜닝 매개변수가 기본값으로 설정되고, info 스탠자만 든 nextboot 파일이 만들어지며, 로그 파일에 "cannot access the /etc/tunables/nextboot file" 경고가 기록됩니다.lastboot파일은 2단계처럼 만들어집니다.- 매개변수의 원하는 값이 범위를 벗어나면 그 매개변수는 기본값으로 남고, 로그 파일에 "
Parameter A could not be set to X, which is out of range, and was left to its current value (Y) instead" 같은 메시지가 기록됩니다. 마찬가지로 서로 의존하는 매개변수들의 값이 서로 맞지 않으면 모두 기본값으로 남고, "Dependent parameter A, B and C could not be set to X, Y and Z because those values are incompatible with each other. Instead, they were left to their current values (T, U and V)" 같은 메시지가 기록됩니다. 이런 오류는 사용자가/etc/tunables/nextboot파일을 편집기로 고치거나, 유효 범위가 다를 수 있는 다른 AIX 버전의 시스템에서 복사해 오고tuncheck -r -f를 실행하지 않았을 때 생길 수 있습니다. 또는tuncheck -r -f가bosboot를 실행하라고 했는데 실행하지 않았을 때도 생깁니다.
영어 원문
Reboot tuning procedure
Parameters of type Bosboot are set by the bosboot command, which retrieves their values from the nextboot file when creating a new boot image.
Parameters of type Reboot are set during the reboot process by the appropriate configuration methods, which also retrieve the necessary values from the nextboot file. In both cases, if there is no nextboot file, the parameters will be set to their default values. All other parameters are set using the following process:
When tunrestore -R is called, any tunable changed from its default value is logged in the lastboot.log file. The parameters of type Reboot and Bosboot present in the nextboot file, and which should already have been changed by the time tunrestore -R is called, will be checked against the value in the file, and any difference will also be logged.
The lastboot file will record all the tunable parameter settings, including default values, which will be flagged using # DEFAULT VALUE, and the
AIX_level,Kernel_type,Last_validation, andLogfile_checksumfields will be set appropriately.If there is no /etc/tunables/nextboot file, all tunable parameters, except those of type Bosboot, will be set to their default value, a nextboot file with only an info stanza will be created, and the following warning: "
cannot access the /etc/tunables/nextboot file" will be printed in the log file. The lastboot file will be created as described in step 2.If the desired value for a parameter is found to be out of range, the parameter will be left to its default value, and a message similar to the following: "
Parameter A could not be set to X, which is out of range, and was left to its current value (Y) instead" will be printed in the log file. Similarly, if a set of interdependent parameters have values incompatible with each other, they will all be left at their default values and a message similar to the following: "Dependent parameter A, B and C could not be set to X, Y and Z because those values are incompatible with each other. Instead, they were left to their current values (T, U and V)" will be printed in the log file. All of these error conditions could exist if a user modified the /etc/tunables/nextboot file with an editor or copied it from another machine, possibly running a different version of AIX with different valid ranges, and did not run tuncheck -r -f on the file. Alternatively, tuncheck -r -f prompted the user to run bosboot, but this was not done.
복구 절차
어떤 nextboot 파일 때문에 시스템이 불안정해지면, 시스템을 유지 보수 모드로 들어가게 하고, sys0의 pre520tune 속성이 disable인지 확인하고, nextboot 파일을 지우고, bosboot 명령을 실행하고 재부팅합니다. 그러면 모든 튜닝 매개변수가 기본값으로 설정됩니다.
영어 원문
Recovery Procedure
If the machine becomes unstable with a given nextboot file, users should put the system into maintenance mode, make sure the sys0 pre520tune attribute is set to disable, delete the nextboot file, run the bosboot command and reboot. This action will guarantee that all tunables are set to their default value.
SMIT으로 커널 튜닝하기
AIX 커널 튜닝 매개변수를 관리하는 SMIT 화면을 시작하려면 SMIT 빠른 경로 smitty tuning을 씁니다.
튜닝 화면은 다음과 같습니다.
Tuning Kernel & Network Parameters
Save/Restore All Kernel & Network Parameters
Tuning Scheduler and Memory Load Control Parameters
Tuning Virtual Memory Manager Parameters
Tuning Network Parameters
Tuning NFS Parameters
Tuning I/O Parameters
Tuning RAS Parameters
Tuning Development Parameters
모든 튜닝 매개변수 값을 한꺼번에 다루려면 Save/Restore All Kernel & Network Parameters를 고릅니다. 튜닝 명령 하나가 관리하는 매개변수를 하나씩 바꾸려면 다른 줄을 고릅니다.
영어 원문
Kernel tuning using the SMIT interface
To start the SMIT panels that manage AIX kernel tuning parameters, use the SMIT fast path smitty tuning.
The following is a view of the tuning panel:
Tuning Kernel & Network Parameters
Save/Restore All Kernel & Network Parameters
Tuning Scheduler and Memory Load Control Parameters
Tuning Virtual Memory Manager Parameters
Tuning Network Parameters
Tuning NFS Parameters
Tuning I/O Parameters
Tuning RAS Parameters
Tuning Development Parameters
Select Save/Restore All Kernel & Network Parameters to manipulate all tuning parameter values at the same time. To individually change tuning parameters managed by one of the tuning commands, select any of the other lines.
튜닝 매개변수를 한꺼번에 다루기
모든 튜닝 매개변수를 묶음으로 다루는 주 화면은 다음과 비슷합니다.
Save/Restore All Kernel Tuning Parameters
View Last Boot Parameters
View Last Boot Log File
Save All Current Parameters for Next Boot
Save All Current Parameters
Restore All Current Parameters from Last Boot Values
Restore All Current Parameters from Saved Values
Reset All Current Parameters To Default Value
Save All Next Boot Parameters
Restore All Next Boot Parameters from Last Boot Values
Restore All Next Boot Parameters from Saved Values
Reset All Next Boot Parameters To Default Value
화면의 각 항목은 다음과 같습니다.
- View Last Boot Parameters:
/etc/tunables/lastboot파일에서 가져온 마지막 부팅 매개변수를 스탠자별로 모두 보여 줍니다. - View Last Boot Log File:
/etc/tunables/lastboot.log파일의 내용을 보여 줍니다. - Save All Current Parameters for Next Boot
Save All Current Kernel Tuning Parameters for Next Boot
ARE YOU SURE ?
yes를 고르고 Enter를 누르면 현재 튜닝 매개변수 값이 모두 /etc/tunables/nextboot 파일에 저장됩니다. 필요하면 bosboot를 권합니다.
- Save All Current Parameters
Save All Current Kernel Tuning Parameters
File name []
Description []
입력 필드 두 개에 값을 넣거나 고릅니다.
- File name: F4를 누르면 기존 파일 목록이 나옵니다. 특별한 용도가 있는 nextboot, lastboot, lastboot.log를 뺀
/etc/tunables디렉터리의 모든 파일입니다. 이 세 이름은 쓸 수 없습니다. - Description: 고른 파일의 info 스탠자에 쓰입니다.
Enter를 누르면 현재 튜닝 매개변수 값이 모두 /etc/tunables 디렉터리의 고른 스탠자 파일에 저장됩니다.
- Restore All Current Parameters from Last Boot Values
Restore All Current Parameters from Last Boot Values
ARE YOU SURE ?
yes를 고르고 Enter를 누르면 모든 튜닝 매개변수가 /etc/tunables/lastboot 파일의 값으로 설정됩니다. Bosboot나 Reboot 유형 매개변수를 바꿔야 하면 오류 메시지가 나옵니다. 이런 매개변수는 재부팅 값을 바꿀 때만 바꿀 수 있습니다.
- Restore All Current Parameters from Saved Values
Restore Saved Kernel Tuning Parameters
Move cursor to desired item and press Enter.
mytunablefile Description field of mytunable file
tun1 Description field of lastweek file
특별한 용도의 nextboot, lastboot, lastboot.log를 뺀 /etc/tunables 디렉터리의 기존 파일이 선택 메뉴에 나옵니다. Enter를 누르면 고른 파일에 있는 매개변수가 가능하면 파일의 값으로 설정됩니다. Bosboot나 Reboot 유형 매개변수를 바꿔야 하면 현재 값으로는 바꿀 수 없으므로 오류 메시지가 나옵니다. 파일의 값이 현재 값보다 작은 Incremental 유형 매개변수, 범위를 벗어나거나 서로 맞지 않는 값에도 오류 메시지가 나옵니다. 가능한 변경은 모두 합니다.
- Reset All Current Parameters To Default Value
Reset All Current Kernel Tuning Parameters To Default Value
ARE YOU SURE ?
Enter를 누르면 모든 튜닝 매개변수가 기본값으로 되돌아갑니다. Bosboot와 Reboot 유형 매개변수는 바뀌지 않으며, 기본값으로 돌리려면 바꿔야 했을 경우 오류 메시지가 나옵니다.
- Save All Next Boot Parameters
Save All Next Boot Kernel Tuning Parameters
File name []
입력 필드에 값을 넣거나 고릅니다. F4를 누르면 특별한 용도의 세 파일을 뺀 /etc/tunables의 기존 파일 목록이 나오며, 그 세 이름은 쓸 수 없습니다. Enter를 누르면 tuncheck를 통과할 때 nextboot 파일이 지정한 /etc/tunables 파일로 복사됩니다.
- Restore All Next Boot Parameters from Last Boot Values
Restore All Next Boot Kernel Tuning Parameters from Last Boot Values
ARE YOU SURE ?
yes를 고르고 Enter를 누르면 lastboot 파일의 모든 값이 nextboot 파일로 복사됩니다. 필요하면 bosboot를 실행하라고 묻고, 모든 변경이 효과를 내려면 재부팅해야 한다고 경고합니다.
- Restore All Next Boot Parameters from Saved Values
Restore All Next Boot Kernel Tuning Parameters from Saved Values
Move cursor to desired item and press Enter.
mytunablefile Description field of mytunablefile file
tun1 Description field of tun1 file
특별한 용도의 세 파일을 뺀 /etc/tunables의 기존 파일이 선택 메뉴에 나옵니다. 파일을 고르고 Enter를 누르면 먼저 tuncheck를 통과한 경우 그 파일의 모든 값이 nextboot 파일로 복사됩니다. 필요하면 bosboot를 실행하라고 묻고, 재부팅이 필요하다고 경고합니다.
- Reset All Next Boot Parameters To Default Value
Reset All Next Boot Kernel Tuning Parameters To Default Value
ARE YOU SURE ?
Enter를 누르면 /etc/tunables/nextboot 파일이 비워집니다. 필요하면 bosboot를 권하고 재부팅이 필요하다는 메시지를 보여 줍니다.
영어 원문
Global manipulation of tuning parameters
Review the following steps to globally manipulate tuning parameters.
The main panel to manipulate all tunable parameters by sets looks similar to the following:
Save/Restore All Kernel Tuning Parameters
View Last Boot Parameters
View Last Boot Log File
Save All Current Parameters for Next Boot
Save All Current Parameters
Restore All Current Parameters from Last Boot Values
Restore All Current Parameters from Saved Values
Reset All Current Parameters To Default Value
Save All Next Boot Parameters
Restore All Next Boot Parameters from Last Boot Values
Restore All Next Boot Parameters from Saved Values
Reset All Next Boot Parameters To Default Value
Each of the options in this panel are explained in the following sections.
View Last Boot Parameters All last boot parameters are listed stanza by stanza, retrieved from the /etc/tunables/lastboot file.
View Last Boot Log File Displays the content of the file /etc/tunables/lastboot.log.
Save All Current Parameters for Next Boot
Save All Current Kernel Tuning Parameters for Next Boot
ARE YOU SURE ?
After selecting yes and pressing ENTER, all the current tuning parameter values are saved in the /etc/tunables/nextboot file. Bosboot will be offered if necessary.
- Save All Current Parameters
Save All Current Kernel Tuning Parameters
File name []
Description []
Type or select values for the two entry fields:
File name: F4 will show the list of existing files. This is the list of all files in the /etc/tunables directory except the files nextboot, lastboot and lastboot.log which all have special purposes. File names entered cannot be any of the above three reserved names.
Description: This field will be written in the info stanza of the selected file.
After pressing ENTER, all of the current tuning parameter values will be saved in the selected stanza file of the /etc/tunables directory.
- Restore All Current Parameters from Last Boot Values
Restore All Current Parameters from Last Boot Values
ARE YOU SURE ?
After selecting yes and pressing ENTER, all the tuning parameters will be set to values from the /etc/tunables/lastboot file. Error messages will be displayed if any parameter of type Bosboot or Reboot would need to be changed, which can only be done when changing reboot values.
- Restore All Current Parameters from Saved Values
Restore Saved Kernel Tuning Parameters
Move cursor to desired item and press Enter.
mytunablefile Description field of mytunable file
tun1 Description field of lastweek file
A select menu shows existing files in the /etc/tunables directory, except the files nextboot, lastboot and lastboot.log which all have special purposes. After pressing ENTER, the parameters present in the selected file in the /etc/tunables directory will be set to the value listed if possible. Error messages will be displayed if any parameter of type Bosboot or Reboot would need to be changed, which can't be done on the current values. Error messages will also be displayed for any parameter of type Incremental when the value in the file is smaller than the current value, and for out of range and incompatible values present in the file. All possible changes will be made.
- Reset All Current Parameters To Default Value
Reset All Current Kernel Tuning Parameters To Default Value
ARE YOU SURE ?
After pressing ENTER, each tunable parameter will be reset to its default value. Parameters of type Bosboot and Reboot, are never changed, but error messages are displayed if they should have been changed to get back to their default values.
- Save All Next Boot Parameters
Save All Next Boot Kernel Tuning Parameters
File name []
Type or a select values for the entry field. Pressing F4 displays a list of existing files. This is the list of all files in the /etc/tunables directory except the files nextboot, lastboot and lastboot.log which all have special purposes. File names entered cannot be any of those three reserved names. After pressing ENTER, the nextboot file, is copied to the specified /etc/tunables file if it can be successfully tunchecked.
- Restore All Next Boot Parameters from Last Boot Values
Restore All Next Boot Kernel Tuning Parameters from Last Boot Values
ARE YOU SURE ?
After selecting yes and pressing ENTER, all values from the lastboot file will be copied to the nextboot file. If necessary, the user will be prompted to run bosboot, and warned that for all the changes to be effective, the machine must be rebooted.
- Restore All Next Boot Parameters from Saved Values
Restore All Next Boot Kernel Tuning Parameters from Saved Values
Move cursor to desired item and press Enter.
mytunablefile Description field of mytunablefile file
tun1 Description field of tun1 file
A select menu shows existing files in the /etc/tunables directory, except the files nextboot, lastboot and lastboot.log which all have special purposes. After selecting a file and pressing ENTER, all
values from the selected file will be copied to the nextboot file, if the file was successfully tunchecked first. If necessary, the user will be prompted to run bosboot, and warned that for all the changes to be effective, rebooting the machine is necessary.
- Reset All Next Boot Parameters To Default Value
Reset All Next Boot Kernel Tuning Parameters To Default Value
ARE YOU SURE ?
After hitting ENTER, the /etc/tunables/nextboot file will be cleared. If necessary bosboot will be proposed and a message indicating that a reboot is needed will be displayed.
튜닝 명령 하나의 매개변수를 하나씩 바꾸기
여섯 명령의 화면은 모두 같은 방식으로 동작합니다. 아래에서는 스케줄러와 메모리 부하 제어(곧 schedo) 화면을 예로 동작을 설명합니다.
schedo 명령이 관리하는 매개변수를 다루는 주 화면입니다.
Tuning Scheduler and Memory Load Control Parameters
List All Characteristics of Current Parameters
Change / Show Current Parameters
Change / Show Parameters for next boot
Save Current Parameters for Next Boot
Reset Current Parameters to Default value
Reset Next Boot Parameters To Default Value
영어 원문
Changing individual parameters managed by a tuning command
All the panels for all six commands behave the same way. In the following sections, we will use the example of the Scheduler and Memory Load Control (i.e. schedo) panels to explain the behavior.
Here is the main panel to manipulate parameters managed by the schedo command:
Tuning Scheduler and Memory Load Control Parameters
List All Characteristics of Current Parameters
Change / Show Current Parameters
Change / Show Parameters for next boot
Save Current Parameters for Next Boot
Reset Current Parameters to Default value
Reset Next Boot Parameters To Default Value
매개변수 유형과 SMIT 하위 화면의 관계
매개변수 유형과 SMIT 하위 화면의 관계는 다음과 같습니다.
| 하위 화면 | 동작 |
|---|---|
| List All Characteristics of Current Parameters | 현재 값, 기본값, 재부팅 값, 한계 값, 단위, 유형, 의존 관계를 나열합니다. 튜닝 명령을 -L 옵션으로 부른 출력입니다. |
| Change / Show Current Parameters | 현재 매개변수 값을 보여 주고 바꿉니다. Static, Bosboot, Reboot 유형은 대괄호 없이 보여 주어 바꿀 수 없음을 나타냅니다. |
| Change / Show Parameters for Next Boot | nextboot 파일의 값을 보여 주고 바꾼 값을 다시 씁니다. 필요하면 bosboot를 권합니다. Static 유형만 바꿀 수 없습니다(값에 대괄호 없음). |
| Save Current Parameters for Next Boot | 현재 매개변수를 nextboot 파일에 씁니다. Bosboot 유형 매개변수가 바뀌었으면 bosboot를 권합니다. |
| Reset Current Parameters to Default value | bosboot와 재부팅 또는 재부팅이 필요한 것(Bosboot, Reboot 유형)을 빼고 현재 매개변수를 기본값으로 되돌립니다. |
| Reset Next Boot Parameters to Default value | nextboot 파일의 값을 비우고, Bosboot 유형 매개변수가 기본값과 달랐으면 bosboot를 권합니다. |
스케줄러와 메모리 부하 제어 하위 화면을 예로 각 하위 화면의 동작을 설명합니다.
- List All Characteristics of Tuning Parameters:
schedo -L의 출력을 보여 줍니다. - Change/Show Current Scheduler and Memory Load Control Parameters
Change / Show Current Scheduler and Memory Load Control Parameters
[Entry Field]
affinity_lim [7]
idle_migration_barrier [4]
fixed_pri_global [0]
maxspin [1]
pacefork [10]
sched_D [16]
sched_R [16]
timeslice [1]
%usDelta [100]
v_exempt_secs [2]
v_min_process [2]
v_repage_hi [2]
v_repage_proc [6]
v_sec_wait [4]
이 화면은 현재 schedo 값(schedo -a 명령의 출력)으로 채워집니다. Bosboot, Reboot, Static 유형 매개변수는 바꿀 수 없음을 나타내도록 대괄호 없이 보여 줍니다. 바꿀 매개변수의 입력 필드에 값을 넣거나 F4 목록에서 고릅니다. 값을 지우면 그 매개변수는 기본값으로 되돌아갑니다. F4 목록에는 최솟값, 최댓값, 기본값, 단위, 유형도 나옵니다. F1을 누르면 고른 매개변수의 도움말이 나오며, 튜닝 명령을 -h 옵션으로 불렀을 때와 같은 내용입니다. 필요한 변경을 모두 한 뒤 Enter를 누르면 schedo 명령이 실행되어 변경을 적용합니다. 범위를 벗어난 값, 서로 맞지 않는 값, Incremental 유형의 더 작은 값 등으로 명령이 낸 오류 메시지는 사용자에게 보여 줍니다.
- 다음 부팅용 Change / Show Scheduler and Memory Load Control Parameters 화면의 예입니다.
Change / Show Scheduler and Memory Load Control Parameters for next boot
[Entry Field]
affinity_lim [7]
idle_migration_barrier [4]
fixed_pri_global [0]
maxpin [1]
pacefork [10]
sched_D [16]
sched_R [16]
timeslice [1]
%usDelta [100]
v_exempt_secs [2]
v_min_process [2]
v_repage_hi [2]
v_repage_proc [6]
v_sec_wait [4]
앞 화면과 비슷하게 Static 유형을 뺀 모든 매개변수 값을 바꿀 수 있습니다. /etc/tunables/nextboot 파일의 값과, 파일에 없는 매개변수의 기본값으로 채워집니다. 바꿀 매개변수의 입력 필드에 값을 넣거나 F4 목록에서 고릅니다. 값을 지우면 기본값으로 되돌아갑니다. F4 목록에는 최솟값, 최댓값, 기본값, 단위, 유형도 나오고, F1을 누르면 -h와 같은 도움말이 나옵니다. 원하는 변경을 모두 한 뒤 Enter를 누르면 화면에서 바꾼 값으로 /etc/tunables/nextboot 파일이 갱신됩니다. 범위를 벗어나거나 서로 맞지 않는 값은 갱신하지 않고 오류 메시지를 보여 줍니다. 필요하면 bosboot를 실행하라고 묻습니다.
- Save Current Scheduler and Memory Load Control Parameters for Next Boot 화면의 예입니다.
Save Current Scheduler and Memory Load Control Parameters for Next Boot
ARE YOU SURE ?
이 화면에서 Enter를 누르면 현재 schedo 매개변수 값이 모두 /etc/tunables/nextboot 파일에 저장됩니다. Bosboot 유형 매개변수를 바꿔야 하면 bosboot를 실행하라고 묻습니다.
- Reset Current Scheduler and Memory Load Control Parameters to Default Values 화면의 예입니다.
Reset Current Scheduler and Memory Load Control Parameters to Default Value
ARE YOU SURE ?
yes를 고르고 Enter를 누르면 schedo 명령이 관리하는 모든 튜닝 매개변수가 기본값으로 되돌아갑니다. Incremental, Bosboot, Reboot 유형 매개변수를 바꿔야 했다면 대신 오류 메시지가 나옵니다.
- Reset Scheduler and Memory Load Control Next Boot Parameters To Default Values 화면의 예입니다.
Reset Next Boot Parameters To Default Value
ARE YOU SURE ?
Enter를 누르면 /etc/tunables/nextboot 파일의 schedo 스탠자가 비워집니다. 변경은 다음 재부팅까지 미뤄집니다. 필요하면 bosboot를 권합니다.
영어 원문
Interaction between parameter types and the different SMIT sub-panels
Review the following information to learn about the SMIT panel actions.
The following table shows the interaction between parameter types and the different SMIT sub-panels:
- List All Characteristics of Current Parameters — Lists current, default, reboot, limit values, unit, type and dependencies. This is the output of a tuning command called with the
-Loption. - Change / Show Current Parameters — Displays and changes current parameter value, except for parameter of type Static, Bosboot and Reboot which are displayed without surrounding square brackets to indicate that they cannot be changed.
- Change / Show Parameters for Next Boot — Displays values from and rewrite updated values to the nextboot file. If necessary, bosboot will be proposed. Only parameters of type Static cannot be changed (no brackets around their value).
- Save Current Parameters for Next Boot — Writes current parameters in the nextboot file, bosboot will be proposed if any parameter of type Bosboot was changed.
- Reset Current Parameters to Default value — Resets current parameters to default values, except those which need a bosboot plus reboot or a reboot (bosboot and reboot type).
- Reset Next Boot Parameters to Default value — Clears values in the nextboot file, and propose bosboot if any parameter of type Bosboot was different from its default value.
Each of the sub-panels behavior is explained in the following sections using examples of the scheduler and memory load control sub-panels:
List All Characteristics of Tuning Parameters The output of schedo -L is displayed.
Change/Show Current Scheduler and Memory Load Control Parameters
(16줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
This panel is initialized with the current schedo values (output from the schedo -a command). Any parameter of type Bosboot, Reboot or Static is displayed with no surrounding square bracket indicating that it cannot be changed. From the F4 list, type or select values for the entry fields corresponding to parameters to be changed. Clearing a value results in resetting the parameter to its default value. The F4 list also shows minimum, maximum, and default values, the unit of the parameter and its type. Selecting F1 displays the help associated with the selected parameter. The text displayed will be identical to what is displayed by the tuning commands when called with the -h option. Press ENTER after making all the required changes. Doing so will launch the schedo command to make the changes. Any error message generated by the command, for values out of range, incompatible values, or lower values for parameter of type Incremental, will be displayed to the user.
- The following is an example of the Change / Show Scheduler and Memory Load Control Parameters for next boot panel.
(16줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
This panel is similar to the previous panel, in that, any parameter value can be changed except for parameters of type Static. It is initialized with the values listed in the /etc/tunables/nextboot file, completed with default values for the parameter not listed in the file. Type or select (from the F4 list) values for the entry field corresponding to the parameters to be changed. Clearing a value results in resetting the parameter to its default value. The F4 list also shows minimum, maximum, and default values, the unit of the parameter and its type. Pressing F1 displays the help associated with the selected parameter. The text displayed will be identical to what is displayed by the tuning commands when called with the -h option. Press ENTER after making all desired changes. Doing so will result in
the/etc/tunables/nextboot file being updated with the values modified in the panel, except for out of range, and incompatible values for which an error message will be displayed instead. If necessary, the user will be prompted to run bosboot.
- The following is an example of the Save Current Scheduler and Memory Load Control Parameters for Next Boot panel.
Save Current Scheduler and Memory Load Control Parameters for Next Boot
ARE YOU SURE ?
After pressing ENTER on this panel, all the current schedo parameter values will be saved in the /etc/tunables/nextboot file . If any parameter of type Bosboot needs to be changed, the user will be prompted to run bosboot.
- The following is an example of the Reset Current Scheduler and Memory Load Control Parameters to Default Values
Reset Current Scheduler and Memory Load Control Parameters to Default Value
ARE YOU SURE ?
After selecting yes and pressing ENTER on this panel, all the tuning parameters managed by the schedo command will be reset to their default value. If any parameter of type Incremental, Bosboot or Reboot should have been changed, and error message will be displayed instead.
- The following is an example of the Reset Scheduler and Memory Load Control Next Boot Parameters To Default Values
Reset Next Boot Parameters To Default Value
ARE YOU SURE ?
After pressing ENTER, the schedo stanza in the /etc/tunables/nextboot file will be cleared. This will defer changes until next reboot. If necessary, bosboot will be proposed.
웹 기반 시스템 관리자의 Performance 플러그인으로 커널 튜닝하기
AIX 커널 튜닝 매개변수는 웹 기반 시스템 관리자(WebSM)의 System Tuning 플러그인으로 관리할 수 있습니다. System Tuning은 Performance 플러그인의 하위 플러그인입니다.
Performance 플러그인은 웹 기반 시스템 관리자 주 콘솔에서 열 수 있습니다(원문 그림 1).
Performance 플러그인은 다음 하위 플러그인으로 이루어집니다.
- Performance Monitoring 플러그인
- System Tuning 플러그인
Performance Monitoring 하위 플러그인은 여러 성능 감시·보고서 도구를 열어 줍니다. System Tuning 하위 플러그인은 CPU, Memory, RAS, Disk I/O, Network I/O 하위 플러그인으로 이루어지며, AIX 튜닝 매개변수를 보고 바꿀 수 있는 튜닝 표를 보여 줍니다.
System Tuning 플러그인의 탐색 영역에는 세 단계의 하위 플러그인이 있습니다. 중간 단계는 튜닝 자원을 나타내며, 다시 하위 플러그인으로 나뉘지만 특별한 동작은 없고 튜닝 매개변수를 논리적으로 묶어 보여 주는 역할만 합니다. 튜닝 매개변수에 대한 동작은 다음 단계에서 할 수 있습니다.
System-Tuning 단계
모든 튜닝 매개변수에 적용되는 전역 동작이 이 단계에 있습니다.
Leaf 단계
Leaf는 폴더 아이콘으로 나타납니다(원문 그림 2의 탐색 영역). Leaf를 고르면 내용 영역에 튜닝 표가 나옵니다. 표는 튜닝 명령(schedo, vmo, ioo, raso, no, nfso) 가운데 하나가 관리하는 튜닝 매개변수의 논리적 묶음입니다. 이 단계의 동작은 현재 표에 나온 튜닝 매개변수에만 적용됩니다.
CPU/All Processes 하위 플러그인은 Processes 응용 프로그램의 All Processes 하위 플러그인으로 가는 링크입니다. 튜닝 매개변수를 다루는 것이 아니므로 설명하지 않습니다.
파일
| 파일 | 설명 |
|---|---|
/etc/tunables/lastboot |
마지막 부팅의 튜닝 매개변수 스탠자 |
/etc/tunables/lastboot.log |
마지막 부팅의 기록 |
/etc/tunables/nextboot |
다음 시스템 부팅의 튜닝 매개변수 스탠자 |
영어 원문
Kernel Tuning using the Performance Plug-In for Web-based System Manager
AIX kernel tuning parameters can be managed using the Web-based System Manager System Tuning Plug-in, which is a sub-plugin of the Web-based System Manager Performance plug-in.
The Performance Plug-in is available from the Web-based System Manager main console which looks similar to the following:
The Performance plug-in is organized into the following sub-plugins:
Performance Monitoring plug-in
System Tuning plug-in
The Performance Monitoring sub-plugin gives access to a variety of performance-monitoring and report-generation tools. The System Tuning sub-plugin consists of CPU, Memory, RAS, Disk I/O, and Network I/O sub-plugins, which present tuning tables from which AIX tuning parameters can be visualized and changed.
The Navigation Area for the System Tuning plug-in contains three levels of sub-plugins as seen in the following: Figure 1. Performance Plug-in shown in Web-based System Manager main console
These intermediate levels represent tuning resources. They are further split into sub-plugins but have no specific actions associated with them and only exist to group access to tunable parameters in a logical way. Actions on tunable parameters can be applied at the following levels:
System-Tuning level
Global actions applicable to all tunable parameters are provided at this level.
Leaf Levels
Leaves are represented by a folder icon (see navigation area in Figure 2). When selecting a leaf, a tuning table is displayed in the content area. A table represents a logical group of tunable parameters, all managed by one of the tunable commands (schedo, vmo, ioo, raso, no, and nfso). Specific actions provided at this level apply only to the tunable parameters displayed in the current table.
The CPU/All Processes sub-plugin is a link to the All Processes sub-plugin of the Processes application. Its purpose is not to manipulate tuning parameters and will not be discussed.
Files
Figure 2. System Tuning plug-in Performance window
- /etc/tunables/lastboot — Contains tuning parameter stanzas from the last boot.
- /etc/tunables/lastboot.log — Contains logging information from the last boot.
- /etc/tunables/nextboot — Contains tuning parameter stanzas for the next system boot.
튜닝 매개변수의 전역 동작
웹 기반 시스템 관리자의 Tuning 메뉴에만 특별한 동작이 있습니다.
이 단계의 동작은 모든 성능 튜닝 매개변수에 적용되는 전역 동작입니다.
- View Last Boot Parameters:
/etc/tunables/lastboot파일을 작업 대화상자에 보여 줍니다. - View Last Boot Log File:
/etc/tunables/lastboot.log파일을 작업 대화상자에 보여 줍니다. - Save All Current Parameters for Next Boot: Save All Current Parameters 경고 대화상자가 열립니다. Yes를 누르면 현재 튜닝 매개변수 값이 모두
/etc/tunables/nextboot파일에 저장됩니다. 필요하면bosboot를 권합니다. - Save All Current Parameters: Filename 필드와 Description 필드가 있는 Save All Current Parameters 대화상자가 열립니다. 편집 가능한 Filename 콤보 상자에는 특별한 용도의 nextboot, lastboot, lastboot.log를 뺀
/etc/tunables의 모든 튜닝 파일이 나옵니다. 파일이 없으면 목록이 비어 있습니다. 기존 파일을 고르거나 새 이름을 넣어 새 파일을 만들 수 있으며, 세 예약 이름은 쓸 수 없습니다. Description 필드는 고른 파일의 info 스탠자에 쓰입니다. OK를 누르면 현재 튜닝 매개변수 값이 모두 고른 파일에 저장됩니다. - Save All Next Boot Parameters: 특별한 용도의 세 파일을 뺀
/etc/tunables의 튜닝 파일을 보여 주는 편집 가능한 콤보 상자가 열립니다. 기존 파일을 고르거나 새 이름을 넣을 수 있으며, 세 예약 이름은 쓸 수 없습니다. OK를 누르면tuncheck명령으로 검사를 통과할 때 nextboot 파일이 지정한/etc/tunables파일로 복사됩니다. - Restore All Current Parameters: 특별한 용도의 nextboot와 lastboot.log를 뺀
/etc/tunables의 모든 기존 파일을 보여 주는 편집 가능한 콤보 상자가 열립니다. 튜닝 매개변수의 현재 값을 복원할 파일을 고르며, lastboot 파일이 기본(목록의 첫 항목)으로 제안됩니다. 파일에 설명이 있으면 콤보 상자 항목에서 이름 뒤에 대시로 구분해 보여 줍니다. OK를 누르면 고른 파일에 있는 매개변수가 가능하면 파일의 값으로 설정됩니다. Bosboot나 Reboot 유형을 바꿔야 하면 현재 값으로는 바꿀 수 없으므로 오류 메시지가 나옵니다. 파일 값이 현재 값보다 작은 Incremental 유형, 범위를 벗어나거나 서로 맞지 않는 값에도 오류 메시지가 나옵니다. 가능한 변경은 모두 합니다. - Restore All Next Boot Parameters: 특별한 용도의 nextboot와 lastboot.log를 뺀
/etc/tunables의 모든 기존 파일을 보여 주는 콤보 상자가 열립니다. 튜닝 매개변수의 nextboot 값을 복원할 파일을 고르며, lastboot 파일이 기본으로 제안됩니다. 파일 설명은 이름 뒤에 대시로 구분해 보여 줍니다. OK를 누르면 고른 파일의 모든 값이/etc/tunables/nextboot파일로 복사됩니다. 서로 맞지 않는 의존 매개변수 값이나 범위를 벗어난 값은 복사하지 않고 오류 메시지를 보여 줍니다(고른 파일을 미리tuncheck하지 않았으면 생길 수 있음). 필요하면bosboot를 실행하라고 묻고, 재부팅이 필요하다고 경고합니다. - Reset All Current Parameters to Default Values: 경고 대화상자가 열리고, Yes를 누르면 작업 대화상자가 나오며 모든 튜닝 매개변수가 기본값으로 되돌아갑니다. Incremental, Bosboot, Reboot 유형은 바뀌지 않으며, 기본값으로 돌리려면 바꿔야 했을 경우 오류 메시지가 나옵니다.
- Reset All Next Boot Parameters to Default Values: 경고 대화상자가 열리고, Yes를 누르면 대화형 작업 대화상자가 나오며
/etc/tunables/nextboot파일이 비워집니다. 필요하면bosboot를 권하고 재부팅이 필요하다는 메시지를 보여 줍니다.
영어 원문
Global actions on tunable parameters
Only the Web-based System Manager Tuning menu has specific actions associated with it.
The specific actions available at this level are global, in that they apply to all the performance tunable parameters.
View Last Boot Parameters This action displays the /etc/tunables/lastboot file in an open working dialog.
View Last Boot Log FileThis action displays the /etc/tunables/lastboot.log file in an open working dialog.
Save All Current Parameters for Next Boot The Save All Current Parameters warning dialog is opened. Figure 3. Web-based System Manager Tuning menu
After clicking Yes, all the current tuning parameter values will be saved in the /etc/tunables/nextboot file. Bosboot will be offered if necessary.
- Save All Current Parameters The Save All Current Parameters dialog with a Filename field and a Description field is opened.
The Filename editable combobox, lists all the tunable files present in the /etc/tunables directory, except the nextboot, lastboot and lastboot.log files, which all have special purposes. If no file is present, the combobox list is empty. The user can choose an existing file, or create a new file by entering a new name. File names entered cannot be any of the three reserved names. The Description field will be written in the info stanza of the selected file. After clicking OK, all the current tuning parameter values will be saved in the selected file in the /etc/tunables directory.
- Save All Next Boot Parameters Figure 4. Save All Current Parameters for next boot dialog
Figure 5. Save All Current Parameters to file dialog
This action opens an editable combobox which lists all the tunable files present in the /etc/tunables directory, except the nextboot, lastboot and lastboot.log files, which all have special purposes. If no file is present, the combobox list is empty. The user can choose an existing file, or create a new file by entering a new name. File names entered cannot be any of the three reserved names. After clicking OK, the nextboot file, is copied to the specified /etc/tunables file it can be successfully checked using the tuncheck command.
- Restore All Current ParametersThis action opens an editable combobox showing the list of all existing files in the /etc/tunables directory, except the files nextboot, and lastboot.log which have special purposes.
The user selects the file to use for restoring the current values of tuning parameters. The lastboot file is proposed as the default (first element of the combo list). Files can have a description which is displayed after the name in the combobox items, separated from the file name by a dash character. After clicking OK, the parameters present in the selected file in the /etc/tunables directory will be set to the value listed if possible. Error messages will be displayed if any parameter of type Bosboot or Reboot would need to be changed, which cannot be done on the current values. Error messages will also be displayed for any parameter of type Incremental when the value in the file is smaller than the current value, and for out of range and incompatible values present in the file. All possible changes will be made.
- Restore All Next Boot ParametersA combobox is opened to display the list of all existing files in the /etc/tunables directory, except the files nextboot, and lastboot.log which have special purposes. Figure 6. Save All Next Boot Parameters to file dialog
Figure 7. Restore All Current Parameters dialog
The user selects the file to use for restoring the nextboot values of tuning parameters. The lastboot file is proposed as the default (first element of the combo list). Files can have a description which is displayed after the name in the combobox items, separated from the file name by a dash character. After clicking OK, all values from the selected file will be copied to the /etc/tunables/nextboot file. Incompatible dependent parameter values or out of range values will not be copied to the file (this could happen if the file selected was not previously tunchecked). Error messages will be displayed instead. If necessary, the user will be prompted to run bosboot, and warned that for all the changes to be effective, rebooting the machine is necessary.
Reset All Current Parameters to Default Values A warning dialog is opened and after clicking Yes, a working dialog is displayed. Each tunable parameter is reset to its default value. Parameters of type Incremental, Bosboot and Reboot, are never changed, but error messages are displayed if they should have been changed to revert to default values.
Reset All Next Boot Parameters to Default Values A warning dialog is opened and after clicking Yes, an interactive working dialog is displayed and the /etc/tunables/nextboot file is cleared. If necessary bosboot will be proposed and a message indicating that a reboot is needed will be displayed.
튜닝 표로 매개변수 값을 하나씩 바꾸기
내용 영역의 튜닝 표는 모두 구조가 같아, 튜닝 매개변수의 모든 특성을 한눈에 볼 수 있습니다.
표에는 편집할 수 있는 열이 두 개, Current Value와 Next Boot Value가 있습니다. 두 열의 칸은 모두 편집 가능한 콤보 상자이며, 새 값을 입력하는 데 쓰고 미리 정의된 값은 Default 하나뿐입니다. 입력한 값은 Enter를 누르면 검증됩니다.
매개변수는 SMIT 화면과 같은 방식으로 묶이며 작은 예외가 두 가지 있습니다. 첫째, 네트워크 관련 매개변수는 SMIT에서는 한 화면에 여섯 절로 나뉘어 나오지만 웹 기반 시스템 관리자는 표 여섯 개로 나눕니다.
둘째, schedo 명령이 관리하는 매개변수는 CPU/scheduling과 memory/scheduling 두 하위 플러그인에서 다룹니다.
할 수 있는 동작은 매개변수 유형에 따라 다릅니다.
- Static 매개변수에는 편집할 수 있는 칸이 없습니다.
- Dynamic 매개변수의 새 값은 지금 적용하거나 다음 부팅용으로 저장할 수 있습니다.
- Reboot 매개변수의 새 값은 다음 부팅용으로만 저장할 수 있습니다.
- Bosboot 매개변수의 새 값은 다음 부팅용으로만 저장할 수 있고,
bosboot를 실행하라고 묻습니다. - Mount 매개변수의 새 값은 지금 적용하거나 다음 부팅용으로 저장할 수 있지만, 지금 적용하면 이후의 파일 시스템·디렉터리 마운트에만 효과가 있다는 경고가 나옵니다.
- Incremental 매개변수의 새 값은 지금 적용하거나 다음 부팅용으로 저장할 수 있습니다. 지금 적용하면 새 값이 현재 값보다 클 때만 받아들입니다.
영어 원문
Using tuning tables to change individual parameter values
Each tuning table in the content area has the same structure. It enables all the characteristics of the tunable parameters to be viewed at a glance.
The table has two editable columns, Current Value and Next Boot Value. Each cell in these two columns is an editable combobox, with only one predefined value of Default, for the capture of new value for a parameter. Data entered in these columns is validated when pressing ENTER. Figure 8. Restore All Next Boot Parameters dialog
The parameters are grouped as they are in the SMIT panels with two small exceptions. First, the Network related parameters are all presented in one SMIT panel, but subdivided in six sections. The Web-based System Manager interface uses six separate tables instead.
Lastly, the parameters managed by the schedo command are available from two sub-plugins: CPU/scheduling and memory/scheduling.
Actions permitted vary according to parameter types:
Static parameters do not have an editable cell.
New values for Dynamic parameters can be applied now or saved for next boot.
New values for Reboot parameters can only be saved for next boot.
New values for Bosboot parameters can only be saved for next boot, and users are prompted to run bosboot.
New values for Mount parameters can be applied now or saved for next boot, but when applied immediately, a warning will be displayed to tell the user that changes will only be effective for future file systems or directory mountings. • New values for Incremental parameters can be applied now or saved for next boot. If applied now, they will only be accepted if the new value is bigger than the current value.
튜닝 표의 동작
튜닝 표마다 할 수 있는 동작은 Save Changes, Save Current Parameters for Next Boot, Reset Parameters to System Default, Parameter Details, Monitor입니다. Monitor는 각 플러그인에서 관련 감시 도구를 시작하는 동작이며 이 절에서는 다루지 않습니다.
- Save Changes: 표의 Current Value와 Next Boot Value 열에 넣은 새 값을 저장하는 대화상자가 열립니다. 두 옵션은 기본으로 선택되어 있습니다.
- Update and apply current values를 고르고 OK를 누르면 표에 나온 매개변수에 해당하는 튜닝 명령이 실행되어 원하는 변경을 모두 적용합니다. 콤보 상자에서 Default를 새 값으로 고르면 그 매개변수가 기본값으로 되돌아갑니다. Incremental 유형의 새 값이 현재 값보다 작으면 오류 메시지가 나옵니다. 서로 맞지 않는 의존 매개변수 값이나 범위를 벗어난 값을 넣어도 오류 메시지가 나옵니다. 받아들일 수 있는 변경은 모두 합니다.
- Update next boot values를 고르고 OK를 누르면 원하는 변경을
/etc/tunables/nextboot파일에 씁니다. 필요하면bosboot를 실행하라고 묻습니다. 서로 맞지 않는 값이나 범위를 벗어난 값을 넣으면 오류 메시지가 나오고 그 값은 nextboot 파일에 복사되지 않습니다. - 두 옵션을 모두 고르면 원하는 변경을 지금과 다음 재부팅 모두에 적용합니다.
- Save Current Parameters for Next Boot: 경고 대화상자가 열립니다. Yes를 누르면 표에 나온 현재 매개변수 값이 모두
/etc/tunables/nextboot파일에 저장됩니다. Bosboot 유형 매개변수를 바꿔야 하면bosboot를 실행하라고 묻습니다. - Reset Parameters to System Default: 표에 나온 모든 매개변수의 현재 값이나 다음 부팅 값을 기본값으로 되돌리는 대화상자입니다. 다음 가운데 하나를 고를 수 있습니다.
- Reset current parameters to system default를 고르고 OK를 누르면 표에 나온 모든 튜닝 매개변수가 기본값으로 되돌아갑니다. Incremental, Bosboot, Reboot 유형 매개변수를 바꿔야 했다면 오류 메시지가 나오고 바뀌지 않습니다.
- Reset next boot parameters to system default를 고르고 OK를 누르면 표에 나온 매개변수를
/etc/tunables/nextboot파일에서 지웁니다. 변경은 다음 재부팅까지 미뤄지며, 필요하면bosboot를 권합니다.
영어 원문
Tunable tables actions
The actions available for each tunable table are Save Changes, Save Current Parameters for Next Boot, Reset Parameters to System Default, Parameter Details, and Monitor. The Monitor action enables related monitoring tools to start from each of the plug-ins and is not discussed in this section. Figure 9. Memory VMM window
- Save Changes This option opens a dialog enabling you to save new values for the parameters listed in the Current Value and Next Boot Value columns of the table. The two options are checked by default. They are: Figure 10. Tables Menus window
Figure 11. Save Changes dialog
Selecting Update and apply current values and clicking OK, launches the tuning command corresponding to the parameters shown in the table to make all the desired changes. Selecting Default in the combobox as the new value resets the parameter to its default value. If a parameter of type Incremental has a new value smaller than its current value, an error message will be displayed. If incompatible dependent parameter values or out of range values have been entered, an error message will also be displayed. All the acceptable changes will be made.
Selecting Update next boot values and clicking OK, writes the desired changes to the /etc/tunables/nextboot file. If necessary, the user will be prompted to run bosboot. If incompatible dependent parameter values or out of range values have been entered, an error message will be displayed, and those parameter values will not be copied to the nextboot file.
Selecting both options makes all the desired changes now and for the next reboot. •
- Save Current Parameters for Next Boot A warning dialog is opened.
After clicking Yes, all the current parameter values listed in the table will be saved in the /etc/tunables/nextboot file. If any parameter of type Bosboot needs to be changed, the user will be prompted to run bosboot.
- Reset Parameters to System Default This dialog permits resetting of current or next boot values for all the parameters listed in the table to their default value. Figure 12. Save All Current Parameters to file dialog
You can select one of the following options:
Selecting Reset current parameters to system default and clicking OK, will reset all the tuning parameters listed in the table to their default value. If any parameter of type Incremental, Bosboot or Reboot should have been changed, an error message will be displayed and the parameter will not be changed.
Selecting Reset next boot parameters to system default and clicking OK deletes the parameter listed in the table from the /etc/tunables/nextboot file. This action will defer changes until next reboot. If necessary, bosboot will be proposed.
매개변수 상세
도구 모음의 Parameter Details를 누르거나 같은 메뉴 항목을 고른 다음 표의 매개변수를 누르면 그 매개변수의 도움말이 도움말 대화상자에 나옵니다.
(6.1) 제한 매개변수 보기
튜닝 유형 메뉴의 Show Restricted Parameters 확인란을 누르면 제한 사용 개발 매개변수를 포함해 매개변수 목록을 다시 보여 줍니다. 개발 매개변수는 이름 뒤에 "(R)"을 붙여 다른 것과 구별합니다.
영어 원문
Parameter details
Clicking on Parameter Details in the toolbar or selecting the equivalent menu item, followed by a click on a parameter in the table will display the help information available in a help dialog. Figure 13. Reset All Parameters to System Defaults dialog
Figure 14. Help dialog
Show restricted parameters
Clicking on the Show Restricted Parameters check box in the tunable type menu will redisplay the list of tunable parameters to include the restricted use development parameters. The name of a development parameter is followed by the indication "(R)" to distinguish them from others.
Figure 15. RAS Table Menus dialog
자주 쓰는 형태
vmo -L # 매개변수 특성 표(현재·기본·재부팅·범위·유형)
vmo -F -a # 제한 매개변수까지 모두(6.1)
ioo -p -o j2_maxPageReadAhead=256 # 지금 + 다음 부팅
no -r -o tcp_nodelayack=1 # 다음 부팅만
cat /etc/tunables/nextboot # 영구 설정 확인
tunsave -F -f before_change # 현재 값 백업(/etc/tunables/before_change)
tuncheck -r -f nextboot # nextboot 검증
cat /etc/tunables/lastboot.log
관련 글: vmo 명령어, ioo 명령어, no 명령어, schedo 명령어, 연재 목차