Linux – What does “INFO: task XXX blocked for more than 120 seconds” exactly mean on Linux

linux-kernelscheduling

I had this message in my kernel log : INFO: task XXX blocked for more than 120 seconds. I would like to know what it means technically: under what conditions does the kernel display this message about a task?

For the record, my blocked task was multipathd, but I'm also interested in the general meaning of this error.

Best Answer

If a task is blocked, it waits for resources to become available again.

In your case there was propably either a IO-problem or a contention in the disk-area. Or your system-load was so high that there was not enough CPU-power available to finish the job in time.

I have seen this error from cron, if it tries to start a job in a very busy time.

Related Question