xfs
[Top] [All Lists]

Re: XFS, 4K stacks, and Red Hat

To: Nathan Scott <nathans@xxxxxxx>
Subject: Re: XFS, 4K stacks, and Red Hat
From: Alexander Bergolth <leo@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Jul 2005 18:48:11 +0200
Cc: Joshua Baker-LePain <jlb17@xxxxxxxx>, Steve Lord <lord@xxxxxxx>, Linux xfs mailing list <linux-xfs@xxxxxxxxxxx>
In-reply-to: <20050708043740.GB1679@frodo>
References: <Pine.LNX.4.58.0507071102460.4766@xxxxxxxxxxxxxxxxxx> <42CD4D38.1090703@xxxxxxx> <Pine.LNX.4.58.0507071142550.4766@xxxxxxxxxxxxxxxxxx> <20050708043740.GB1679@frodo>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/08/2005 06:37 AM, Nathan Scott wrote:
> On Thu, Jul 07, 2005 at 12:43:15PM -0400, Joshua Baker-LePain wrote:
>
>>> As for XFS and a 4K stack, I think it still boils down to a few 
>>> edge cases, I have not seen one in years, I am doing all my
>>> builds via nfs v3 with tcp/ip to an XFS filesystem.
>>...
>>Hrm.  I was easily able to trigger stack overflows on a pretty simple
>>(albeit old) setup -- RHEL4 kernel with XFS turned on, dual PIII 450,
>>384MB RAM, XFS on a single SCSI disk on aic7xxx.
>
> I put in a bit of time awhile back to get the largest of these
> issues sorted out - perhaps (almost certainly) RHEL4 is an older
> 2.6 kernel than the one containing those changes.
>
> As other cases pop up (with a reproducible test case please, and
> no stacking drivers in the way too :), we slowly iron them out..
> its not exactly top of the priority list though.

I'm getting frequent stack overflows on one system, using xfs, lvm2,
sw-raid and libata but I don't know, if they are XFS-related.

I've attached the stack-trace of my last crash, using FC4
kernel-2.6.11-1.1286_FC4. I'd appreciate if someone could take a look at it.

Thanks,
- --leo

do_IRQ: stack overflow: 476
 [<c0105b53>] do_IRQ+0x80/0x82
 [<c0103c0e>] common_interrupt+0x1a/0x20
 [<c015c1d7>] kmem_cache_alloc+0xd/0x49
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c02ba779>] ide_dma_exec_cmd+0x1f/0x23
 [<c02ba79e>] ide_dma_start+0x21/0x2d
 [<c02bc4ed>] __ide_do_rw_disk+0x344/0x501
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c029ab44>] cfq_set_request+0x12c/0x58a
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c029aa18>] cfq_set_request+0x0/0x58a
 [<c028d195>] elv_set_request+0x14/0x23
 [<c028fe20>] get_request+0x1aa/0x5d2
 [<c028cf92>] elv_next_request+0x12/0x157
 [<c0290f8c>] __make_request+0x120/0x662
 [<c0298e5a>] cfq_add_crq_rb+0x86/0x93
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c0299c22>] cfq_get_io_context+0x26/0x681
 [<c0291b8d>] generic_make_request+0x94/0x23a
 [<c03701dd>] schedule+0x31d/0x7b3
 [<c029ab44>] cfq_set_request+0x12c/0x58a
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c0291d79>] submit_bio+0x46/0xcc
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c0181ea4>] bio_add_page+0x29/0x2f
 [<c02edf08>] sync_page_io+0xa9/0xc6
 [<c02ef742>] write_disk_sb+0x6f/0xab
 [<c02ef7a2>] sync_sbs+0x24/0x39
 [<c02ef82f>] md_update_sb+0x78/0xf6
 [<c02f2fdc>] md_write_start+0x75/0x77
 [<f084a293>] make_request+0x157/0x50a [raid1]
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c0291b8d>] generic_make_request+0x94/0x23a
 [<c0181a28>] bio_alloc_bioset+0xf6/0x1a7
 [<c0181d18>] bio_clone+0xa0/0xb1
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<f088652f>] __clone_and_map+0xb3/0x328 [dm_mod]
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c0212f4d>] __delay+0x9/0xa
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<f0886873>] __split_bio+0xcf/0x111 [dm_mod]
 [<f088692e>] dm_request+0x79/0x8e [dm_mod]
 [<c0291b8d>] generic_make_request+0x94/0x23a
 [<c02ba2a7>] ide_build_sglist+0x24/0x9c
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c0291d79>] submit_bio+0x46/0xcc
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c0181ea4>] bio_add_page+0x29/0x2f
 [<f09b42ea>] _pagebuf_ioapply+0x180/0x2ee [xfs]
 [<f09b4488>] pagebuf_iorequest+0x30/0x132 [xfs]
 [<c011be01>] default_wake_function+0x0/0xc
 [<f0993b40>] xlog_bdstrat_cb+0x41/0x45 [xfs]
 [<f099464c>] xlog_sync+0x282/0x622 [xfs]
 [<f09a5d9b>] xfs_trans_log_buf+0x51/0x78 [xfs]
 [<f0997945>] xlog_state_release_iclog+0x13/0x21c [xfs]
 [<f0955bb9>] xfs_alloc_update+0x41/0xe8 [xfs]
 [<f099844b>] xlog_state_sync+0x273/0x754 [xfs]
 [<f096cf1f>] xfs_btree_del_cursor+0x21/0x4d [xfs]
 [<f0952d26>] xfs_alloc_search_busy+0x19b/0x2e2 [xfs]
 [<f09a5d9b>] xfs_trans_log_buf+0x51/0x78 [xfs]
 [<f094febe>] xfs_alloc_ag_vextent+0xcc/0xe5 [xfs]
 [<f0952536>] xfs_alloc_vextent+0x3e9/0x571 [xfs]
 [<f0961757>] xfs_bmap_alloc+0x1154/0x18f7 [xfs]
 [<f095fb3d>] xfs_bmap_add_extent_hole_delay+0x11f/0x4f8 [xfs]
 [<c029ab44>] cfq_set_request+0x12c/0x58a
 [<f096bbc2>] xfs_bmbt_get_state+0x13/0x1c [xfs]
 [<f0965402>] xfs_bmapi+0x6e9/0x1601 [xfs]
 [<f096cbfd>] xfs_btree_check_lblock+0x75/0x1a2 [xfs]
 [<f096d5f9>] xfs_btree_read_bufl+0xac/0xc6 [xfs]
 [<f096bbc2>] xfs_bmbt_get_state+0x13/0x1c [xfs]
 [<f0973c65>] xfs_dir2_grow_inode+0x100/0x42f [xfs]
 [<f0971eb0>] xfs_da_brelse+0xa2/0xad [xfs]
 [<f097b087>] xfs_dir2_node_addname_int+0x525/0x9c3 [xfs]
 [<f097ab0d>] xfs_dir2_node_addname+0x6d/0xc2 [xfs]
 [<f097362c>] xfs_dir2_createname+0xed/0x122 [xfs]
 [<f097353f>] xfs_dir2_createname+0x0/0x122 [xfs]
 [<f09ac564>] xfs_create+0x465/0x6df [xfs]
 [<f09b8299>] linvfs_mknod+0x279/0x45a [xfs]
 [<f0971eb0>] xfs_da_brelse+0xa2/0xad [xfs]
 [<c01f339d>] avc_has_perm_noaudit+0x26/0xd1
 [<c01f3496>] avc_has_perm+0x4e/0x58
 [<c01f3496>] avc_has_perm+0x4e/0x58
 [<c018f819>] vfs_create+0xd9/0x125
 [<c019001c>] open_namei+0x565/0x619
 [<c01f71bb>] selinux_file_permission+0xe0/0x152
 [<c017a6cd>] filp_open+0x27/0x46
 [<c017a925>] get_unused_fd+0x79/0x1d2
 [<c018d327>] getname+0x87/0xc5
 [<c017ad7b>] sys_open+0x31/0x5b
 [<c0103a51>] syscall_call+0x7/0xb
 =======================
Unable to handle kernel paging request at virtual address fffff034
 printing eip:
c0104086
*pde = 00002067
Oops: 0000 [#1]
Modules linked in: r128 drm nfsd lockd sunrpc md5 ipv6 parport_pc lp
parport autofs4 smsc47m1 eeprom adm1025 adm1031 i2c_sensor i2c_isa i2c_i80
1 i2c_core uhci_hcd ohci_hcd ehci_hcd 3c59x mii floppy xfs exportfs
raid5 xor raid1 dm_mod sata_promise libata sd_mod scsi_mod
CPU:    0
EIP:    0060:[<c0104086>]    Not tainted VLI
EFLAGS: 00010002   (2.6.12-1.1390_FC4)
EIP is at show_trace+0x5a/0x78
eax: fffffffd   ebx: ffffffff   ecx: 000055ae   edx: 000055ae
esi: fffff000   edi: 00000000   ebp: 00000220   esp: dbdb01f4
ds: 007b   es: 007b   ss: 0068
Process vm86.c (pid: 1734962273, threadinfo=dbdb0000 task=c0382498)
Stack: c03823ea c0103a51 dbdb0000 dbdb022c 00000000 c010417f dbdb0218
c0105b53
       c03825af 000001dc 00011220 00011220 ef9a2a80 c0103c0e 00011220
ef9a2a80
       00011220 00011220 ef9a2a80 00000220 ef9a2a80 0000007b c049007b
ffffff00
Call Trace:
 [<c0103a51>] syscall_call+0x7/0xb
 [<c010417f>] dump_stack+0x13/0x17
 [<c0105b53>] do_IRQ+0x80/0x82
 [<c0103c0e>] common_interrupt+0x1a/0x20
 [<c015c1d7>] kmem_cache_alloc+0xd/0x49
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c02ba779>] ide_dma_exec_cmd+0x1f/0x23
 [<c02ba79e>] ide_dma_start+0x21/0x2d
 [<c02bc4ed>] __ide_do_rw_disk+0x344/0x501
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c029ab44>] cfq_set_request+0x12c/0x58a
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c029aa18>] cfq_set_request+0x0/0x58a
 [<c028d195>] elv_set_request+0x14/0x23
 [<c028fe20>] get_request+0x1aa/0x5d2
 [<c028cf92>] elv_next_request+0x12/0x157
 [<c0290f8c>] __make_request+0x120/0x662
 [<c0298e5a>] cfq_add_crq_rb+0x86/0x93
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c0299c22>] cfq_get_io_context+0x26/0x681
 [<c0291b8d>] generic_make_request+0x94/0x23a
 [<c03701dd>] schedule+0x31d/0x7b3
 [<c029ab44>] cfq_set_request+0x12c/0x58a
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c0291d79>] submit_bio+0x46/0xcc
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c0181ea4>] bio_add_page+0x29/0x2f
 [<c02edf08>] sync_page_io+0xa9/0xc6
 [<c02ef742>] write_disk_sb+0x6f/0xab
 [<c02ef7a2>] sync_sbs+0x24/0x39
 [<c02ef82f>] md_update_sb+0x78/0xf6
 [<c02f2fdc>] md_write_start+0x75/0x77
 [<f084a293>] make_request+0x157/0x50a [raid1]
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c0291b8d>] generic_make_request+0x94/0x23a
 [<c0181a28>] bio_alloc_bioset+0xf6/0x1a7
 [<c0181d18>] bio_clone+0xa0/0xb1
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<f088652f>] __clone_and_map+0xb3/0x328 [dm_mod]
 [<c0155bd3>] mempool_alloc+0x6a/0x26c
 [<c0212f4d>] __delay+0x9/0xa
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<f0886873>] __split_bio+0xcf/0x111 [dm_mod]
 [<f088692e>] dm_request+0x79/0x8e [dm_mod]
 [<c0291b8d>] generic_make_request+0x94/0x23a
 [<c02ba2a7>] ide_build_sglist+0x24/0x9c
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c0291d79>] submit_bio+0x46/0xcc
 [<c01400c2>] autoremove_wake_function+0x0/0x37
 [<c0181ea4>] bio_add_page+0x29/0x2f
 [<f09b42ea>] _pagebuf_ioapply+0x180/0x2ee [xfs]
 [<f09b4488>] pagebuf_iorequest+0x30/0x132 [xfs]
 [<c011be01>] default_wake_function+0x0/0xc
 [<f0993b40>] xlog_bdstrat_cb+0x41/0x45 [xfs]
 [<f099464c>] xlog_sync+0x282/0x622 [xfs]
 [<f09a5d9b>] xfs_trans_log_buf+0x51/0x78 [xfs]
 [<f0997945>] xlog_state_release_iclog+0x13/0x21c [xfs]
 [<f0955bb9>] xfs_alloc_update+0x41/0xe8 [xfs]
 [<f099844b>] xlog_state_sync+0x273/0x754 [xfs]
 [<f096cf1f>] xfs_btree_del_cursor+0x21/0x4d [xfs]
 [<f0952d26>] xfs_alloc_search_busy+0x19b/0x2e2 [xfs]
 [<f09a5d9b>] xfs_trans_log_buf+0x51/0x78 [xfs]
 [<f094febe>] xfs_alloc_ag_vextent+0xcc/0xe5 [xfs]
 [<f0952536>] xfs_alloc_vextent+0x3e9/0x571 [xfs]
 [<f0961757>] xfs_bmap_alloc+0x1154/0x18f7 [xfs]
 [<f095fb3d>] xfs_bmap_add_extent_hole_delay+0x11f/0x4f8 [xfs]
 [<c029ab44>] cfq_set_request+0x12c/0x58a
 [<f096bbc2>] xfs_bmbt_get_state+0x13/0x1c [xfs]
 [<f0965402>] xfs_bmapi+0x6e9/0x1601 [xfs]
 [<f096cbfd>] xfs_btree_check_lblock+0x75/0x1a2 [xfs]
 [<f096d5f9>] xfs_btree_read_bufl+0xac/0xc6 [xfs]
 [<f096bbc2>] xfs_bmbt_get_state+0x13/0x1c [xfs]
 [<f0973c65>] xfs_dir2_grow_inode+0x100/0x42f [xfs]
 [<f0971eb0>] xfs_da_brelse+0xa2/0xad [xfs]
 [<f097b087>] xfs_dir2_node_addname_int+0x525/0x9c3 [xfs]
 [<f097ab0d>] xfs_dir2_node_addname+0x6d/0xc2 [xfs]
 [<f097362c>] xfs_dir2_createname+0xed/0x122 [xfs]
 [<f097353f>] xfs_dir2_createname+0x0/0x122 [xfs]
 [<f09ac564>] xfs_create+0x465/0x6df [xfs]
 [<f09b8299>] linvfs_mknod+0x279/0x45a [xfs]
 [<f0971eb0>] xfs_da_brelse+0xa2/0xad [xfs]
 [<c01f339d>] avc_has_perm_noaudit+0x26/0xd1
 [<c01f3496>] avc_has_perm+0x4e/0x58
 [<c01f3496>] avc_has_perm+0x4e/0x58
 [<c018f819>] vfs_create+0xd9/0x125
 [<c019001c>] open_namei+0x565/0x619
 [<c01f71bb>] selinux_file_permission+0xe0/0x152
 [<c017a6cd>] filp_open+0x27/0x46
 [<c017a925>] get_unused_fd+0x79/0x1d2
 [<c018d327>] getname+0x87/0xc5
 [<c017ad7b>] sys_open+0x31/0x5b
 [<c0103a51>] syscall_call+0x7/0xb
 =======================

- --
- -----------------------------------------------------------------------
Alexander.Bergolth@xxxxxxxxxxxxx                Fax: +43-1-31336-906050
Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFC0/RLsYaksEkoAQMRAgysAJ9zxLcK9ISPq3bd1Fre9D8VqejK9QCeNsyT
ko/q/+s93VWv1rkm1kVOa/A=
=yp8b
-----END PGP SIGNATURE-----


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