xfs
[Top] [All Lists]

XFS Direct IO, unaligned block zeroing at 128K boundery

To: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: XFS Direct IO, unaligned block zeroing at 128K boundery
From: Ajeet Yadav <ajeet.yadav.77@xxxxxxxxx>
Date: Thu, 25 Nov 2010 12:23:11 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=MGCiUhXUQMKFsOGzLBiu7soLVB38NK934zVd2K9qgKo=; b=djaZAPx81LAl7oPORwD3E0oSOSRSHVwnXF23cwIZ1OqrSmlTaD7KV1l6s9EpC1TFy5 itXCcJR4cPDeuMBvpOOS5RP8CSonvx8xatpIHEe+bc5l0IwtLLPwMPFCPzm2iz0dbnH7 8KPIfYVH8qVq8PIgqllWBp3MONHH5AuvP5C9k=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=N4Tk22fgzA3JHO0trK2MnZgYL8s69Y5IfX7H22h/HV8DYawkcuTVf+VUH9cgL/aY/H L2b2abU910s5v3SxctUPXHw9i3X+RNQa4PaCoOVMB/A7hlCoR8coezCRHhPFAqu3YrKU AGPhlvTQ5ZPHZW/JB+LsKFEIBKd7DJpiH3U7w=
Dear all
I made a simple script that creates a 2MB file using directio write operation,
The objective was to test with different buffer sizes from 4K-5K-6K..8K, the buffer was filled with 5,
Than take hexdump of file to check data integrity.
 
With 4K the file is fine, but with 5K, It can be noticed that
 
there is zeroing is at 128K boundry further this shift 1K on successive 128K chunk.
I guess this is a bug. 
------------------------------------------------------------------------------------
*****************************
BUFFER SIZE : 4096
*****************************
0000000 0505 0505 0505 0505 0505 0505 0505 0505
*
0200000
*****************************
BUFFER SIZE : 5120
*****************************
0000000 0505 0505 0505 0505 0505 0505 0505 0505
*
001f400 0000 0000 0000 0000 0000 0000 0000 0000
*
0020000 0505 0505 0505 0505 0505 0505 0505 0505
*
002f800 0000 0000 0000 0000 0000 0000 0000 0000
*
0030000 0505 0505 0505 0505 0505 0505 0505 0505
*
003fc00 0000 0000 0000 0000 0000 0000 0000 0000
*
0040000 0505 0505 0505 0505 0505 0505 0505 0505
*
006f400 0000 0000 0000 0000 0000 0000 0000 0000
*
0070000 0505 0505 0505 0505 0505 0505 0505 0505
*
007f800 0000 0000 0000 0000 0000 0000 0000 0000
*
0080000 0505 0505 0505 0505 0505 0505 0505 0505
*
008fc00 0000 0000 0000 0000 0000 0000 0000 0000
*
0090000 0505 0505 0505 0505 0505 0505 0505 0505
*
00bf400 0000 0000 0000 0000 0000 0000 0000 0000
*
00c0000 0505 0505 0505 0505 0505 0505 0505 0505
*
00cf800 0000 0000 0000 0000 0000 0000 0000 0000
*
00d0000 0505 0505 0505 0505 0505 0505 0505 0505
*
00dfc00 0000 0000 0000 0000 0000 0000 0000 0000
*
00e0000 0505 0505 0505 0505 0505 0505 0505 0505
*
010f400 0000 0000 0000 0000 0000 0000 0000 0000
*
0110000 0505 0505 0505 0505 0505 0505 0505 0505
*
011f800 0000 0000 0000 0000 0000 0000 0000 0000
*
0120000 0505 0505 0505 0505 0505 0505 0505 0505
*
012fc00 0000 0000 0000 0000 0000 0000 0000 0000
*
0130000 0505 0505 0505 0505 0505 0505 0505 0505
*
015f400 0000 0000 0000 0000 0000 0000 0000 0000
*
0160000 0505 0505 0505 0505 0505 0505 0505 0505
*
016f800 0000 0000 0000 0000 0000 0000 0000 0000
*
0170000 0505 0505 0505 0505 0505 0505 0505 0505
*
017fc00 0000 0000 0000 0000 0000 0000 0000 0000
*
0180000 0505 0505 0505 0505 0505 0505 0505 0505
*
01af400 0000 0000 0000 0000 0000 0000 0000 0000
*
01b0000 0505 0505 0505 0505 0505 0505 0505 0505
*
01bf800 0000 0000 0000 0000 0000 0000 0000 0000
*
01c0000 0505 0505 0505 0505 0505 0505 0505 0505
*
01cfc00 0000 0000 0000 0000 0000 0000 0000 0000
*
01d0000 0505 0505 0505 0505 0505 0505 0505 0505
*
01ff400

On Wed, Nov 24, 2010 at 10:10 AM, Ajeet Yadav <ajeet.yadav.77@xxxxxxxxx> wrote:
We have backported complete xfs from 2.6.34 to 2.6.30.9, because there were many fixes since 2.6.30.9
On Tue, Nov 23, 2010 at 6:51 PM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
On Tue, Nov 23, 2010 at 03:50:37PM +0530, Ajeet Yadav wrote:
> I have the following backtrace on my ARM target, please have a look

Are sure you're on 2.6.34?  Something similar was fixed by commit
f1f724e4b523d444c5a598d74505aefa3d6844d2 in 2.6.34.



<Prev in Thread] Current Thread [Next in Thread>