Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

RHEL でハングしたタスクのチェックを使用する

Solution Verified - Updated -

Issue

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

    # sysctl -a | grep 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 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5.5 (kernel-2.6.18-194) 以降
  • D 状態 (uninterruptible sleep) のプロセスが存在する

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.