5.2. Performance Co- Cryostat를 사용한 XFS 파일 시스템 성능 분석
이 섹션에서는 PCP XFS 성능 지표와 사용 방법에 대해 설명합니다. 시작된 후 PMCD(Performance Metric Collector Daemon)는 설치된 PMDAs(Performance Metric Domain Agent)에서 성능 데이터 수집을 시작합니다. PMDAs는 시스템에서 개별적으로 로드되거나 언로드될 수 있으며 동일한 호스트에서 PMCD에 의해 제어됩니다. 기본 PCP 설치의 일부인 XFS PMDA는 PCP에서 XFS 파일 시스템의 성능 지표 데이터를 수집하는 데 사용됩니다.
PCP와 함께 배포되는 시스템 서비스 및 툴 목록은 표 A.1. “System Services Distributed with Performance Co- Cryostat in Red Hat Enterprise Linux 7” 및 표 A.2. “Red Hat Enterprise Linux 7에서 Performance Co- Cryostat를 사용하여 분산되는 툴” 를 참조하십시오.
5.2.1. PCP를 사용하여 XFS 데이터 수집을 위해 XFS PMDA 설치 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
XFS PMDA는 pcp 패키지의 일부로 제공되며 설치 시 기본적으로 활성화됩니다. PCP를 설치하려면 다음을 입력합니다.
# yum install pcp
pcp 및 pcp-gui 패키지가 설치된 후 호스트 머신에서 PMDA 서비스를 활성화하고 시작하려면 다음 명령을 사용합니다.
# systemctl enable pmcd.service
# systemctl start pmcd.service
PCP 환경을 쿼리하여 PMCD 프로세스가 호스트에서 실행 중이고 XFS PMDA가 구성에 활성화된 것으로 나열되는지 확인하려면 다음을 입력합니다.
# pcp
Performance Co-Pilot configuration on workstation:
platform: Linux workstation 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan
29 18:05:33 UTC 2015 x86_64
hardware: 2 cpus, 2 disks, 1 node, 2048MB RAM
timezone: BST-1
services pmcd
pmcd: Version 3.10.6-1, 7 agents
pmda: root pmcd proc xfs linux mmv jbd2
수동으로 XFS PMDA 설치
XFS PMDA가 PCP 구성 읽기에 나열되지 않은 경우 PMDA 에이전트를 수동으로 설치합니다. PMDA 설치 스크립트에서 PMDA 역할인 collector, monitor 또는 둘 다를 지정하라는 메시지를 표시합니다.
기본 옵션은 수집기와 모니터를
수집기역할을 사용하면 현재 시스템에서 성능 메트릭을 수집할 수 있습니다.
모니터역할을 사용하면 시스템이 로컬 시스템, 원격 시스템 또는 둘 다를 모니터링할 수 있습니다.
모두 사용하므로 대부분의 시나리오에서 XFS PMDA가 올바르게 작동할 수 있습니다.
XFS PMDA를 수동으로 설치하려면 xfs 디렉터리로 변경합니다.
# cd /var/lib/pcp/pmdas/xfs/
xfs 디렉터리에 다음을 입력합니다.
xfs]# ./Install
You will need to choose an appropriate configuration for install of
the “xfs” Performance Metrics Domain Agent (PMDA).
collector collect performance statistics on this system
monitor allow this system to monitor local and/or remote systems
both collector and monitor configuration for this system
Please enter c(ollector) or m(onitor) or (both) [b]
Updating the Performance Metrics Name Space (PMNS) ...
Terminate PMDA if already installed ...
Updating the PMCD control file, and notifying PMCD ...
Waiting for pmcd to terminate ...
Starting pmcd ...
Check xfs metrics have appeared ... 149 metrics and 149 values