Linux-BTRFS Archive on lore.kernel.org
 help / color / Atom feed
* kernel calltraces with btrfs and bonnie++
@ 2019-01-25  7:39 Stefan K
  2019-01-25  7:41 ` Qu Wenruo
       [not found] ` <14209521.serUsG5bZP@t460-skr>
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan K @ 2019-01-25  7:39 UTC (permalink / raw)
  To: linux-btrfs

Hello,

if I run 'bonnie++ -c4' the system is unusable and hangs, I got also some CallTraces in my syslog. Is that a normal behavior? 

My system is:
uname -a 
Linux tani 4.19.0-0.bpo.1-amd64 #1 SMP Debian 4.19.12-1~bpo9+1 (2018-12-30) x86_64 GNU/Linux

btrfs fi sh
Label: none  uuid: 24be286b-ece6-4481-aa48-af255e96e5bd
        Total devices 2 FS bytes used 128.89GiB
        devid    1 size 219.84GiB used 131.03GiB path /dev/sdb2
        devid    2 size 219.84GiB used 131.03GiB path /dev/sde2

both are new SSDs:
smartctl -i /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.19.0-0.bpo.1-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG MZ7LM240HMHQ-00005
Serial Number:    S2TWNX0KA02412
LU WWN Device Id: 5 002538 c40b988bf
Firmware Version: GXT5404Q
User Capacity:    240,057,409,536 bytes [240 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Jan 25 08:37:49 2019 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled


if I run this I got this output in my /var/log/syslog:

Jan 25 08:19:20 tani kernel: [  480.733545] WARNING: CPU: 8 PID: 8564 at /build/linux-Ut6wTa/linux-4.19.12/fs/btrfs/ctree.h:1588 btrfs_update_device+0x1b2/0x1c0 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733546] Modules linked in: intel_rapl skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel intel_cstate intel_uncore intel_rapl_perf pcspkr dm_service_time zfs(POE) zunicode(POE) zavl(POE) 
icp(POE) zcommon(POE) znvpair(POE) spl(OE) ast ttm drm_kms_helper drm mei_me ipmi_si ioatdma ipmi_devintf iTCO_wdt sg joydev i2c_algo_bit evdev iTCO_vendor_support lpc_ich mei dca wmi ipmi_msghandler acpi_power_meter acpi_pad pcc_cpufreq button dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua ip_tables x_ta
bles autofs4 btrfs xor zstd_decompress zstd_compress xxhash raid6_pq libcrc32c crc32c_generic ses enclosure sd_mod hid_generic usbhid hid crc32c_intel ahci mpt3sas libahci aesni_intel xhci_pci aes_x86_64 libata
Jan 25 08:19:20 tani kernel: [  480.733582]  raid_class crypto_simd xhci_hcd scsi_transport_sas cryptd glue_helper i40e scsi_mod usbcore i2c_i801 usb_common
Jan 25 08:19:20 tani kernel: [  480.733591] CPU: 8 PID: 8564 Comm: bonnie++ Tainted: P           OE     4.19.0-0.bpo.1-amd64 #1 Debian 4.19.12-1~bpo9+1
Jan 25 08:19:20 tani kernel: [  480.733591] Hardware name: Supermicro Super Server/X11DPH-i, BIOS 2.1 06/15/2018
Jan 25 08:19:20 tani kernel: [  480.733605] RIP: 0010:btrfs_update_device+0x1b2/0x1c0 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733606] Code: 89 f7 45 31 c0 ba 10 00 00 00 4c 89 ee e8 e6 27 ff ff 4c 89 f7 e8 fe f7 fc ff e9 de fe ff ff 41 bc f4 ff ff ff e9 db fe ff ff <0f> 0b eb b7 e8 25 d5 89 e7 0f 1f 44 00 00 0f 1f 44 00 00 41 55 41
Jan 25 08:19:20 tani kernel: [  480.733607] RSP: 0018:ffffb6be475bfab0 EFLAGS: 00010206
Jan 25 08:19:20 tani kernel: [  480.733608] RAX: 0000000000000fff RBX: ffff96b769786bd0 RCX: 00000036f60ffc00
Jan 25 08:19:20 tani kernel: [  480.733609] RDX: 0000000000001000 RSI: 0000000000003f5c RDI: ffff96b6d6b76f50
Jan 25 08:19:20 tani kernel: [  480.733609] RBP: ffff96b729a2f000 R08: ffffb6be475bfa60 R09: ffffb6be475bfa68
Jan 25 08:19:20 tani kernel: [  480.733610] R10: 0000000000000003 R11: 0000000000003000 R12: 0000000000000000
Jan 25 08:19:20 tani kernel: [  480.733611] R13: 0000000000003f3c R14: ffff96b6d6b76f50 R15: 00000000fffffff4
Jan 25 08:19:20 tani kernel: [  480.733612] FS:  00007f3451aeb740(0000) GS:ffff96b77fc00000(0000) knlGS:0000000000000000
Jan 25 08:19:20 tani kernel: [  480.733613] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 25 08:19:20 tani kernel: [  480.733614] CR2: 0000565195079000 CR3: 0000003f25eec001 CR4: 00000000007606e0
Jan 25 08:19:20 tani kernel: [  480.733615] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jan 25 08:19:20 tani kernel: [  480.733616] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Jan 25 08:19:20 tani kernel: [  480.733616] PKRU: 55555554
Jan 25 08:19:20 tani kernel: [  480.733617] Call Trace:
Jan 25 08:19:20 tani kernel: [  480.733632]  btrfs_finish_chunk_alloc+0x12d/0x4b0 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733643]  ? btrfs_create_pending_block_groups+0xec/0x240 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733652]  btrfs_create_pending_block_groups+0xec/0x240 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733664]  __btrfs_end_transaction+0x87/0x2c0 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733673]  btrfs_alloc_data_chunk_ondemand+0xf8/0x300 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733682]  btrfs_check_data_free_space+0x53/0xa0 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733694]  btrfs_buffered_write.isra.23+0x1a9/0x790 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733697]  ? current_time+0x4d/0x90
Jan 25 08:19:20 tani kernel: [  480.733708]  btrfs_file_write_iter+0x383/0x530 [btrfs]
Jan 25 08:19:20 tani kernel: [  480.733711]  new_sync_write+0xfd/0x160
Jan 25 08:19:20 tani kernel: [  480.733714]  vfs_write+0xb0/0x190
Jan 25 08:19:20 tani kernel: [  480.733716]  ksys_write+0x52/0xc0
Jan 25 08:19:20 tani kernel: [  480.733719]  do_syscall_64+0x55/0x110
Jan 25 08:19:20 tani kernel: [  480.733722]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jan 25 08:19:20 tani kernel: [  480.733723] RIP: 0033:0x7f34516ca190
Jan 25 08:19:20 tani kernel: [  480.733725] Code: 2e 0f 1f 84 00 00 00 00 00 90 48 8b 05 39 7e 20 00 c3 0f 1f 84 00 00 00 00 00 83 3d 39 c2 20 00 00 75 10 b8 01 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ae fc ff ff 48 89 04 24
Jan 25 08:19:20 tani kernel: [  480.733726] RSP: 002b:00007ffea85dff38 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
Jan 25 08:19:20 tani kernel: [  480.733727] RAX: ffffffffffffffda RBX: 00007ffea85dff80 RCX: 00007f34516ca190
Jan 25 08:19:20 tani kernel: [  480.733728] RDX: 0000000000002000 RSI: 0000565195078000 RDI: 0000000000000003
Jan 25 08:19:20 tani kernel: [  480.733728] RBP: 0000000000006414 R08: 00007f3450e19700 R09: 00007f3450e18520
Jan 25 08:19:20 tani kernel: [  480.733729] R10: 00007ffea85dff20 R11: 0000000000000246 R12: 0000000000000415
Jan 25 08:19:20 tani kernel: [  480.733730] R13: 00007ffea85dff80 R14: 00007ffea85dff60 R15: 0000565195078000
Jan 25 08:19:20 tani kernel: [  480.733731] ---[ end trace c733fae4edf212cd ]---
Jan 25 08:19:20 tani dhclient[3708]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 7
Jan 25 08:19:21 tani kernel: [  481.082338] WARNING: CPU: 8 PID: 8564 at /build/linux-Ut6wTa/linux-4.19.12/fs/btrfs/ctree.h:1588 btrfs_update_device+0x1b2/0x1c0 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082339] Modules linked in: intel_rapl skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel intel_cstate intel_uncore intel_rapl_perf pcspkr dm_service_time zfs(POE) zunicode(POE) zavl(POE) icp(POE) zcommon(POE) znvpair(POE) spl(OE) ast ttm drm_kms_helper drm mei_me ipmi_si ioatdma ipmi_devintf iTCO_wdt sg joydev i2c_algo_bit evdev iTCO_vendor_support lpc_ich mei dca wmi ipmi_msghandler acpi_power_meter acpi_pad pcc_cpufreq button dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua ip_tables x_tables autofs4 btrfs xor zstd_decompress zstd_compress xxhash raid6_pq libcrc32c crc32c_generic ses enclosure sd_mod hid_generic usbhid hid crc32c_intel ahci mpt3sas libahci aesni_intel xhci_pci aes_x86_64 libata
Jan 25 08:19:21 tani kernel: [  481.082372]  raid_class crypto_simd xhci_hcd scsi_transport_sas cryptd glue_helper i40e scsi_mod usbcore i2c_i801 usb_common
Jan 25 08:19:21 tani kernel: [  481.082378] CPU: 8 PID: 8564 Comm: bonnie++ Tainted: P        W  OE     4.19.0-0.bpo.1-amd64 #1 Debian 4.19.12-1~bpo9+1
Jan 25 08:19:21 tani kernel: [  481.082379] Hardware name: Supermicro Super Server/X11DPH-i, BIOS 2.1 06/15/2018
Jan 25 08:19:21 tani kernel: [  481.082390] RIP: 0010:btrfs_update_device+0x1b2/0x1c0 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082392] Code: 89 f7 45 31 c0 ba 10 00 00 00 4c 89 ee e8 e6 27 ff ff 4c 89 f7 e8 fe f7 fc ff e9 de fe ff ff 41 bc f4 ff ff ff e9 db fe ff ff <0f> 0b eb b7 e8 25 d5 89 e7 0f 1f 44 00 00 0f 1f 44 00 00 41 55 41
Jan 25 08:19:21 tani kernel: [  481.082392] RSP: 0018:ffffb6be475bfab0 EFLAGS: 00010206
Jan 25 08:19:21 tani kernel: [  481.082394] RAX: 0000000000000fff RBX: ffff96b769786bd0 RCX: 00000036f60ffc00
Jan 25 08:19:21 tani kernel: [  481.082394] RDX: 0000000000001000 RSI: 0000000000003f5c RDI: ffff96b6d6b76f50
Jan 25 08:19:21 tani kernel: [  481.082395] RBP: ffff96b729a2f000 R08: ffffb6be475bfa60 R09: ffffb6be475bfa68
Jan 25 08:19:21 tani kernel: [  481.082396] R10: 0000000000000003 R11: 0000000000003000 R12: 0000000000000000
Jan 25 08:19:21 tani kernel: [  481.082396] R13: 0000000000003f3c R14: ffff96b6d6b76f50 R15: 00000000fffffff4
Jan 25 08:19:21 tani kernel: [  481.082397] FS:  00007f3451aeb740(0000) GS:ffff96b77fc00000(0000) knlGS:0000000000000000
Jan 25 08:19:21 tani kernel: [  481.082398] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 25 08:19:21 tani kernel: [  481.082399] CR2: 0000565195079000 CR3: 0000003f25eec001 CR4: 00000000007606e0
Jan 25 08:19:21 tani kernel: [  481.082400] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jan 25 08:19:21 tani kernel: [  481.082401] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Jan 25 08:19:21 tani kernel: [  481.082401] PKRU: 55555554
Jan 25 08:19:21 tani kernel: [  481.082401] Call Trace:
Jan 25 08:19:21 tani kernel: [  481.082416]  btrfs_finish_chunk_alloc+0x12d/0x4b0 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082426]  ? btrfs_create_pending_block_groups+0xec/0x240 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082435]  btrfs_create_pending_block_groups+0xec/0x240 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082446]  __btrfs_end_transaction+0x87/0x2c0 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082455]  btrfs_alloc_data_chunk_ondemand+0xf8/0x300 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082463]  btrfs_check_data_free_space+0x53/0xa0 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082473]  btrfs_buffered_write.isra.23+0x1a9/0x790 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082476]  ? current_time+0x4d/0x90
Jan 25 08:19:21 tani kernel: [  481.082486]  btrfs_file_write_iter+0x383/0x530 [btrfs]
Jan 25 08:19:21 tani kernel: [  481.082490]  new_sync_write+0xfd/0x160
Jan 25 08:19:21 tani kernel: [  481.082492]  vfs_write+0xb0/0x190
Jan 25 08:19:21 tani kernel: [  481.082494]  ksys_write+0x52/0xc0
Jan 25 08:19:21 tani kernel: [  481.082496]  do_syscall_64+0x55/0x110
Jan 25 08:19:21 tani kernel: [  481.082499]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jan 25 08:19:21 tani kernel: [  481.082501] RIP: 0033:0x7f34516ca190
Jan 25 08:19:21 tani kernel: [  481.082502] Code: 2e 0f 1f 84 00 00 00 00 00 90 48 8b 05 39 7e 20 00 c3 0f 1f 84 00 00 00 00 00 83 3d 39 c2 20 00 00 75 10 b8 01 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ae fc ff ff 48 89 04 24
Jan 25 08:19:21 tani kernel: [  481.082502] RSP: 002b:00007ffea85dff38 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
Jan 25 08:19:21 tani kernel: [  481.082504] RAX: ffffffffffffffda RBX: 00007ffea85dff80 RCX: 00007f34516ca190
Jan 25 08:19:21 tani kernel: [  481.082504] RDX: 0000000000002000 RSI: 0000565195078000 RDI: 0000000000000003
Jan 25 08:19:21 tani kernel: [  481.082505] RBP: 0000000000026411 R08: 00007f3450e19700 R09: 00007f3450e18520
Jan 25 08:19:21 tani kernel: [  481.082505] R10: 00007ffea85dff20 R11: 0000000000000246 R12: 0000000000000412
Jan 25 08:19:21 tani kernel: [  481.082506] R13: 00007ffea85dff80 R14: 00007ffea85dff60 R15: 0000565195078000
Jan 25 08:19:21 tani kernel: [  481.082507] ---[ end trace c733fae4edf212ce ]---


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel calltraces with btrfs and bonnie++
  2019-01-25  7:39 kernel calltraces with btrfs and bonnie++ Stefan K
@ 2019-01-25  7:41 ` Qu Wenruo
       [not found] ` <14209521.serUsG5bZP@t460-skr>
  1 sibling, 0 replies; 3+ messages in thread
From: Qu Wenruo @ 2019-01-25  7:41 UTC (permalink / raw)
  To: Stefan K, linux-btrfs

[-- Attachment #1.1: Type: text/plain, Size: 1995 bytes --]



On 2019/1/25 下午3:39, Stefan K wrote:
> Hello,
> 
> if I run 'bonnie++ -c4' the system is unusable and hangs, I got also some CallTraces in my syslog. Is that a normal behavior? 
> 
> My system is:
> uname -a 
> Linux tani 4.19.0-0.bpo.1-amd64 #1 SMP Debian 4.19.12-1~bpo9+1 (2018-12-30) x86_64 GNU/Linux
> 
> btrfs fi sh
> Label: none  uuid: 24be286b-ece6-4481-aa48-af255e96e5bd
>         Total devices 2 FS bytes used 128.89GiB
>         devid    1 size 219.84GiB used 131.03GiB path /dev/sdb2
>         devid    2 size 219.84GiB used 131.03GiB path /dev/sde2
> 
> both are new SSDs:
> smartctl -i /dev/sdb
> smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.19.0-0.bpo.1-amd64] (local build)
> Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
> 
> === START OF INFORMATION SECTION ===
> Device Model:     SAMSUNG MZ7LM240HMHQ-00005
> Serial Number:    S2TWNX0KA02412
> LU WWN Device Id: 5 002538 c40b988bf
> Firmware Version: GXT5404Q
> User Capacity:    240,057,409,536 bytes [240 GB]
> Sector Size:      512 bytes logical/physical
> Rotation Rate:    Solid State Device
> Form Factor:      2.5 inches
> Device is:        Not in smartctl database [for details use: -P showall]
> ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4c
> SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
> Local Time is:    Fri Jan 25 08:37:49 2019 CET
> SMART support is: Available - device has SMART capability.
> SMART support is: Enabled
> 
> 
> if I run this I got this output in my /var/log/syslog:
> 
> Jan 25 08:19:20 tani kernel: [  480.733545] WARNING: CPU: 8 PID: 8564 at /build/linux-Ut6wTa/linux-4.19.12/fs/btrfs/ctree.h:1588 btrfs_update_device+0x1b2/0x1c0 [btrfs]

This is a known bug for older created btrfs with unaligned device size.

You could resize the fs by -4K and it should make the warning disappear.

Or you can use offline tool, "btrfs rescue fix-device-size" to fix it
offline.

Thanks,
Qu


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel calltraces with btrfs and bonnie++
       [not found]   ` <f3c5d32f-1af5-a73d-0980-b4464fe3cdfe@gmx.com>
@ 2019-01-25  8:19     ` Stefan K
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan K @ 2019-01-25  8:19 UTC (permalink / raw)
  To: linux-btrfs

so a simple
btrfs fi resize -4k /
do that trick?



On Friday, January 25, 2019 3:51:12 PM CET Qu Wenruo wrote:
> 
> On 2019/1/25 下午3:44, Stefan K wrote:
> > since it is my /-root FS its not possible to do that online?
> > 
> > 
> 
> 
> >> You could resize the fs by -4K and it should make the warning disappear.
> And since you have 2 devices, you need to resize each partition by -4K.
> 
> Thanks,
> Qu
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-25  7:39 kernel calltraces with btrfs and bonnie++ Stefan K
2019-01-25  7:41 ` Qu Wenruo
     [not found] ` <14209521.serUsG5bZP@t460-skr>
     [not found]   ` <f3c5d32f-1af5-a73d-0980-b4464fe3cdfe@gmx.com>
2019-01-25  8:19     ` Stefan K

Linux-BTRFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-btrfs/0 linux-btrfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-btrfs linux-btrfs/ https://lore.kernel.org/linux-btrfs \
		linux-btrfs@vger.kernel.org linux-btrfs@archiver.kernel.org
	public-inbox-index linux-btrfs


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-btrfs


AGPL code for this site: git clone https://public-inbox.org/ public-inbox