본문으로 건너뛰기
Skillpedia
데이터베이스9.5k · #12276

analyze_buffer_pool

하는 일

이 스킬은 MySQL이나 MariaDB 서버가 InnoDB 메모리 캐시를 얼마나 잘 쓰는지 확인합니다. 서버에 메모리를 더 줘야 하는지, 다른 구성이 필요한지 알고 싶은 데이터베이스 관리자를 위한 것입니다.

사용하는 경우

  • ✓MySQL이나 MariaDB 서버가 느리고 메모리나 디스크 읽기가 원인인 것 같을 때.
  • ✓InnoDB 버퍼 풀 크기가 서버에 맞는지 알고 싶을 때.
  • ✓쓰기 지연의 징후가 보여 그 원인을 설명받고 싶을 때.

스킬 링크

https://github.com/major/MySQLTuner-perl/blob/master/.agent/skills/analyze-buffer-pool/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/major/MySQLTuner-perl/blob/master/.agent/skills/analyze-buffer-pool/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 MySQL 버퍼 풀이 충분히 큰지 확인하고, 어떤 크기로 설정해야 할지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 아무것도 바꾸지 않고 서버에서 통계를 읽고, 캐시 적중률과 더티 페이지 비율을 계산한 뒤, 사용 가능한 메모리를 기준으로 크기를 추천합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

AI Skill: InnoDB Buffer Pool Sizing & Efficiency Analysis

🧠 Purpose & Operational Objectives

The analyze_buffer_pool skill enables autonomous DBA agents to diagnose memory pressure, caching efficiency, and dirty page write stalls in the InnoDB storage engine.

📋 Preconditions & Context

  • Server running MySQL 5.5+ or MariaDB 10.0+ with InnoDB enabled.
  • Database connectivity established or cached audit state available.
  • Read-only execution: does not execute any modifying statements directly.

🛠️ Input Parameters

Parameter Type Required Default Description
target_ram_percentage number No 75 Target percentage of available host RAM dedicated to InnoDB (50-85%).
include_dirty_pages boolean No true Include dirty page write stall analysis.

📊 Evaluation Criteria & Thresholds

  1. Hit Ratio: $\frac{\text{read_requests} - \text{reads}}{\text{read_requests}} \times 100$
    • $\ge 99%$: OPTIMAL
    • $95% - 99%$: ACCEPTABLE
    • $< 95%$: UNDERSIZED (Generates disk I/O bottleneck)
  2. Dirty Page Ratio: $\frac{\text{pages_dirty}}{\text{pages_total}} \times 100$
    • $> 75%$: DIRTY_STALL (Risk of checkpoint flushing stalls)
  3. Instance Partitioning:
    • For buffer pools $> 1\text{GB}$, recommend innodb_buffer_pool_instances $\ge 8$.

🛡️ Guardrails & Safety

  • All recommendations specify exact SQL (SET GLOBAL ...) and rollback SQL.
  • Changes requiring restart (e.g. innodb_buffer_pool_instances on older MySQL) are explicitly flagged with requires_restart: true.
자주 묻는 질문

이 스킬이 데이터베이스 설정을 바꾸나요?

아니요. 통계만 읽고 추천만 합니다.

좋은 적중률은 어느 정도인가요?

이 스킬은 99퍼센트 이상을 최적으로, 95퍼센트 미만을 용량 부족으로 봅니다.

어떤 버전을 지원하나요?

InnoDB가 켜진 MySQL 5.5 이상과 MariaDB 10.0 이상입니다.

상세 정보

작성자의 원본 설명

Deeply analyzes InnoDB Buffer Pool efficiency, hit ratio, memory allocation, and instance concurrency to recommend optimal sizing.

repo: major/MySQLTuner-perl

인기도

GitHub 스타
9.5k
순위
#12276
라이선스
GPL-3.0
업데이트
2026. 10. 28.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬