Marvin | 1 Jun 2009 12:33
Picon
Picon

fsr stucks in D-state

Hi,

I observed a hang in D-state when using xfs_fsr.

- xfsprogs is from git (3.0.2)
- kernel also (2.6.30-rc7...)

I tried 2.6.29.4 and it worked flawless. Machine is powerpc32.

Here is the sysrq-t trace:

xfs_fsr       D 480f7f3c     0  4211   4210                  
Call Trace:                                                  
[d1adfc40] [00001032] 0x1032 (unreliable)                    
[d1adfd00] [c0008dd8] __switch_to+0x4c/0x6c                  
[d1adfd20] [c02c5294] __schedule+0x230/0x360                 
[d1adfd70] [c02c53ec] schedule+0x28/0x54                     
[d1adfd80] [c02c7964] rwsem_down_failed_common+0x104/0x25c   
[d1adfdb0] [c02c7ae4] rwsem_down_write_failed+0x28/0x40      
[d1adfde0] [c02c6994] down_write+0x30/0x40                   
[d1adfdf0] [c012399c] xfs_ilock+0x9c/0xa0                    
[d1adfe00] [c014375c] xfs_inactive+0x2e8/0x48c               
[d1adfe40] [c015113c] xfs_fs_clear_inode+0x40/0x50           
[d1adfe50] [c00ab764] clear_inode+0x68/0xec                  
[d1adfe60] [c00ac02c] generic_delete_inode+0x16c/0x170       
[d1adfe80] [c00aaf20] iput+0x70/0x90                         
[d1adfe90] [c00a7424] dentry_iput+0xc8/0x154                 
[d1adfeb0] [c00a75e0] d_kill+0x50/0x8c                       
[d1adfed0] [c00a80cc] dput+0x110/0x210                       
[d1adfef0] [c0095b50] __fput+0x178/0x204                     
(Continue reading)

Richard Ems | 1 Jun 2009 16:32
Favicon

Re: xfs_growfs: XFS_IOC_FSGROWFSDATA xfsctl failed: Invalid argument

Eric Sandeen wrote:
> if you growfs to a nr of blocks that is about 55 blocks less than the
> actual device size, it should succeed for you.  There's a case where the
> last AG would be too small and it tries to compensate but there's an
> overflow, I'll send a patch.

Yes, it worked growing to a smaller size.

Thanks again, Richard

--

-- 
Richard Ems       mail: Richard.Ems <at> Cape-Horn-Eng.com

Cape Horn Engineering S.L.
C/ Dr. J.J. Dómine 1, 5º piso
46011 Valencia
Tel : +34 96 3242923 / Fax 924
http://www.cape-horn-eng.com

_______________________________________________
xfs mailing list
xfs <at> oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

Alexander Beregalov | 1 Jun 2009 17:22
Picon

2.6.30-rc6: BUG at fs/xfs/support/debug.c:109!

Hi

Assertion failed: *nmap >= 1, file: fs/xfs/xfs_bmap.c, line: 4846
------------[ cut here ]------------
kernel BUG at fs/xfs/support/debug.c:109!
invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
last sysfs file: /sys/kernel/uevent_seqnum
CPU 0
Modules linked in:
Pid: 30665, comm: emerge Not tainted 2.6.30-rc6-00144-g5805977 #1 PowerEdge 1950
RIP: 0010:[<ffffffff8043abeb>]  [<ffffffff8043abeb>] assfail+0x2b/0x30
RSP: 0018:ffff8800303c1b98  EFLAGS: 00010246
RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000301
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff8800303c1ba8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000800000000
R13: ffff880078c0ccc0 R14: 0000000000000002 R15: ffff88007eb3f000
FS:  00007f7e92dbc6f0(0000) GS:ffff880005000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001b0a024 CR3: 0000000074cb0000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process emerge (pid: 30665, threadinfo ffff8800303c0000, task ffff88007e335e10)
Stack:
 ffff8800051cefa0 00000000780d89a3 ffff8800303c1d88 ffffffff803d6bad
 ffffffff804c9ad8 ffffffff814497f8 ffff880045a72000 ffff880045a72aa8
 ffffffff81449800 0000000000000000 0000000000000000 00000000780d89a3
Call Trace:
 [<ffffffff803d6bad>] xfs_bmapi+0xad/0x1ad0
 [<ffffffff804c9ad8>] ? _atomic_dec_and_lock+0x88/0xb0
(Continue reading)

Alexander Beregalov | 1 Jun 2009 17:22
Picon

2.6.30-rc6: BUG at fs/xfs/support/debug.c:109!

Hi

Assertion failed: *nmap >= 1, file: fs/xfs/xfs_bmap.c, line: 4846
------------[ cut here ]------------
kernel BUG at fs/xfs/support/debug.c:109!
invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
last sysfs file: /sys/kernel/uevent_seqnum
CPU 0
Modules linked in:
Pid: 30665, comm: emerge Not tainted 2.6.30-rc6-00144-g5805977 #1 PowerEdge 1950
RIP: 0010:[<ffffffff8043abeb>]  [<ffffffff8043abeb>] assfail+0x2b/0x30
RSP: 0018:ffff8800303c1b98  EFLAGS: 00010246
RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000301
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff8800303c1ba8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000800000000
R13: ffff880078c0ccc0 R14: 0000000000000002 R15: ffff88007eb3f000
FS:  00007f7e92dbc6f0(0000) GS:ffff880005000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001b0a024 CR3: 0000000074cb0000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process emerge (pid: 30665, threadinfo ffff8800303c0000, task ffff88007e335e10)
Stack:
 ffff8800051cefa0 00000000780d89a3 ffff8800303c1d88 ffffffff803d6bad
 ffffffff804c9ad8 ffffffff814497f8 ffff880045a72000 ffff880045a72aa8
 ffffffff81449800 0000000000000000 0000000000000000 00000000780d89a3
Call Trace:
 [<ffffffff803d6bad>] xfs_bmapi+0xad/0x1ad0
 [<ffffffff804c9ad8>] ? _atomic_dec_and_lock+0x88/0xb0
(Continue reading)

Felix Blyakher | 1 Jun 2009 18:09
Picon
Favicon

Re: 2.6.30-rc6: BUG at fs/xfs/support/debug.c:109!


On Jun 1, 2009, at 10:22 AM, Alexander Beregalov wrote:

> Hi
>
> Assertion failed: *nmap >= 1, file: fs/xfs/xfs_bmap.c, line: 4846

Alexander, what test triggered this assertion?

>
> ------------[ cut here ]------------
> kernel BUG at fs/xfs/support/debug.c:109!
> invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
> last sysfs file: /sys/kernel/uevent_seqnum
> CPU 0
> Modules linked in:
> Pid: 30665, comm: emerge Not tainted 2.6.30-rc6-00144-g5805977 #1  
> PowerEdge 1950
> RIP: 0010:[<ffffffff8043abeb>]  [<ffffffff8043abeb>] assfail+0x2b/0x30
> RSP: 0018:ffff8800303c1b98  EFLAGS: 00010246
> RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000301
> RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
> RBP: ffff8800303c1ba8 R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000001 R11: 0000000000000001 R12: 0000000800000000
> R13: ffff880078c0ccc0 R14: 0000000000000002 R15: ffff88007eb3f000
> FS:  00007f7e92dbc6f0(0000) GS:ffff880005000000(0000) knlGS: 
> 0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000001b0a024 CR3: 0000000074cb0000 CR4: 00000000000006e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
(Continue reading)

Felix Blyakher | 1 Jun 2009 18:46
Picon
Favicon

Re: [Bug #13375] Kernel crash with 2.6.29 + nfs + xfs (radix-tree)

[cc'ing the xfs mailing list]

On May 30, 2009, at 2:55 PM, Rafael J. Wysocki wrote:

> This message has been generated automatically as a part of a report
> of regressions introduced between 2.6.28 and 2.6.29.
>
> The following bug entry is on the current list of known regressions
> introduced between 2.6.28 and 2.6.29.  Please verify if it still  
> should
> be listed and let me know (either way).
>
>
> Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=13375
> Subject		: Kernel crash with 2.6.29 + nfs + xfs (radix-tree)
> Submitter	: Alex Samad <alex <at> samad.com.au>
> Date		: 2009-05-20 0:37 (11 days old)
> References	: http://marc.info/?l=linux-kernel&m=124278675503699&w=4
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux- 
> kernel" in
> the body of a message to majordomo <at> vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

_______________________________________________
xfs mailing list
xfs <at> oss.sgi.com
(Continue reading)

Alexander Beregalov | 1 Jun 2009 19:38
Picon

Re: 2.6.30-rc6: BUG at fs/xfs/support/debug.c:109!

2009/6/1 Felix Blyakher <felixb <at> sgi.com>:
>
> On Jun 1, 2009, at 10:22 AM, Alexander Beregalov wrote:
>
>> Hi
>>
>> Assertion failed: *nmap >= 1, file: fs/xfs/xfs_bmap.c, line: 4846
>
> Alexander, what test triggered this assertion?
>
>>
>> ------------[ cut here ]------------
>> kernel BUG at fs/xfs/support/debug.c:109!
>> invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
>> last sysfs file: /sys/kernel/uevent_seqnum
>> CPU 0
>> Modules linked in:
>> Pid: 30665, comm: emerge Not tainted 2.6.30-rc6-00144-g5805977 #1
>> PowerEdge 1950
>> RIP: 0010:[<ffffffff8043abeb>]  [<ffffffff8043abeb>] assfail+0x2b/0x30
>> RSP: 0018:ffff8800303c1b98  EFLAGS: 00010246
>> RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000301
>> RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
>> RBP: ffff8800303c1ba8 R08: 0000000000000000 R09: 0000000000000000
>> R10: 0000000000000001 R11: 0000000000000001 R12: 0000000800000000
>> R13: ffff880078c0ccc0 R14: 0000000000000002 R15: ffff88007eb3f000
>> FS:  00007f7e92dbc6f0(0000) GS:ffff880005000000(0000)
>> knlGS:0000000000000000
>> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
>> CR2: 0000000001b0a024 CR3: 0000000074cb0000 CR4: 00000000000006e0
(Continue reading)

Felix Blyakher | 1 Jun 2009 19:53
Picon
Favicon

Re: 2.6.30-rc6: BUG at fs/xfs/support/debug.c:109!


On Jun 1, 2009, at 12:43 PM, Alexander Beregalov wrote:

> By the way,
> Felix, your last pull request was a month ago.
> Final release of 2.6.30 is coming soon, could you please send the
> fixes to Linus?
>
> Just in case you do not read LKML.

Yes, I do. And it is on the top of my todo list today.
Thanks, for heads up, though.

Felix

_______________________________________________
xfs mailing list
xfs <at> oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

Alexander Beregalov | 1 Jun 2009 19:43
Picon

Re: 2.6.30-rc6: BUG at fs/xfs/support/debug.c:109!

By the way,
Felix, your last pull request was a month ago.
Final release of 2.6.30 is coming soon, could you please send the
fixes to Linus?

Just in case you do not read LKML.

_______________________________________________
xfs mailing list
xfs <at> oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

Felix Blyakher | 1 Jun 2009 19:58
Picon
Favicon

Re: 2.6.30-rc6: BUG at fs/xfs/support/debug.c:109!


On Jun 1, 2009, at 12:38 PM, Alexander Beregalov wrote:

> It was Gentoo's `emerge --metadata`. It reads many small files  
> (ebuilds).
> I am sure it cannot be easily reproduced.

Right. Otherwise many more people would've reported it.

> It runs fine everyday. I do not have a testcase.
> I can try to run it forever in loop if you need.

Yes, that will be good.
The problem is that the traces are confusing. From one
side readdir stack makes sense based on your description
of the load, but OTOH the panic is from xfs_bmapi(), which
doesn't fit in that backtrace at all. It seems like
backtrace is from the concurrently running different thread.
Don't have good idea for this bug atm.

Felix

_______________________________________________
xfs mailing list
xfs <at> oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs


Gmane