[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AXRYRYSZKPXA7FQKHFCFRK":3,"skill-same:01M7AXRYRYSZKPXA7FQKHFCFRK":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},"01M7AXRYRYSZKPXA7FQKHFCFRK","vmexit-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\u002Fvmexit-analysis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# \u002Fvmexit-analysis\n\nAnalyze KVM vmexit statistics to identify virtualization overhead and configuration issues.\n\n## Methodology\n\n- Read `methodology\u002Fvmexit-analysis.md` for vmexit interpretation guide (HLT vs IO_INSTRUCTION, count vs time impact)\n\n## Data Source\n\nVM exit stats from KVM debugfs:\n```bash\ncat \u002Fsys\u002Fkernel\u002Fdebug\u002Fkvm\u002F*\u002Fvcpu*\u002Fvmexit > vmexit_stats.txt\n```\n\n## What to analyze\n\n- **HLT exits**: High time % indicates guest is idle — expected for idle VMs, investigate if workload should be CPU-bound\n- **IO_INSTRUCTION exits**: High count on Windows VMs indicates `useplatformclock` issue (force Windows to use PIT)\n- **EPT_VIOLATION**: Memory pressure or hugepage issues\n- **EXTERNAL_INTERRUPT**: Interrupt storms or poor IRQ affinity\n- **PAUSE_INSTRUCTION**: Lock contention, possible CPU overcommit\n\n## Key principle\n\n**Count ≠ Time impact**. Example:\n- IO_INSTRUCTION: 68% of exits, but only 13% of time\n- HLT: 32% of exits, but 87% of time ← **this is the critical exit**\n\nAlways report both count % and time % when analyzing vmexits.\n\n## Steps\n\n**Automated analysis script**: Not yet implemented — manual analysis workflow:\n\n- Collect vmexit stats from KVM host\n- Calculate count % and time % for each exit type\n- Sort by **time %** (not count %) to identify critical exits\n- Cross-reference with workload type (CPU-bound vs I\u002FO-bound vs idle)\n- Correlate with domstats metrics (see `\u002Fio-analysis`)\n- Provide diagnosis and fix recommendations\n\n## Common fixes\n\n- **IO_INSTRUCTION high**: Inside Windows VM run `bcdedit \u002Fdeletevalue useplatformclock` then reboot\n- **EPT_VIOLATION high**: Disable memory balloon (`autoattachMemBalloon: false`), enable hugepages\n- **PAUSE high**: Reduce CPU overcommit, set requests = limits for guaranteed QoS\n\n## Integration\n\n- Windows VM clock config: see `methodology\u002Fvm-tuning-guide.md` Steps 9-10\n- CPU allocation: see `methodology\u002Fvm-tuning-guide.md` Steps 7-8\n- Hugepages: see `methodology\u002Fvm-tuning-guide.md` Step 6\n",{},"main","e252a9a984361b5ef70d9062c653f3ee05f2c33c","skills\u002Fvmexit-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 vmexit-analysis",{"tool":36,"command":37},"bunx","bunx skills add redhat-performance\u002Fperfx --skill vmexit-analysis",{"tool":39,"command":40},"pnpm","pnpm dlx skills add redhat-performance\u002Fperfx --skill vmexit-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fvmexit-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},"01M7AXRW2YR7NYFPNF1377365W","validate-windows-vm-config","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate-windows-vm-config\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},"01M7AXRSFTYRP6PW75ZJJZCKVA","validate-linux-vm-config","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fvalidate-linux-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},"01M7AXRQTYWCWR96QVZRCX1GAC","ocp-analysis","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Focp-analysis\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},"01M7AXRN2VDBH9AWNR6HYGPWCG","network-analysis","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fnetwork-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},"01M7AXRK9WW8NN9MCDJF5K97NQ","memory-analysis","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-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},"01M7AXRGE82PXVHC5HKXW78TB8","io-analysis","https:\u002F\u002Fgithub.com\u002Fredhat-performance\u002Fperfx\u002Fblob\u002Fmain\u002Fskills\u002Fio-analysis\u002FSKILL.md",[],[]]