Skip to contentSkip to conversation

INFO: task journal:337 blocked for more than 120 seconds

DISCUSSION Shirley Ma 5 participants 21 messages Sep 30, 2009 – Oct 4, 2009

Subsystems (2)
lore
Share & tools
lore

Shirley Ma

author
#0 lore raw

Hello all,

Anybody found this problem before? I kept hitting this issue for 2.6.31 guest kernel even with a simple network test.

INFO: task kjournal:337 blocked for more than 120 seconds.

"echo 0 > /proc/sys/kernel/hung_task_timeout_sec" disables this message.

kjournald D 00000041 0 337 2 0x00000000

My test is totally being blocked.

Thanks
Shirley

#1 lore raw
Quoted 11 lines · Shirley Ma

Hello all,

Anybody found this problem before? I kept hitting this issue for 2.6.31 guest kernel even with a simple network test.

INFO: task kjournal:337 blocked for more than 120 seconds.

"echo 0 > /proc/sys/kernel/hung_task_timeout_sec" disables this message.

kjournald D 00000041 0 337 2 0x00000000

My test is totally being blocked.

I've hit this in the past with ext3, mounting with data=writeback made it disappear.

#2 lore raw
In reply to Shirley Ma
Quoted 11 lines · Shirley Ma

Hello all,

Anybody found this problem before? I kept hitting this issue for 2.6.31 guest kernel even with a simple network test.

INFO: task kjournal:337 blocked for more than 120 seconds.

"echo 0 > /proc/sys/kernel/hung_task_timeout_sec" disables this message.

kjournald D 00000041 0 337 2 0x00000000

My test is totally being blocked.

I've hit this in the past with ext3, mounting with data=writeback made it disappear.

author
#3 lore raw
Quoted 3 lines · Marcelo Tosatti

I've hit this in the past with ext3, mounting with data=writeback made it
disappear.

Thanks. I will make a try. Someone should fix this.

Shirley

author
#4 lore raw

Re: INFO: task kjournal:337 blocked for more than 120 seconds

I talked to Mingming, she suggested to use different IO scheduler. The default scheduler is cfg, after I switch to noop, the problem is gone.

So there seems a bug in cfg scheduler. It's easily reproduced it when running the guest kernel, so far I haven't hit this problem on the host side.

If I need to file a bug for some one to look at, please let me know.

Thanks
Shirley

author
#5 lore raw

Re: INFO: task kjournal:337 blocked for more than 120 seconds

In reply to Shirley Ma

I talked to Mingming, she suggested to use different IO scheduler. The default scheduler is cfg, after I switch to noop, the problem is gone.

So there seems a bug in cfg scheduler. It's easily reproduced it when running the guest kernel, so far I haven't hit this problem on the host side.

If I need to file a bug for some one to look at, please let me know.

Thanks
Shirley

#6 lore raw

Re: INFO: task kjournal:337 blocked for more than 120 seconds

Quoted 2 lines · Shirley Ma

I talked to Mingming, she suggested to use different IO scheduler. The default scheduler is cfg, after I switch to noop, the problem is gone.

deadline is the most recommended one for virtualization hosts. some distros set it as default if you select Xen or KVM at installation time. (and noop for the guests)

Signature · 1 line
Javier
author
#7 lore raw

Re: INFO: task kjournal:337 blocked for more than 120 seconds

Quoted 3 lines · Javier Guerra

deadline is the most recommended one for virtualization hosts. some distros set it as default if you select Xen or KVM at installation time. (and noop for the guests)

I spoke too earlier, after a while noop scheduler hit the same issue. I am switching to deadline to test it again.

Thanks
Shirley

author
#8 lore raw

Re: INFO: task kjournal:337 blocked for more than 120 seconds

Switching to different scheduler doesn't make the problem gone away.

Shirley

author
#9 lore raw

Re: INFO: task kjournal:337 blocked for more than 120 seconds

In reply to Shirley Ma

Switching to different scheduler doesn't make the problem gone away.

Shirley

author
#10 lore raw

Re: INFO: task kjournal:337 blocked for more than 120 seconds

In reply to Javier Guerra
Quoted 3 lines · Javier Guerra

deadline is the most recommended one for virtualization hosts. some distros set it as default if you select Xen or KVM at installation time. (and noop for the guests)

I spoke too earlier, after a while noop scheduler hit the same issue. I am switching to deadline to test it again.

Thanks
Shirley

#11 lore raw

Re: INFO: task kjournal:337 blocked for more than 120 seconds

In reply to Shirley Ma
Quoted 2 lines · Shirley Ma

I talked to Mingming, she suggested to use different IO scheduler. The default scheduler is cfg, after I switch to noop, the problem is gone.

deadline is the most recommended one for virtualization hosts. some distros set it as default if you select Xen or KVM at installation time. (and noop for the guests)

Signature · 1 line
Javier
author
#12 lore raw
In reply to Marcelo Tosatti
Quoted 3 lines · Marcelo Tosatti

I've hit this in the past with ext3, mounting with data=writeback made it
disappear.

Thanks. I will make a try. Someone should fix this.

Shirley

#13 lore raw
In reply to Shirley Ma
Quoted 9 lines · Shirley Ma

Anybody found this problem before? I kept hitting this issue for 2.6.31 guest kernel even with a simple network test.

INFO: task kjournal:337 blocked for more than 120 seconds.

"echo 0 > /proc/sys/kernel/hung_task_timeout_sec" disables this message.

kjournald D 00000041 0 337 2 0x00000000

My test is totally being blocked.

I'm assuming from the lists you've posted to that this is under KVM? What disk drivers are you using (virtio or emulated)?

Can you get a full stack backtrace of kjournald?

Kevin Bowling submitted a RH bug against Xen with apparently the same symptoms (https://bugzilla.redhat.com/show_bug.cgi?id=526627). I'm wondering if there's a core kernel bug here, which is perhaps more easily triggered by the changed timing in a virtual machine.

Thanks,
J

author
#14 lore raw
Quoted 4 lines · Jeremy Fitzhardinge

I'm assuming from the lists you've posted to that this is under KVM? What disk drivers are you using (virtio or emulated)?

Can you get a full stack backtrace of kjournald?

Yes, it's under KVM, disk driver is virtio. Since the io has issue, the stack can't be saved on the disk. I have the image file attached here.

Thanks
Shirley

#15 lore raw
Quoted 10 lines · Shirley Ma
Quoted 5 lines · Jeremy Fitzhardinge

I'm assuming from the lists you've posted to that this is under KVM? What disk drivers are you using (virtio or emulated)?

Can you get a full stack backtrace of kjournald?

Yes, it's under KVM, disk driver is virtio. Since the io has issue, the stack can't be saved on the disk. I have the image file attached here.

Ah, thank you. The backtrace does indeed look very similar.

(BTW, you could get a serial console with "qemu-kvm -nographic -append console=ttyS0 ...")

J

#16 lore raw
In reply to Shirley Ma
Quoted 10 lines · Shirley Ma
Quoted 5 lines · Jeremy Fitzhardinge

I'm assuming from the lists you've posted to that this is under KVM? What disk drivers are you using (virtio or emulated)?

Can you get a full stack backtrace of kjournald?

Yes, it's under KVM, disk driver is virtio. Since the io has issue, the stack can't be saved on the disk. I have the image file attached here.

Ah, thank you. The backtrace does indeed look very similar.

(BTW, you could get a serial console with "qemu-kvm -nographic -append console=ttyS0 ...")

J

author
#17 lore raw
In reply to Jeremy Fitzhardinge
Quoted 4 lines · Jeremy Fitzhardinge

I'm assuming from the lists you've posted to that this is under KVM? What disk drivers are you using (virtio or emulated)?

Can you get a full stack backtrace of kjournald?

Yes, it's under KVM, disk driver is virtio. Since the io has issue, the stack can't be saved on the disk. I have the image file attached here.

Thanks
Shirley

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/virtualization

#18 lore raw
In reply to Jeremy Fitzhardinge
Quoted 17 lines · Jeremy Fitzhardinge
Quoted 10 lines · Shirley Ma

Anybody found this problem before? I kept hitting this issue for 2.6.31 guest kernel even with a simple network test.

INFO: task kjournal:337 blocked for more than 120 seconds.

"echo 0> /proc/sys/kernel/hung_task_timeout_sec" disables this message.

kjournald D 00000041 0 337 2 0x00000000

My test is totally being blocked.

I'm assuming from the lists you've posted to that this is under KVM? What disk drivers are you using (virtio or emulated)?

Can you get a full stack backtrace of kjournald?

Quoted 8 lines

Kevin Bowling submitted a RH bug against Xen with apparently the same symptoms (https://bugzilla.redhat.com/show_bug.cgi?id=526627). I'm wondering if there's a core kernel bug here, which is perhaps more easily triggered by the changed timing in a virtual machine.

Thanks,
J

I've had a stable system thus far by appending "clocksource=jiffies" to the kernel boot line. The default clocksource is otherwise "xen".

The dmesg boot warnings in my bugzilla report still occur.

Regards,
Kevin Bowling
http://www.analograils.com/

#19 lore raw
In reply to Jeremy Fitzhardinge
Quoted 17 lines · Jeremy Fitzhardinge
Quoted 10 lines · Shirley Ma

Anybody found this problem before? I kept hitting this issue for 2.6.31 guest kernel even with a simple network test.

INFO: task kjournal:337 blocked for more than 120 seconds.

"echo 0> /proc/sys/kernel/hung_task_timeout_sec" disables this message.

kjournald D 00000041 0 337 2 0x00000000

My test is totally being blocked.

I'm assuming from the lists you've posted to that this is under KVM? What disk drivers are you using (virtio or emulated)?

Can you get a full stack backtrace of kjournald?

Quoted 8 lines

Kevin Bowling submitted a RH bug against Xen with apparently the same symptoms (https://bugzilla.redhat.com/show_bug.cgi?id=526627). I'm wondering if there's a core kernel bug here, which is perhaps more easily triggered by the changed timing in a virtual machine.

Thanks,
J

I've had a stable system thus far by appending "clocksource=jiffies" to the kernel boot line. The default clocksource is otherwise "xen".

The dmesg boot warnings in my bugzilla report still occur.

Regards,
Kevin Bowling
http://www.analograils.com/

#20 lore raw
In reply to Shirley Ma
Quoted 9 lines · Shirley Ma

Anybody found this problem before? I kept hitting this issue for 2.6.31 guest kernel even with a simple network test.

INFO: task kjournal:337 blocked for more than 120 seconds.

"echo 0 > /proc/sys/kernel/hung_task_timeout_sec" disables this message.

kjournald D 00000041 0 337 2 0x00000000

My test is totally being blocked.

I'm assuming from the lists you've posted to that this is under KVM? What disk drivers are you using (virtio or emulated)?

Can you get a full stack backtrace of kjournald?

Kevin Bowling submitted a RH bug against Xen with apparently the same symptoms (https://bugzilla.redhat.com/show_bug.cgi?id=526627). I'm wondering if there's a core kernel bug here, which is perhaps more easily triggered by the changed timing in a virtual machine.

Thanks,
J