* Q: cat /proc/mdstat blocking?
@ 2011-08-05 12:02 Ulrich Windl
2011-08-05 15:23 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Windl @ 2011-08-05 12:02 UTC (permalink / raw)
To: linux-kernel
Hi,
I thought that /proc/mdstat just displays the current state of the MD RAIDs, not querying them, thus never blocking. Unfortunately I could observer a "cat /proc/mdstat" hanging for several seconds when one of the RAID1 legs was unavailable and multipathd was queueing requests to the leg.
Practically this makes monitoring of the other RAIDs difficult when one bad device is enough to block /proc/mdstat.
Now my question: Does it work as designed (i.e. as intended), or is this not as intended?
As I'm not subcribed to the kernel list, maybe CC: your replies.
Effect was observed in SLES11 SP1 x86_64 with multipathed FC SAN disks (2.6.32.36) on a machine with several CPUs.
Regards,
Ulrich Windl
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Q: cat /proc/mdstat blocking?
2011-08-05 12:02 Q: cat /proc/mdstat blocking? Ulrich Windl
@ 2011-08-05 15:23 ` Al Viro
0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2011-08-05 15:23 UTC (permalink / raw)
To: Ulrich Windl; +Cc: linux-kernel
On Fri, Aug 05, 2011 at 02:02:49PM +0200, Ulrich Windl wrote:
> Hi,
>
> I thought that /proc/mdstat just displays the current state of the MD RAIDs, not querying them, thus never blocking. Unfortunately I could observer a "cat /proc/mdstat" hanging for several seconds when one of the RAID1 legs was unavailable and multipathd was queueing requests to the leg.
>
> Practically this makes monitoring of the other RAIDs difficult when one bad device is enough to block /proc/mdstat.
>
> Now my question: Does it work as designed (i.e. as intended), or is this not as intended?
I suspect that something is holding all_mddevs_lock too long; that, or one
of the subdrivers' spinlocks. Try to find out what it blocks on and what
holds the lock in question...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-05 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-05 12:02 Q: cat /proc/mdstat blocking? Ulrich Windl
2011-08-05 15:23 ` Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox