Skip to contentSkip to conversation

xfstests 013 - 2.6.35.11 - hang

PATCH Ajeet Yadav 2 participants 5 messages Apr 27, 2011 – May 3, 2011

lore
Share & tools
lore
#0 lore raw

I have downloaded xfstests-fa83948599dd10078a62acab8b0c1f93c82ad807.tar.gz Build and run xfstests on MIPS target. This is my first try with xfstests but report is not good.

./check -xfs quick
001, 004 have differences
013 have hang

VDLinux#> ./check -xfs -g quick

FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/mips localhost 2.6.35.11
MKFS_OPTIONS  -- -f -bsize=4096 /dev/sda4

MOUNT_OPTIONS -- /dev/sda4 /dtv/usb/sda4

XFS mounting filesystem sda4
XFS mounting filesystem sda3
001 [failed, exit status 1] - output mismatch (see 001.out.bad)

001.out.bad Thu Jan 1 00:59:07 1970 renamed from 001.out Thu Jan 1 00:07:48 1970 +74 -6
@@ -1,9 +1,77 @@
 QA output created by 001
 cleanup
 setup ....................................
-iter 1 chain ... check ....................................
-iter 2 chain ... check ....................................
-iter 3 chain ... check ....................................
-iter 4 chain ... check ....................................
-iter 5 chain ... check ....................................
-cleanup
+iter 1 chain ... check
+Error: corruption for small ...
+
+Error: corruption for big ...
+
+Error: corruption for sub/small ...
+
+Error: corruption for sub/big ...
+
+Error: corruption for sub/a ...
+
+Error: corruption for sub/b ...
+
+Error: corruption for sub/c ...
+
+Error: corruption for sub/d ...
+
+Error: corruption for sub/e ...
+
+Error: corruption for sub/f ...
+
+Error: corruption for sub/g ...
+
+Error: corruption for sub/h ...
+
+Error: corruption for sub/i ...
+
+Error: corruption for sub/j ...
+
+Error: corruption for sub/k ...
+
+Error: corruption for sub/l ...
+
+Error: corruption for sub/m ...
+
+Error: corruption for sub/n ...
+
+Error: corruption for sub/a00 ...
+
+Error: corruption for sub/b00 ...
+
+Error: corruption for sub/c00 ...
+
+Error: corruption for sub/d00 ...
+
+Error: corruption for sub/e00 ...
+
+Error: corruption for sub/f00 ...
+
+Error: corruption for sub/g00 ...
+
+Error: corruption for sub/h00 ...
+
+Error: corruption for sub/i00 ...
+
+Error: corruption for sub/j00 ...
+
+Error: corruption for sub/k00 ...
+
+Error: corruption for sub/l00 ...
+
+Error: corruption for sub/m00 ...
+
+Error: corruption for sub/n00 ...
+
+Error: corruption for sub/a000 ...
+
+Error: corruption for sub/e000 ...
+
+Error: corruption for sub/h000 ...
+
+Error: corruption for sub/k000 ...
+
+Fatal error: test abandoned without changes

XFS mounting filesystem sda3
002 1s ... 2s
XFS mounting filesystem sda3
003 1s ... 1s
XFS mounting filesystem sda3
004 XFS mounting filesystem sda4
XFS mounting filesystem sda4
[failed, exit status 1] - output mismatch (see 004.out.bad)

004.out.bad Thu Jan 1 00:59:40 1970 renamed from 004.out Thu Jan 1 00:07:48 1970 +9 -1
@@ -5,5 +5,13 @@
 naming   =VERN bsize=XXX
 log      =LDEV bsize=XXX blocks=XXX
 realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX
-Checking blocks column same as df: yes
+Checking blocks column same as df: no (2806374400 != 33636352)
+Error: /dev/sda4: freesp mismatch: no (2806374400 != 33636352)
+xfs_db output ...
+   from      to extents  blocks    pct
+      1       1      16      16   0.00
+ 131072  172283       4  685134 100.00
+total free extents 20
+total free blocks 685150
+average free extent size 34257.5
 Checking percent column yields 100: 100

XFS mounting filesystem sda3
005 1s ... 1s
XFS mounting filesystem sda3
006 39s ... 38s
XFS mounting filesystem sda3
007 31s
XFS mounting filesystem sda3
008 8s ... 5s
XFS mounting filesystem sda3
009 13s ...XFS mounting filesystem sda4
13s
XFS mounting filesystem sda3
011 93s
XFS mounting filesystem sda3
012 78s ... 65s
XFS mounting filesystem sda3
013 XFS mounting filesystem sda3
XFS mounting filesystem sda3

INFO: task fsstress:15299 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
fsstress      D 8000606c     0 15299  15296 0x00100000
Stack : 83a5a700 83a5a6d0 8103e8c0 83995e38 8000606c 0003c49a 7fffffff 7fffffff
        00000002 00000000 00000000 00420000 00420000 0041d1c0 00420000 8000606c
        83995e28 8006f20c 8004030c 00000003 83995e34 83a5a6d0 8103e8c0 80065528
        0002480d 0003c499 00000000 00000000 7fffffff 83995e80 00000002 80005e90
        00000000 810884e0 81077580 8103e8c0 00000001 83a5a6d0 80024144 83995e84
        ...
Call Trace:
[<80005948>] schedule+0x3ec/0x4b0
[<8000606c>] schedule_timeout+0x2c/0x210
[<80005e90>] wait_for_common+0xf4/0x1bc
[<800b77dc>] sync_inodes_sb+0x90/0x1a4
[<800bc190>] __sync_filesystem+0x60/0xbc
[<80097394>] iterate_supers+0xa0/0x124
[<800bc25c>] sys_sync+0x44/0x74
[<80002164>] stack_done+0x20/0x3c

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw
Quoted 8 lines · Ajeet Yadav

I have downloaded xfstests-fa83948599dd10078a62acab8b0c1f93c82ad807.tar.gz Build and run xfstests on MIPS target. This is my first try with xfstests but report is not good.

001.out.bad Thu Jan 1 00:59:07 1970 renamed from 001.out Thu Jan 1 00:07:48 1970 +0 -0
@@ -1,9 +1,77 @@
 QA output created by 001

001.out.bad Thu Jan 1 00:59:07 1970 line 5

Quoted 10 lines
001.out.bad Thu Jan 1 00:59:07 1970 renamed from 001.out Thu Jan 1 00:07:48 1970 +2 -6
 cleanup
 setup ....................................
-iter 1 chain ... check ....................................
-iter 2 chain ... check ....................................
-iter 3 chain ... check ....................................
-iter 4 chain ... check ....................................
-iter 5 chain ... check ....................................
-cleanup
+iter 1 chain ... check
+Error: corruption for small ...

001 tests trivial fail copies, and if these already fail you're most likely having cache coherency issues. What mips platform is this, and do you use any non-mainline patches?

Does 001 also fail for say ext2 and ext3?

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw

MIPS32® 34K™ Core
It does not provide invalidate_kernel_vmap_range() / flush_kernel_vmap_range() to deal with cache coherency problem Therefore we provided dma_cache_inv() / dma_cache_wback_inv() , after that we did not had any coherency problem
But as you saying it still has cache coherency problem, wrt xfstests 001 ?

diff -Nurp -X linux-2.6.35.11/Documentation/dontdiff linux-2.6.35.11/fs/xfs/linux-2.6/xfs_buf.c linux-2.6.35.11-dirty/fs/xfs/linux-2.6/xfs_buf.c --- linux-2.6.35.11/fs/xfs/linux-2.6/xfs_buf.c 2011-02-07 04:04:07.000000000 +0900
+++ linux-2.6.35.11-dirty/fs/xfs/linux-2.6/xfs_buf.c 2011-03-22
18:29:09.000000000 +0900
@@ -1192,7 +1192,7 @@ xfs_buf_bio_end_io(

        xfs_buf_ioerror(bp, -error);

        if (!error && xfs_buf_is_vmapped(bp) && (bp->b_flags & XBF_READ))

- invalidate_kernel_vmap_range(bp->b_addr, xfs_buf_vmap_len(bp));
+ dma_cache_inv((unsigned long)bp->b_addr, xfs_buf_vmap_len(bp));

        do {
                struct page     *page = bvec->bv_page;
@@ -1304,7 +1304,7 @@ next_chunk:
 submit_io:
        if (likely(bio->bi_size)) {
                if (xfs_buf_is_vmapped(bp)) {
-                       flush_kernel_vmap_range(bp->b_addr,
+                       dma_cache_wback_inv((unsigned long)bp->b_addr,
                                                xfs_buf_vmap_len(bp));
                }
                submit_bio(rw, bio);
Quoted 3 lines · Christoph Hellwig

Does 001 also fail for say ext2 and ext3?

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw

Is there any thing I left out in xfs related to cache coherency.

Quoted 33 lines · Ajeet Yadav

MIPS32® 34K™ Core
It does not provide  invalidate_kernel_vmap_range() / flush_kernel_vmap_range() to deal with cache coherency problem Therefore we provided dma_cache_inv() / dma_cache_wback_inv() , after that we did not had any coherency problem
But as you saying it still has cache coherency problem, wrt xfstests 001 ?

diff -Nurp -X linux-2.6.35.11/Documentation/dontdiff linux-2.6.35.11/fs/xfs/linux-2.6/xfs_buf.c linux-2.6.35.11-dirty/fs/xfs/linux-2.6/xfs_buf.c
--- linux-2.6.35.11/fs/xfs/linux-2.6/xfs_buf.c  2011-02-07 04:04:07.000000000 +0900
+++ linux-2.6.35.11-dirty/fs/xfs/linux-2.6/xfs_buf.c    2011-03-22 18:29:09.000000000 +0900

(quoted diff) +1 -1
@@ -1192,7 +1192,7 @@ xfs_buf_bio_end_io(
        xfs_buf_ioerror(bp, -error);
 
        if (!error && xfs_buf_is_vmapped(bp) && (bp->b_flags & XBF_READ))
-               invalidate_kernel_vmap_range(bp->b_addr, xfs_buf_vmap_len(bp));
+               dma_cache_inv((unsigned long)bp->b_addr, xfs_buf_vmap_len(bp));
 
        do {
                struct page     *page = bvec->bv_page;
@@ -1304,7 +1304,7 @@ next_chunk:

 submit_io:
       if (likely(bio->bi_size)) {
               if (xfs_buf_is_vmapped(bp)) {
-                       flush_kernel_vmap_range(bp->b_addr,
+                       dma_cache_wback_inv((unsigned long)bp->b_addr, xfs_buf_vmap_len(bp)); }
               submit_bio(rw, bio);

Quoted 5 lines
Quoted 3 lines · Christoph Hellwig

Does 001 also fail for say ext2 and ext3?

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs