RAID5 lockup with AMCC440 and async-tx
Hi,
I have a board with an AMCC440 processor, running RAID5 using the async-tx interface. In general, it works well, but I have found a test case that consistently causes a hard lockup of the entire system.
What makes this case odd is that I have only been able to generate it when accessing disks that are on two separate HBAs - in my case mpt-fusion based SAS HBAs. Once two HBAs are in use, the bug is trivial to repeat. I simply create a RAID5 using disks from each HBA, wait for it to resync, and then run
"dd if=/dev/zero of=/dev/md0 bs=512 count=100000".
By disabling CONFIG_DMA_ENGINE in my kernel config, the hang goes away, but then so does my performance.
Any pointers on how to debug this? It feels like a race condition of some description, but any serial port printing I enable causes the problem to go away, and I can't print silently to /var/log/messages as the system hangs before it can flush.
Regards,
Dale
Quoted 22 lines · Dale Dunlea
Hi,
I have a board with an AMCC440 processor, running RAID5 using the async-tx interface. In general, it works well, but I have found a test case that consistently causes a hard lockup of the entire system.
What makes this case odd is that I have only been able to generate it when accessing disks that are on two separate HBAs - in my case mpt-fusion based SAS HBAs. Once two HBAs are in use, the bug is trivial to repeat. I simply create a RAID5 using disks from each HBA, wait for it to resync, and then run
"dd if=/dev/zero of=/dev/md0 bs=512 count=100000".
By disabling
CONFIG_DMA_ENGINEin my kernel config, the hang goes away, but then so does my performance.Any pointers on how to debug this? It feels like a race condition of some description, but any serial port printing I enable causes the problem to go away, and I can't print silently to
/var/log/messagesas the system hangs before it can flush.
Quoted 7 lines
Regards,
Dale
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Added linux-ide-arrays to the CC list which is probably better suited towards this kind of question.
Justin.
Dear Dale,
Quoted 4 lines · in message <[email protected]> you…
I have a board with an AMCC440 processor, running RAID5 using the async-tx interface. In general, it works well, but I have found a test case that consistently causes a hard lockup of the entire system.
Please make sure to use latest code - we found a bug recently.
Quoted 5 lines
What makes this case odd is that I have only been able to generate it when accessing disks that are on two separate HBAs - in my case mpt-fusion based SAS HBAs. Once two HBAs are in use, the bug is trivial to repeat. I simply create a RAID5 using disks from each HBA, wait for it to resync, and then run
We saw similar problems, in our case they showed up only with a large number of disks in combination with big kernel pages sizes (64 kB).
Quoted 4 lines
Any pointers on how to debug this? It feels like a race condition of some description, but any serial port printing I enable causes the problem to go away, and I can't print silently to
/var/log/messagesas the system hangs before it can flush.
See above - please try current code.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] HR Manager to job candidate "I see you've had no computer training. Although that qualifies you for upper management, it means you're under-qualified for our entry level positions."
Quoted 9 lines · Wolfgang Denk
Dear Dale,
Quoted 4 lines · in message <[email protected]> you…
I have a board with an AMCC440 processor, running RAID5 using the async-tx interface. In general, it works well, but I have found a test case that consistently causes a hard lockup of the entire system.
Please make sure to use latest code - we found a bug recently.
Latest code from Dan or latest code from denx.de? I grabbed the latest code from Dan, but I'm having trouble cloning denx.de:
"remote: error: object directory /home/git/linux-2.6/.git/objects does not exist; check .git/objects/info/alternates."
Quoted 10 lines
Quoted 6 lines
What makes this case odd is that I have only been able to generate it when accessing disks that are on two separate HBAs - in my case mpt-fusion based SAS HBAs. Once two HBAs are in use, the bug is trivial to repeat. I simply create a RAID5 using disks from each HBA, wait for it to resync, and then run
We saw similar problems, in our case they showed up only with a large number of disks in combination with big kernel pages sizes (64 kB).
The problem occurs for me with both 4k and 64k pages.
Regards,
Dale
Dear Dale,
Quoted 2 lines · in message <[email protected]> you…
Latest code from Dan or latest code from denx.de? I grabbed the latest
From linux-2.6-denx
Quoted 4 lines
code from Dan, but I'm having trouble cloning denx.de:
"remote: error: object directory
/home/git/linux-2.6/.git/objectsdoes not exist; check .git/objects/info/alternates."
Argh.. Stupid me.
Please try again - this one is fixed now.
Quoted 4 lines
Quoted 3 lines
We saw similar problems, in our case they showed up only with a large number of disks in combination with big kernel pages sizes (64 kB).
The problem occurs for me with both 4k and 64k pages.
Probably using more than one controller adds to the likelyhood of being hit by this race condition.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Immortality consists largely of boredom. -- Zefrem Cochrane, "Metamorphosis", stardate 3219.8
Quoted 3 lines · Wolfgang Denk
Quoted 1 line
Latest code from Dan or latest code from denx.de? I grabbed the latest
From linux-2.6-denx
I grabbed the latest from denx.de, but unfortunately, to no avail. The dd test still hangs pretty much immediately.
Thanks nonetheless.
Regards,
Dale