Skip to contentSkip to conversation

(root cause found....may be not)64k Page size + ext3 errors

DISCUSSION tirumalareddy marri 2 participants 2 messages Aug 2, 2008 – Aug 3, 2008 MD RAID

lore
Share & tools
lore
#0 lore raw

After lots of debugging and dumping file system information. I found that  super block is being corrupted  during SATA dma transfer.  I am using PCI-E based SATA card to attach hard disks. Looks with 64k page size SATA DMA seems to be stressed so much compared to 4k page size. I used another SATA card which is more stable(it does not use  libata). It worked finw with RAID-5 and 64k page size. I have used a small C program to create w2GB size file and read it back and check the data consistency. So far no errors found. I also used IO meter test , which worked fine too.
All thank you very much for the suggestions and responses.
Regards,
Marri

----- Original Message ----
From: Roger Heflin <[email protected]>
To: tirumalareddy marri <[email protected]>
Cc: [email protected]
Sent: Monday, July 28, 2008 5:33:34 PM
Subject: Re: 64k Page size + ext3 errors

Quoted 2 lines · tirumalareddy marri

Hi Roger,
    I did sync after I copied the 128MB data. Isn't that should guarantee data is flushed to disk ? I am using "sum" command to check if data file is copied to Disk is valid or not.

It means it will be flushed to disk, it does not mean that when you read it back that will come off disk, if it is still in memory then it will come out of memory, and still be wrong on disk.    If you won't want to to more complicated test it might be best to create the file, csum it and if it is ok umount the device and remount it and csum it again and see, this should at least force it to come off of disk again.

How much memory does your test machine have?

Quoted 5 lines

Here is more information.
setup: Created /dev/md0 of 30GB size , created ext3 files system. Then started SAMBA server to export mountded /dev/md0 to a windows machine to run IO and copy files. 4K Page size:
-------------------
1. IO Meter Test: Works just fine.

None of the benchmarks I am familiar with actually confirm that the data is good, the only way one of the benchmarks will fail is if the file table gets corrupted, and they may run in cache.

Quoted 6 lines

2. Copied 1.8 GB file and check sum is good.
3. Performance is not good because of small page size.
16k Page size:
---------------------
1. RAID-5 fails some times with " Attempt to access beyond the end of device"
2. Copied 128MB and 385MB file. Checked check sum, they are matching check sum.

Quoted 8 lines

3. Copied 1.8 GB file , this failed checksum test using "sum" command. I see "EXT3-fs errors". 64K Page size:
----------------------
1. RAID-5 failes some times with "Attempt to access beyond the end of device"
2. Able to copy 128MB data and check sum test passed.
3. Copying 385MB and 1.8 GB file with EXT3-fs errors.
Thanks,
Marri

I would write directly to the /dev/mdx a specific pattern (a stream of binary numbers from 1 ... whatever works fine), and then read that back and see how things match or don't.  csum *can* fail, and if you have enough memory then any corruption actually on disk *WON'T* be found until somethings causes it to be ejected from cache, and then later re-read from disk.

                              Roger

--
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

#1 lore raw

[ ... ]

Quoted 5 lines

After lots of debugging and dumping file system information. I found that  super block is being corrupted  during SATA dma transfer. I am using PCI-E based SATA card to attach hard disks. Looks with 64k page size SATA DMA seems to be stressed so much compared to 4k page size.

Well, that depends quite a bit on a lot of factors, but if for example a 64KiB IO block size means is transferred as one PCI transaction, things will likely be bad indeed.

Quoted 2 lines

I used another SATA card which is more stable(it does not use libata). It worked finw with RAID-5 and 64k page size.

It would be interesting to see if the PCI latency timers for the two cards default to the same value or different values. Quite a few (GPU and other) cards set high latency timer values to game benchmarks.

Quoted 4 lines

I have used a small C program to create w2GB size file and read it back and check the data consistency. So far no errors found. I also used IO meter test , which worked fine too. [ ... ]

This very interesting paper from CERN on silent corruptions may be relevant too.

https://indico.desy.de/contributionDisplay.py?contribId=65&sessionId=42&confId=257
--
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