Translated message

A translation of this page exists in English.

RHEL のハングタスクチェック機能を使用するにはどうすればよいですか?

Solution Verified - Updated -

Issue

  • ハングしたプロセスを検出できますか?
  • 以下の変数は何ですか? これらのハングタスク設定パラメーターとその値は何を意味し、何を制御しているのでしょうか?

    # sysctl -a --pattern hung
    kernel.hung_task_warnings = 10
    kernel.hung_task_timeout_secs = 120
    kernel.hung_task_check_count = 32768
    kernel.hung_task_panic = 0
    
  • ハングタスクチェック機能を使用するにはどうすればよいですか?

  • "hung_task_timeout_secs" というメッセージがログに記録されたときに vmcore を自動的に収集する方法を教えてください。

    INFO: task <process>:<pid> blocked for more than 120 seconds.  
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.  
    
  • 'hung_task_panic' パラメーターの設定方法を教えてください。

  • 'hung_task_panic' の設定を避けるべき場合や状況を教えてください。

  • "task ... blocked for more than N seconds" というイベントがログに記録される数を減らす、または無効にするにはどうすればよいでしょうか?

Environment

  • Red Hat Enterprise Linux 5.5 (kernel-2.6.18-194) 以降
  • システムに D 状態 (割り込み不可能なスリープ) のプロセスが存在する

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content