• Paul E. McKenney's avatar
    rcu-tasks: Print pre-stall-warning informational messages · f2539003
    Paul E. McKenney authored
    RCU-tasks stall-warning messages are printed after the grace period is ten
    minutes old.  Unfortunately, most of us will have rebooted the system in
    response to an apparently-hung command long before the ten minutes is up,
    and will thus see what looks to be a silent hang.
    
    This commit therefore adds pr_info() messages that are printed earlier.
    These should avoid being classified as errors, but should give impatient
    users a hint.  These are controlled by new rcupdate.rcu_task_stall_info
    and rcupdate.rcu_task_stall_info_mult kernel-boot parameters.  The former
    defines the initial delay in jiffies (defaulting to 10 seconds) and the
    latter defines the multiplier (defaulting to 3).  Thus, by default, the
    first message will appear 10 seconds into the RCU-tasks grace period,
    the second 40 seconds in, and the third 160 seconds in.  There would be
    a fourth at 640 seconds in, but the stall warning message appears 600
    seconds in, and once a stall warning is printed for a given grace period,
    no further informational messages are printed.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    f2539003
kernel-parameters.txt 234 KB