[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AXRGE82PXVHC5HKXW78TB8":3,"skill-same:01M7AXRGE82PXVHC5HKXW78TB8":44},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AXRGE82PXVHC5HKXW78TB8","io-analysis",null,"redhat-performance\u002Fperfx","redhat-performance","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12718395?v=4","01M7AXR5TFF69VH08GK82ZRDRC","Red Hat Performance Engineering","01M7AXR5V4KM2NFTWFJY8EANQB",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fio-analysis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# \u002Fio-analysis\n\nInvestigate I\u002FO performance degradation in VMs.\n\n## Methodology\n\n- Read `methodology\u002Fio-degradation.md` for systematic I\u002FO investigation workflow\n\n## Key Principle\n\n**I\u002FO degradation is often NOT a storage problem** — check CPU scheduling, C-states, interrupt handling, and VM config first before blaming storage.\n\n## Investigation Workflow\n\n**Check in this order:**\n\n- Collect virsh domstats baseline\n- Collect vmexit stats from KVM host\n- Check host C-state configuration\n- Check `intel_c1_demotion` (Intel CPUs)\n- Check VM config: ioThreadsPolicy, blockMultiQueue, cache mode, memory balloon\n- Correlate patterns across domstats + vmexits\n- Only after ruling out config\u002FC-state issues: check storage backend\n\n## Common Root Causes\n\n### C-state-related I\u002FO degradation\n\n**Symptoms:**\n- I\u002FO latency is inconsistent (varies over time)\n- Storage backend metrics look fine, but VM sees high latency\n- Problem improves when host CPU load increases\n\n**Diagnosis:**\n- Deep C-states (C3\u002FC6) delay interrupt handling (80-200μs wake latency)\n- CPUs must wake from deep sleep to handle I\u002FO completion interrupts\n\n**Fix:**\n- Enable `intel_c1_demotion`: `echo 1 > \u002Fsys\u002Fdevices\u002Fsystem\u002Fcpu\u002Fcpuidle\u002Fintel_c1_demotion`\n- Rerun tests — if performance improves, C-states were the issue\n- For triage: can force C1 pinning temporarily (NOT for production)\n\nSee `methodology\u002Fvm-tuning-guide.md` Step 5 for detailed C-state troubleshooting.\n\n---\n\n### Forced fsync (1:1 flush:write ratio)\n\n**Symptom**: `block.*.wr_operations` ≈ `block.*.fl_operations` in domstats\n\n**Root cause**: Application or filesystem forcing sync after every write\n\n**Fix**: Tune application fsync frequency or filesystem mount options\n\n---\n\n### Missing ioThreads configuration\n\n**Symptom**: Single-threaded I\u002FO processing, low throughput\n\n**Fix**: Add `ioThreadsPolicy: supplementalPool` to VM YAML (OCP 4.19+)\n\nSee `methodology\u002Fvm-tuning-guide.md` Step 2.\n\n---\n\n### Memory pressure (EPT_VIOLATION exits)\n\n**Symptom**: High EPT_VIOLATION count in vmexit stats during I\u002FO\n\n**Fix**: Disable memory balloon (`autoattachMemBalloon: false`), enable hugepages\n\nSee `methodology\u002Fvm-tuning-guide.md` Steps 6, 12.\n\n---\n\n## Data Sources\n\n**virsh domstats:**\n```bash\nvirsh domstats \u003Cvm_name>\n```\n\n**vmexit stats:**\n```bash\ncat \u002Fsys\u002Fkernel\u002Fdebug\u002Fkvm\u002F*\u002Fvcpu*\u002Fvmexit\n```\n\n**C-state check:**\n```bash\ncat \u002Fsys\u002Fdevices\u002Fsystem\u002Fcpu\u002Fcpu0\u002Fcpuidle\u002Fstate*\u002Fname\ncat \u002Fsys\u002Fdevices\u002Fsystem\u002Fcpu\u002Fcpuidle\u002Fintel_c1_demotion\n```\n\n**VM config:**\n```bash\noc get vm \u003Cvm_name> -o yaml\n```\n\n---\n\n## Steps\n\n**Automated analysis script**: Not yet implemented — manual workflow:\n\n- Collect domstats, vmexit stats, C-state info\n- Check for forced fsync (1:1 flush:write ratio)\n- Check for C-state issues (deep states enabled, intel_c1_demotion disabled)\n- Check VM config (ioThreads, blockMultiQueue, cache mode, balloon)\n- Correlate patterns using methodology\u002Fio-degradation.md correlation matrix\n- Provide diagnosis and fix recommendations\n\n## Integration\n\n- **Vmexit analysis**: `methodology\u002Fvmexit-analysis.md` — HLT, EPT_VIOLATION, EXTERNAL_INTERRUPT\n- **VM tuning**: `methodology\u002Fvm-tuning-guide.md` — Steps 2, 5, 6, 12, 16, 17\n- **VM config validation**: `\u002Fvalidate-windows-vm-config`, `\u002Fvalidate-linux-vm-config`\n",{},"main","e252a9a984361b5ef70d9062c653f3ee05f2c33c","skills\u002Fio-analysis",3,"https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx","https:\u002F\u002Fgithub.com\u002Fredhat-performance","https:\u002F\u002Fwww.redhat.com","2026-11-15 05:11:35",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add redhat-performance\u002Fperfx --skill io-analysis",{"tool":36,"command":37},"bunx","bunx skills add redhat-performance\u002Fperfx --skill io-analysis",{"tool":39,"command":40},"pnpm","pnpm dlx skills add redhat-performance\u002Fperfx --skill io-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fio-analysis\u002FSKILL.md",true,[],[45,51,57,63,69,75],{"skillNo":46,"name":47,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7AXRYRYSZKPXA7FQKHFCFRK","vmexit-analysis","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fvmexit-analysis\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M7AXRW2YR7NYFPNF1377365W","validate-windows-vm-config","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate-windows-vm-config\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M7AXRSFTYRP6PW75ZJJZCKVA","validate-linux-vm-config","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate-linux-vm-config\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M7AXRQTYWCWR96QVZRCX1GAC","ocp-analysis","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Focp-analysis\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7AXRN2VDBH9AWNR6HYGPWCG","network-analysis","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fnetwork-analysis\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7AXRK9WW8NN9MCDJF5K97NQ","memory-analysis","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-analysis\u002FSKILL.md",[],[]]