[AIX 성능 도구 1] 개요 — 성능 튜닝의 목표와 이 가이드의 구성

핵심 정리

  • 성능 튜닝의 목표는 사람의 기대와 시스템이 실제로 해내는 것을 맞추는 일입니다. 통계와 그래프만 보고 끝나는 일이 아니라 경험과 판단이 필요합니다.
  • 기대치는 처리량(일정 시간에 한 일의 양)과 응답 시간(요청부터 응답까지 걸린 시간) 두 가지로 나눕니다.
  • 튜닝을 시작하는 때: 새로 설치한 시스템의 최적화, 설계(크기 산정) 단계에서 생긴 문제, 운영 중에 생긴 문제.
  • 처음부터 100% 바쁘게 설계하지 말고 예상 밖의 부하를 받을 여유를 둡니다. 경험이 적은 사람의 설정 실수가 성능 문제의 흔한 원인입니다.
  • vmstat, iostat, lparstat 같은 통계 도구의 값은 실행할 때마다 조금씩 다를 수 있습니다(6.1판 안내).
항목 내용
버전 AIX 5.3, AIX 6.1 (본문은 같고, 6.1판에 통계 값 안내와 '새로 바뀐 것'이 더해짐)
원문 Performance Tools Guide and Reference — 5.3판 1장, 6.1판 1~2쪽
관련 명령어 vmstat, iostat, lparstat, mpstat, tprof, svmon

컴퓨터 시스템의 성능은 사람의 기대와 그 기대를 채우는 시스템의 능력으로 정해집니다. 성능 튜닝의 목표는 그 기대와 실제로 채워지는 정도를 맞추는 것입니다.

이 목표에 이르는 길은 알맞은 기대치를 정하는 것과 쓸 수 있는 시스템 자원을 최적화하는 것 사이의 균형입니다. 성능 튜닝에는 큰 기술과 지식, 경험이 필요하며 통계, 그래프, 수치만 분석해서는 할 수 없습니다. 결과를 얻으려면 사람이 느끼는 성능이라는 면을 놓치지 말아야 합니다. 성능 튜닝은 순수한 성능 문제뿐 아니라 문제 판별(problem determination)도 함께 고려합니다.

기대치는 보통 다음 가운데 하나로 나눕니다.

항목 설명
처리량(throughput) 기대치 일정 시간 동안 해낸 작업의 양
응답 시간(response time) 기대치 요청을 낸 때부터 그 요청의 응답이 돌아올 때까지 걸린 시간

성능 튜닝은 여러 이유로 시작합니다.

  • 새로 설치한 시스템에서 최적의 성능을 얻으려고
  • 설계(크기 산정, sizing) 단계에서 생긴 성능 문제를 풀려고
  • 운영(production) 중에 생긴 성능 문제를 풀려고

새로 설치한 시스템의 튜닝은 보통 운영 체제와 응용 프로그램의 기본 매개변수를 정하는 일입니다. 이 책 곳곳에서 여러 시스템 자원의 특성을 설명하고, 해당되면 기본 튜닝 매개변수의 지침을 줍니다.

크기 산정 단계에서 생긴 한계는 튜닝할 여지를 줄이거나, 극복하는 데 더 큰 비용이 들게 합니다. 기대치가 비현실적이거나, 전산 환경에 물리적 문제가 있거나, 설계·구현에서 사람이 실수하면 시스템이 처음 기대한 성능을 내지 못할 수 있습니다. 최악의 경우 하드웨어를 더하거나 바꿔야 합니다. 시스템 크기를 정할 때는 예상하지 못한 부하를 받을 여유를 충분히 두도록 특히 조심합니다. 다시 말해 프로젝트를 시작할 때부터 100% 바쁘도록 설계하지 않습니다.

운영 중인 시스템이 처음 설계한 성능 기대치는 여전히 채우지만 쓰는 조직의 요구가 시스템의 기본 용량을 넘어선 경우, 하드웨어를 더하거나 바꾸는 비용을 미루거나 아예 피하려고 성능 튜닝을 합니다.

성능 문제의 상당수는 경험과 지식이 적은 사람이 뜻하지 않게 시스템의 중요한 논리·물리 자원을 제한한 작업에서 비롯됩니다.

참고: (6.1) lparstat, vmstat, iostat, mpstat 같은 통계 도구와 Perfstat API·SPMI API를 바탕으로 한 응용 프로그램이 보고하는 값은 시점마다 어느 정도 달라집니다. 같은 때에 명령을 여러 번 실행해도 값이 같지 않을 수 있습니다.

영어 원문

Performance Tools Guide and Reference

The performance of a computer system is based on human expectations and the ability of the computer system to fulfill these expectations. The objective for performance tuning is to make those expectations and their fulfillment match.

The path to achieving this objective is a balance between appropriate expectations and optimizing the available system resources. The performance-tuning process demands great skill, knowledge, and experience, and cannot be performed by only analyzing statistics, graphs, and figures. If results are to be achieved, the human aspect of perceived performance must not be neglected. Performance tuning also takes into consideration problem-determination aspects as well as pure performance issues.

Expectations can often be classified as either of the following:

  • Throughput expectations — A measure of the amount of work performed over a period of time
  • Response time expectations — The elapsed time between when a request is submitted and when the response from that request is returned

The performance-tuning process can be initiated for a number of reasons:

  • To achieve optimal performance in a newly installed system

  • To resolve performance problems resulting from the design (sizing) phase

  • To resolve performance problems occurring in the run-time (production) phase

Performance tuning on a newly installed system usually involves setting some base parameters for the operating system and applications. Throughout this book, there are sections that describe the characteristics of different system resources and provide guidelines regarding their base tuning parameters, if applicable.

Limitations originating from the sizing phase will either limit the possibility of tuning, or incur greater cost to overcome them. The system might not meet the original performance expectations because of unrealistic expectations, physical problems in the computer environment, or human error in the design or implementation of the system. In the worst case, adding or replacing hardware might be necessary. Be particularly careful when sizing a system to permit enough capacity for unexpected system loads. In other words, do not design the system to be 100 percent busy from the start of the project.

When a system in a productive environment still meets the performance expectations for which it was initially designed, but the demands and needs of the utilizing organization have outgrown the system's basic capacity, performance tuning is performed to delay or even to avoid the cost of adding or replacing hardware.

Many performance-related issues can be traced back to operations performed by a person with limited experience and knowledge who unintentionally restricted some vital logical or physical resource of the system.

Note: The metrics reported by any statistics tool such as lparstat, vmstat, iostat, mpstat and so on including the applications that are based on Perfstat API or SPMI API varies to a certain extent at any point of time. If the command is run multiple times for an instance, the values may not be similar for that instance.

(6.1) 새로 바뀐 것

Performance Tools Guide and Reference 주제 모음에서 새로 생기거나 크게 바뀐 내용입니다.

영어 원문

What's new in Performance Tools Guide and Reference

Read about new or significantly changed information for the Performance Tools Guide and Reference topic collection.

바뀐 곳을 찾는 법

이 PDF에서는 왼쪽 여백의 수정 막대(|)가 새로 생기거나 바뀐 내용을 표시합니다.

영어 원문

How to see what's new or changed

In this PDF file, you might see revision bars (|) in the left margin that identify new and changed information.

2016년 10월

이 주제 모음에서 바뀐 내용의 요약입니다.

  • Node interfaces 주제에 perfstat_cluster_disk 인터페이스 예를 더했습니다.
  • 구성 요소별 인터페이스 perfstat_ssp_ext의 설명을 더했습니다.
영어 원문

October 2016

The following information is a summary of the updates made to this topic collection:

  • Updated the Node interfaces topic with the perfstat_cluster_disk interface example.

  • Added information about the perfstat_ssp_ext component-specific interface.

연재 목차

원문 6.1판의 순서를 따르며, 5.3판에만 있는 장 배치(Xprofiler가 2장)는 6.1판 순서로 옮겼습니다. 5.3판에 없는 장은 (6.1)로 표시했습니다.

번호 글 원문
1 개요(이 글) Introduction, What's new
2 curt — CPU 사용률 보고 도구 CPU Utilization Reporting Tool (curt)
3 splat — 잠금 분석 도구 Simple Performance Lock Analysis Tool (splat)
4 하드웨어 성능 모니터와 pmapi 라이브러리 Hardware Performance Monitor APIs and tools
5 hpm 라이브러리와 hpmcount·hpmstat The hpm library and associated tools
6~11 perfstat API (1) (2) (3) (4) (5) (6) Perfstat API Programming
12 커널 튜닝 — 튜닝 파일과 tun 명령 Kernel Tuning
13 procmon 도구 The procmon tool
14 프로파일링 도구 — time, prof, gprof, tprof Profiling tools
15~16 Xprofiler (1) (2) X-Windows Performance Profiler
17~18 (6.1) svmon 명령 (1) (2) The svmon command
19 (6.1) RSI(원격 통계 인터페이스) API Remote Statistics Interface API

명령어 하나하나의 플래그는 AIX 명령어 글(예: tprof, svmon, vmo, ioo, schedo, no)에 따로 정리했습니다.