public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.4.18 IDE channels block each other under load?
@ 2002-07-30 17:27 Roman Kagan
  0 siblings, 0 replies; 8+ messages in thread
From: Roman Kagan @ 2002-07-30 17:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: T.Raykoff

 Hi,

I'm by no means an expert in this, just a guess:

On Tue, Jul 30, 2002 at 05:09:22PM +0000, T.Raykoff wrote:
> This lockup only happens under write load.  Heavy reads don't cause the 
> prob.  Hmmmm.
> 
> Not sure that it really is memory thrashing.  The box is unloaded and 
> really has about 1GB free, to use for buffer as it sees fit.  No I/O to 
> the swap file going on, cause there is no mounted swap.
> 
> Check this out:
> 
> dd if=/dev/zero of=/dev/hda bs=1024
> 
> then:
> 
> fdisk /dev/hdc
> 
> "q"
> 
> fdisk blocks in the close() call.... for well over 15 minutes!
> 
> As soon as dd ends cause /dev/hda is at EOF, fisk::close() returns in a 
> moment.

When you quit from fdisk it does a sync() right after the close().  I
suspect that fdisk gets stuck in that sync() rather than close().  (You
said strace reported close() as the last syscall - it's the last one
completed.)  The write on one of the channels doesn't let sync() return.

To make sure I'd try to check (e.g. with /proc/<pid>/fd) if fdisk still
has /dev/hdc open during the dd.

  Cheers,
  	Roman.

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <Pine.LNX.4.33.0207221750210.22553-100000@coffee.psychology.mcmaster.ca>]
[parent not found: <fa.e5te67v.1s3m1qr@ifi.uio.no>]
* 2.4.18 IDE channels block each other under load?
@ 2002-06-21 14:03 Taavo Raykoff
  2002-06-21 14:17 ` Roy Sigurd Karlsbakk
  0 siblings, 1 reply; 8+ messages in thread
From: Taavo Raykoff @ 2002-06-21 14:03 UTC (permalink / raw)
  To: linux-kernel

Can someone tell me what is going on here?

dd if=/dev/zero of=/dev/hda bs=1024 count=1000000

then in another vt:
fdisk /dev/hdc, then immediately press "q".

fdisk "hangs" for a long, long time.
ps -aux says state of dd and fdisk are both "D"
strace says fdisk is hanging on the close()
/proc/interrupts tell me that ide1 (/dev/hdc) is getting no 
 int activity for a long, long time. ide0 is very busy.

It is not just dd/fdisk.  Any intensive writes on one IDE 
channel (direct to the hd? device) seem to block any IO on 
the other device. 

Intel SAI2 MB, ServerWorks IDE chipset, 2.4.18, two IDE 
hard drives /dev/hda and /dev/hdc, 1024MB RAM, RH73 kernel
build.

Also seen on Promise PDCx IDE controllers hanging off the PCI.

hdparm settings appear to have no influence on this behavior.

Thanks,
TR.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-07-30 17:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-30 17:27 2.4.18 IDE channels block each other under load? Roman Kagan
     [not found] <Pine.LNX.4.33.0207221750210.22553-100000@coffee.psychology.mcmaster.ca>
2002-07-22 23:04 ` T.Raykoff
2002-07-30 16:18   ` Bill Davidsen
     [not found] <fa.e5te67v.1s3m1qr@ifi.uio.no>
2002-07-22 20:08 ` Aniket Malatpure
2002-07-22 21:09   ` Andre Hedrick
  -- strict thread matches above, loose matches on Subject: below --
2002-06-21 14:03 Taavo Raykoff
2002-06-21 14:17 ` Roy Sigurd Karlsbakk
2002-06-21 15:14   ` T.Raykoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox