Skip to contentSkip to conversation

64k Page size + ext3 errors

DISCUSSION tirumalareddy marri 4 participants 4 messages Jul 27, 2008 – Jul 28, 2008 MD RAID

lore
Share & tools
lore
#0 lore raw

I am using HW accelerated XOR engine for RAID-5 . I am seeing EXT3-fs errors when I use 64K page size. When I use 4K page size I don't see any issue. As many of you know, we will get better performance when we store bigger files like videos.
When I copy 128MB size files using 64k page size no issues seen. When I tried to copy 1.8 GB file with 64KB page size support I am seeing the following errors. Any clue what could be wrong.

Errors 1:
EXT3-fs error (device md0): ext3_new_block: Allocating block in system zone - blocks from 65533, length 1
EXT3-fs error (device md0): ext3_new_block: Allocating block in system zone - blocks from 65534, length 1


Errors2:
EXT3-fs error (device md0): ext3_readdir: bad entry in directory #2: rec_len % 4 != 0 - offset=0, inode=3040


Thanks in Advance,
Marri
--
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 4 lines

I am using HW accelerated XOR engine for RAID-5 . I am seeing EXT3-fs errors when I use 64K page size. When I use 4K page size I don't see any issue. As many of you know, we will get better performance when we store bigger files like videos.

Do you think it is specific to the filesystem on raid-5? Have you tested w/o md? I'd be a little surprised if the problem is at the raid layer (so cc'ing the ext3/4 list), but maybe you tested that already.

Which arch is it, and which kernel? How big is the filesystem? With full geometry information it might be easier for someone to reproduce & debug.

Thanks,
-Eric

Quoted 15 lines

When I copy 128MB size files using 64k page size no issues seen. When I tried to copy 1.8 GB file with 64KB page size support I am seeing the following errors. Any clue what could be wrong.

Errors 1:
EXT3-fs error (device md0): ext3_new_block: Allocating block in system zone - blocks from 65533, length 1
EXT3-fs error (device md0): ext3_new_block: Allocating block in system zone - blocks from 65534, length 1


Errors2:
EXT3-fs error (device md0): ext3_readdir: bad entry in directory #2:
rec_len % 4 != 0 - offset=0, inode=3040

Quoted 3 lines


Thanks in Advance,
Marri

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

#3 lore raw
In reply to tirumalareddy marri
Quoted 4 lines · tirumalareddy marri

I am using HW accelerated XOR engine for RAID-5 . I am seeing EXT3-fs errors when I use 64K page size. When I use 4K page size I don't see any issue. As many of you know, we will get better performance when we store bigger files like videos.

When I copy 128MB size files using 64k page size no issues seen. When I tried to copy 1.8 GB file with 64KB page size support I am seeing the following errors. Any clue what could be wrong.

Quoted 8 lines

Errors 1:
EXT3-fs error (device md0): ext3_new_block: Allocating block in system zone - blocks from 65533, length 1 EXT3-fs error (device md0): ext3_new_block: Allocating block in system zone - blocks from 65534, length 1

Errors2:
EXT3-fs error (device md0): ext3_readdir: bad entry in directory #2: rec_len % 4 != 0 - offset=0, inode=3040

All that error means is that something screwed up the filesystem stuff when you copied the large file.

The lack of an error in the first case does not mean that the correct stuff was written to the filesystem, just that nothing screwed up the internal filesystem data, or that the cache saved you.

I would suggest setting up a simple test using no filesystem and all, and make sure that the correct data can be read and written (and a large enough amount of data that you are not reading out of cache) from the MD device directly, write a
specific pattern that would have lots of unique data. If you don't do enough
data then things *WILL* be coming from cache and still could be screwed up on disk, and this may be what is going on in the case of the 128MB vs 1.8GB case, in both cases it may be wrong on disk, but with the 128MB case is coming from cache, and in the 1.8GB case is coming off disk.

Roger

#2 lore raw
In reply to [email protected]
Quoted 5 lines · On Sun, Jul 27, 2008 at 6:52 PM, <[email protected]> wrote:
Quoted 4 lines

I am using HW accelerated XOR engine for RAID-5 . I am seeing EXT3-fs errors when I use 64K page size. When I use 4K page size I don't see any issue. As many of you know, we will get better performance when we store bigger files like videos.

Quoted 7 lines

Do you think it is specific to the filesystem on raid-5? Have you tested w/o md? I'd be a little surprised if the problem is at the raid layer (so cc'ing the ext3/4 list), but maybe you tested that already.

Which arch is it, and which kernel? How big is the filesystem? With full geometry information it might be easier for someone to reproduce & debug.

Marri, can you post your XOR driver the problem may be there.

Thanks,
Dan