Show Table of Contents
23.3. OProfile の開始と停止
OProfile でシステム監視を開始するには、root として以下のコマンドを実行します:
~]# opcontrol --start
出力は以下の表示のようになります:
Using log file /var/lib/oprofile/oprofiled.log Daemon started. Profiler running.
/root/.oprofile/daemonrc のセッティングが使用されます。
OProfile のデーモン、
oprofiled が開始されます。これは定期的にサンプルデータを /var/lib/oprofile/samples/ ディレクトリに書き込みます。このデーモンのログファイルは /var/lib/oprofile/oprofiled.log にあります。
重要
Red Hat Enterprise Linux 6 システムでは、
nmi_watchdog は perf サブシステムで登録をします。このため、perf サブシステムはブート時にパフォーマンスカウンター登録の制御を獲得し、OProfile の動作を阻止してしまいます。
これを解決するためには、
nmi_watchdog=0 のカーネルパラメータセットでブートするか、あるいは、ランタイム時に nmi_watchdog を無効にするために以下のコマンドを実行します:
~]# echo 0 > /proc/sys/kernel/nmi_watchdognmi_watchdog を再度有効にするには、以下のコマンドを実行します:
~]# echo 1 > /proc/sys/kernel/nmi_watchdog
プロファイラーを停止するには、root として以下のコマンドを実行します:
~]# opcontrol --shutdown
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.