[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThe \u003ccode\u003eperf\u003c/code\u003e tool is pre-installed on Container-Optimized OS.\u003c/p\u003e\n"],["\u003cp\u003eYou can directly execute \u003ccode\u003eperf\u003c/code\u003e commands on your \u003ccode\u003ecos\u003c/code\u003e instance via the command line.\u003c/p\u003e\n"],["\u003cp\u003eElevated permissions might be required to enable performance events, which can be achieved by using the provided command.\u003c/p\u003e\n"],["\u003cp\u003eFor guidance on utilizing \u003ccode\u003eperf\u003c/code\u003e, consult the \u003ccode\u003eperf\u003c/code\u003e manual and kernel sysctl settings.\u003c/p\u003e\n"]]],[],null,["# Use debugging tools\n\nThis page explains tools that you can use to debug\nContainer-Optimized OS.\n\nRun the `perf` tool on Container-Optimized OS\n---------------------------------------------\n\nBy default, [`perf`](https://perf.wiki.kernel.org/index.php/Main_Page)\nis installed on Container-Optimized OS. You can run `perf` on your `cos`\ninstance from your shell command line.\n\nIf you have limited privilege, you might need to enable the use of the\nperformance events system using the following command: \n\n echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid\n\nFor information on how to use perf, refer to the\n[`perf` manual](http://man7.org/linux/man-pages/man1/perf.1.html)\nand the kernel\n[sysctl](https://www.kernel.org/doc/Documentation/sysctl/kernel.txt) settings.\n\nEnable kernel crash dump collection\n-----------------------------------\n\nIn the rare event of a kernel panic, enabling kernel crash dump collection can\nhelp you and Cloud Customer Care determine the root cause. To enable crash dumps,\nsee\n[User Guide: Kernel Crash Dump Collection for COS](https://cos.googlesource.com/cos/overlays/board-overlays/+/refs/heads/master/project-lakitu/docs/kdump.md)\nin the open source documentation. This user guide explains how to collect kernel\ncrash dumps on GKE nodes with Container-Optimized OS or\nContainer-Optimized OS instances created from Compute Engine."]]