Skip to contentSkip to conversation

get_request starvation fix

PATCH Andrew Morton 3 participants 3 messages Feb 8, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 12 lines · Dieter Nützel
Quoted 1 line · Andrew Morton

Here's a patch which addresses the get_request starvation problem.

[snip]

Quoted 6 lines

Also, you noted the other day that a LILO run *never* terminated when there was a dbench running. This is in fact not due to request starvation. It's due to livelock in invalidate_bdev(), which is called via ioctl(BLKFLSBUF) by LILO. invalidate_bdev() will never terminate as long as another task is generating locked buffers against the device.

Quoted 6 lines

[snip]

Could this below related?
I get system looks through lilo (bzlilo) from time to time with all latest kernels + O(1) + -aa + preempt

Depends what you mean by "system locks". The invalidate_bdev() problem won't lock the machine. Its symptoms are merely that the ioctl will not terminate until the process which is writing to disk stops.

In other words: if you run dbench, then lilo, lilo will not complete until after dbench terminates.

If you're seeing actual have-to-hit-reset lockups then that'll be due to something quite different.

-

#2 lore raw
Quoted 2 lines · Andrew Morton

In other words: if you run dbench, then lilo, lilo will not complete until after dbench terminates.

Actually, lilo completed after 5 minutes, but still only about halfway through the dbench.

Rik

Signature · 3 lines
Will hack the VM for food.

http://www.surriel.com/		http://distro.conectiva.com/
#3 lore raw
In reply to a message not in the archive
Quoted 13 lines · Andrew Morton
Quoted 12 lines · Dieter Nützel
Quoted 1 line · Andrew Morton

Here's a patch which addresses the get_request starvation problem.

[snip]

Quoted 6 lines

Also, you noted the other day that a LILO run *never* terminated when there was a dbench running. This is in fact not due to request starvation. It's due to livelock in invalidate_bdev(), which is called via ioctl(BLKFLSBUF) by LILO. invalidate_bdev() will never terminate as long as another task is generating locked buffers against the device.

Quoted 7 lines
Quoted 5 lines

[snip]

Could this below related?
I get system looks through lilo (bzlilo) from time to time with all latest kernels + O(1) + -aa + preempt

Depends what you mean by "system locks".

Hard lock up :-(

Nothing in the log files.
No SYSRQ works. Only reset. --- But ReiserFS works. Some few corrupted *.o.flag files and most of the time a broken /usr/src/vmlinux or freshly /boot/vmlinuz file.

Quoted 1 line

The invalidate_bdev() problem won't lock the machine.

I see.

Quoted 2 lines

In other words: if you run dbench, then lilo, lilo will not complete until after dbench terminates.

dbench wasn't run before
Only several "sync" commands (by hand) during kernel build helps.

Quoted 2 lines

If you're seeing actual have-to-hit-reset lockups then that'll be due to something quite different.

Sadly, yes.

Thanks,
Dieter