Show Table of Contents
2.15. OProfile
OProfile 是一個全系統效能監測工具。OProfile 使用處理器的專用效能監測硬體,擷取有關 kernel 和系統可執行程序,以決定特定事件的頻率,例如:記憶體受參照中接收到的第二級快存請求數量,與硬體請求數量。OProfile 也能夠用於決定處理器使用量,與決定哪一應用程式和服務最常使用。
然而,OProfile 有以下限制:
- 效能監測樣本可能不精確,因為處理器可能不依順序執行指令。樣本能夠從附近的指令紀錄下來,而非觸發中斷的指令。
- OProfile 預期程序會啟動與停止數次。藉此累積多個運作樣本。您或許需要清除源於先前運作的範例資料。
- OProfile 著重於辨識受 CPU 存取限制的處理序問題。因此, 當程序等待其他事件解除鎖定而進入睡眠狀態,OProfile 並不適用於辨識睡眠狀態中的程序。
更多有關 OProfile 的詳細資訊,請參閱〈節 A.15, “OProfile”〉或《 Red Hat Enterprise Linux 7 系統管理員指南 》,兩者的網址為:http://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/。您亦可參閱位於系統上的文件:「
/usr/share/doc/oprofile-version」。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.