Untuk informasi tentang cara menggunakan perf, lihat
panduan perf
dan setelan
sysctl kernel.
Mengaktifkan pengumpulan dump error kernel
Dalam kasus yang jarang terjadi, yaitu kernel panic, mengaktifkan pengumpulan dump error kernel dapat
membantu Anda dan Cloud Customer Care menentukan akar masalahnya. Untuk mengaktifkan dump error,
lihat
Panduan Pengguna: Pengumpulan Dump Error Kernel untuk COS
dalam dokumentasi open source. Panduan pengguna ini menjelaskan cara mengumpulkan dump error kernel di node GKE dengan Container-Optimized OS atau instance Container-Optimized OS yang dibuat dari Compute Engine.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\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."]]