2.4.9-ac1 RAID-5 resync causes PPP connection to be unusable
I ran into a very strange problem yesterday... my server here, which is a 700 MHz Celeron, 256MiB RAM, four ~40G disks has two RAID-5 arrays (using the standard kernel MD driver) configured across those four drives. For some reason definitely related to operator error, the machine crashed and needed to resync the arrays after being rebooted.
Eveything was working fine, interactive response was just fine even though the drives were just cranking away doing their resync. I then brought up my PPP Internet connection, which came up just fine. However, I was _not_ able to actually communicate with any 'Net hosts. Watching the modem lights, it appeared that my packets were going out, and responses were coming back, but the responses never made it up to the userspace applications.
I even dropped and reestablished the PPP connection twice, thinking I got a bad connection to the ISP, but there was no improvement. When the RAID-5 resync was complete, suddenly things began working just fine. While the resync was happening, top showed "raid5syncd" with PRI 19 and NI 19 using about 25-30% CPU, and "raid5" with PRI -1 and NI -20 using about 60-65% CPU.
I can probably reproduce this pretty easily, if anyone is interested and can give me some idea where to look for the cause...
Quoted 10 lines · Kevin P. Fleming
I ran into a very strange problem yesterday... my server here, which is a 700 MHz Celeron, 256MiB RAM, four ~40G disks has two RAID-5 arrays (using the standard kernel MD driver) configured across those four drives. For some reason definitely related to operator error, the machine crashed and needed to resync the arrays after being rebooted.
Eveything was working fine, interactive response was just fine even though the drives were just cranking away doing their resync. I then brought up my PPP Internet connection, which came up just fine. However, I was _not_ able to actually communicate with any 'Net hosts.
[ snip ]
Quoted 2 lines
I can probably reproduce this pretty easily, if anyone is interested and can give me some idea where to look for the cause...
Don't bother. The problem is that your disks are IDE disks and you don't have IRQ unmasking enabled on some/all of them. As long as that's the case, heavy disk activity (whether it's a RAID5 resync or a bonnie run or untar'ing a kernel archive) will always cause your PPP connection to quit working due to dropped serial data and therefore corrupted PPP packets.
Signature · 3 lines
Doug Ledford <[email protected]> http://people.redhat.com/dledford Please check my web site for aic7xxx updates/answers before e-mailing me about problems
OK, I see that now... and it looks like the risks associated with setting the unmaskirq flags on my drives (none of the four drives have it set now) are too great to be worth playing with it. I'll just not use my PPP connection during these particularly heavy disk activity moments. Thanks for the quick response.
----- Original Message -----
From: "Doug Ledford" <[email protected]>
To: "Kevin P. Fleming" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, August 30, 2001 10:59 AM
Subject: Re: 2.4.9-ac1 RAID-5 resync causes PPP connection to be unusable
Quoted 3 lines
Quoted 1 line · Kevin P. Fleming
I ran into a very strange problem yesterday... my server here, which is
a
Quoted 1 line
Quoted 1 line
700 MHz Celeron, 256MiB RAM, four ~40G disks has two RAID-5 arrays
(using
Quoted 1 line
Quoted 1 line
the standard kernel MD driver) configured across those four drives. For
some
Quoted 1 line
Quoted 1 line
reason definitely related to operator error, the machine crashed and
needed
Quoted 3 lines
Quoted 3 lines
to resync the arrays after being rebooted.
Eveything was working fine, interactive response was just fine even
though
Quoted 1 line
Quoted 1 line
the drives were just cranking away doing their resync. I then brought up
my
Quoted 1 line
Quoted 1 line
PPP Internet connection, which came up just fine. However, I was _not_
able
Quoted 7 lines
Quoted 1 line
to actually communicate with any 'Net hosts.
[ snip ]
Quoted 1 line
I can probably reproduce this pretty easily, if anyone is interested and
can
Quoted 20 lines
Quoted 1 line
give me some idea where to look for the cause...
Don't bother. The problem is that your disks are IDE disks and you don't have IRQ unmasking enabled on some/all of them. As long as that's the case, heavy disk activity (whether it's a RAID5 resync or a bonnie run or untar'ing a kernel archive) will always cause your PPP connection to quit working due to dropped serial data and therefore corrupted PPP packets.
--
Doug Ledford <[email protected]> http://people.redhat.com/dledford
Please check my web site for aic7xxx updates/answers before
e-mailing me about problems
Quoted 5 lines · Kevin P. Fleming
OK, I see that now... and it looks like the risks associated with setting the unmaskirq flags on my drives (none of the four drives have it set now) are too great to be worth playing with it. I'll just not use my PPP connection during these particularly heavy disk activity moments. Thanks for the quick response.
There was a kernel patch (or possibly a user-space tool) which allowed one to change the "priority" of IRQs and their handlers. This was back in the 1.2 or 2.0 days, when _any_ disk or other interrupt activity might be enough to cause problems for serial connections (especially if you only had a 16450 UART (1 byte buffer) instead of a 16550 (16 byte buffer). You could make your serial interrupt (handler) take priority over disk interrupts.
Maybe Ted Ts'o or other long-time Linux folks will know what was actually called, and whether it is still applicable to modern hardware/kernel.
Cheers, Andreas
Signature · 3 lines
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- DogbertQuoted 15 lines · Andreas Dilger
Quoted 5 lines · Kevin P. Fleming
OK, I see that now... and it looks like the risks associated with setting the unmaskirq flags on my drives (none of the four drives have it set now) are too great to be worth playing with it. I'll just not use my PPP connection during these particularly heavy disk activity moments. Thanks for the quick response.
There was a kernel patch (or possibly a user-space tool) which allowed one to change the "priority" of IRQs and their handlers. This was back in the 1.2 or 2.0 days, when _any_ disk or other interrupt activity might be enough to cause problems for serial connections (especially if you only had a 16450 UART (1 byte buffer) instead of a 16550 (16 byte buffer). You could make your serial interrupt (handler) take priority over disk interrupts.
Quoted 2 lines
Maybe Ted Ts'o or other long-time Linux folks will know what was actually called, and whether it is still applicable to modern hardware/kernel.
It was called irqtune, http://www.best.com/~cae/irqtune/
But I don't know if it still works with newer hardware/kernel
/Martin