From: Roman Mamedov <rm@romanrm.ru>
To: <linux-btrfs@vger.kernel.org>
Subject: Still getting a lot of -28 (ENOSPC?) errors during balance
Date: Tue, 2 Apr 2013 14:04:52 +0600 [thread overview]
Message-ID: <20130402140452.2b71794f@natsu> (raw)
[-- Attachment #1: Type: text/plain, Size: 6914 bytes --]
Hello,
With kernel 3.7.10 patched with "Btrfs: limit the global reserve to 512mb".
(the problem was occuring also without this patch, but seemed to be even worse).
At the start of balance:
Data: total=31.85GB, used=9.96GB
System: total=4.00MB, used=16.00KB
Metadata: total=1.01GB, used=696.17MB
"btrfs balance start -musage=5 -dusage=5" is going on for about 50 minutes
Current situation:
Balance on '/mnt/r1/' is running
1 out of about 2 chunks balanced (20 considered), 50% left
Data: total=30.85GB, used=10.04GB
System: total=4.00MB, used=16.00KB
Metadata: total=1.01GB, used=851.69MB
And a constant stream of these in dmesg:
[ 7614.756339] btrfs: block rsv returned -28
[ 7614.756341] ------------[ cut here ]------------
[ 7614.756370] WARNING: at fs/btrfs/extent-tree.c:6297 btrfs_alloc_free_block+0x351/0x360 [btrfs]()
[ 7614.756372] Hardware name: GA-880GM-UD2H
[ 7614.756374] Modules linked in: nfsd auth_rpcgss nfs_acl nfs lockd fscache sunrpc bridge 8021q garp stp llc aoe it87 hwmon_vid snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcsp snd_pcm kvm_amd kvm snd_page_alloc snd_timer snd soundcore sp5100_tco serio_raw joydev k10temp edac_core i2c_piix4 edac_mce_amd mac_hid shpchp wmi btrfs libcrc32c zlib_deflate raid1 raid456 async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq nbd sata_nv hid_generic usbhid usb_storage hid microcode r8169 sata_mv
[ 7614.756411] Pid: 4708, comm: btrfs Tainted: G W 3.7.10-rm3+ #38
[ 7614.756413] Call Trace:
[ 7614.756421] [<ffffffff8105516f>] warn_slowpath_common+0x7f/0xc0
[ 7614.756425] [<ffffffff810551ca>] warn_slowpath_null+0x1a/0x20
[ 7614.756440] [<ffffffffa00f71c1>] btrfs_alloc_free_block+0x351/0x360 [btrfs]
[ 7614.756453] [<ffffffffa00e3d03>] ? __btrfs_cow_block+0x323/0x4f0 [btrfs]
[ 7614.756472] [<ffffffffa01263ab>] ? read_extent_buffer+0xbb/0x110 [btrfs]
[ 7614.756485] [<ffffffffa00e3b06>] __btrfs_cow_block+0x126/0x4f0 [btrfs]
[ 7614.756498] [<ffffffffa00e4047>] btrfs_cow_block+0xf7/0x200 [btrfs]
[ 7614.756515] [<ffffffffa014abb7>] do_relocation+0x467/0x530 [btrfs]
[ 7614.756528] [<ffffffffa00ecdfa>] ? block_rsv_add_bytes+0x5a/0x80 [btrfs]
[ 7614.756545] [<ffffffffa014e8dd>] relocate_tree_blocks+0x61d/0x650 [btrfs]
[ 7614.756562] [<ffffffffa014f8d6>] relocate_block_group+0x446/0x6a0 [btrfs]
[ 7614.756579] [<ffffffffa014fccd>] btrfs_relocate_block_group+0x19d/0x2d0 [btrfs]
[ 7614.756596] [<ffffffffa0128685>] btrfs_relocate_chunk.isra.53+0x75/0x770 [btrfs]
[ 7614.756613] [<ffffffffa0138668>] ? btrfs_set_lock_blocking_rw+0xa8/0xf0 [btrfs]
[ 7614.756630] [<ffffffffa011ffa1>] ? release_extent_buffer.isra.26+0x81/0xf0 [btrfs]
[ 7614.756647] [<ffffffffa0125227>] ? free_extent_buffer+0x37/0x90 [btrfs]
[ 7614.756663] [<ffffffffa012cdc7>] btrfs_balance+0x877/0xe00 [btrfs]
[ 7614.756680] [<ffffffffa0132f9c>] btrfs_ioctl_balance+0x10c/0x430 [btrfs]
[ 7614.756684] [<ffffffff8167e38e>] ? _raw_spin_lock+0xe/0x20
[ 7614.756702] [<ffffffffa013739b>] btrfs_ioctl+0xf2b/0x1970 [btrfs]
[ 7614.756707] [<ffffffff8114f7f9>] ? handle_mm_fault+0x249/0x310
[ 7614.756711] [<ffffffff816822d4>] ? __do_page_fault+0x254/0x4e0
[ 7614.756714] [<ffffffff811527d0>] ? __vma_link_rb+0x30/0x40
[ 7614.756718] [<ffffffff8118f9b0>] do_vfs_ioctl+0x90/0x570
[ 7614.756723] [<ffffffff8108793a>] ? finish_task_switch+0x4a/0xe0
[ 7614.756726] [<ffffffff8118ff21>] sys_ioctl+0x91/0xb0
[ 7614.756730] [<ffffffff81686b1d>] system_call_fastpath+0x1a/0x1f
[ 7614.756732] ---[ end trace 9fdf5720be6ec4cb ]---
[ 7614.756894] btrfs: block rsv returned -28
[ 7614.756895] ------------[ cut here ]------------
[ 7614.756910] WARNING: at fs/btrfs/extent-tree.c:6297 btrfs_alloc_free_block+0x351/0x360 [btrfs]()
[ 7614.756911] Hardware name: GA-880GM-UD2H
[ 7614.756912] Modules linked in: nfsd auth_rpcgss nfs_acl nfs lockd fscache sunrpc bridge 8021q garp stp llc aoe it87 hwmon_vid snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcsp snd_pcm kvm_amd kvm snd_page_alloc snd_timer snd soundcore sp5100_tco serio_raw joydev k10temp edac_core i2c_piix4 edac_mce_amd mac_hid shpchp wmi btrfs libcrc32c zlib_deflate raid1 raid456 async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq nbd sata_nv hid_generic usbhid usb_storage hid microcode r8169 sata_mv
[ 7614.756945] Pid: 4708, comm: btrfs Tainted: G W 3.7.10-rm3+ #38
[ 7614.756946] Call Trace:
[ 7614.756950] [<ffffffff8105516f>] warn_slowpath_common+0x7f/0xc0
[ 7614.756953] [<ffffffff810551ca>] warn_slowpath_null+0x1a/0x20
[ 7614.756967] [<ffffffffa00f71c1>] btrfs_alloc_free_block+0x351/0x360 [btrfs]
[ 7614.756983] [<ffffffffa0147ad7>] ? add_delayed_tree_ref+0xd7/0x190 [btrfs]
[ 7614.757000] [<ffffffffa014769e>] ? add_delayed_ref_head.isra.7+0xce/0x160 [btrfs]
[ 7614.757017] [<ffffffffa01482a5>] ? btrfs_add_delayed_tree_ref+0x115/0x1a0 [btrfs]
[ 7614.757030] [<ffffffffa00e3b06>] __btrfs_cow_block+0x126/0x4f0 [btrfs]
[ 7614.757034] [<ffffffff8112feba>] ? set_page_dirty+0x5a/0x70
[ 7614.757047] [<ffffffffa00e4047>] btrfs_cow_block+0xf7/0x200 [btrfs]
[ 7614.757060] [<ffffffffa00e8367>] btrfs_search_slot+0x3d7/0x8d0 [btrfs]
[ 7614.757075] [<ffffffffa0107f64>] ? btrfs_record_root_in_trans+0x64/0x80 [btrfs]
[ 7614.757092] [<ffffffffa014ab2e>] do_relocation+0x3de/0x530 [btrfs]
[ 7614.757105] [<ffffffffa00ecdfa>] ? block_rsv_add_bytes+0x5a/0x80 [btrfs]
[ 7614.757122] [<ffffffffa014e8dd>] relocate_tree_blocks+0x61d/0x650 [btrfs]
[ 7614.757139] [<ffffffffa014f8d6>] relocate_block_group+0x446/0x6a0 [btrfs]
[ 7614.757155] [<ffffffffa014fccd>] btrfs_relocate_block_group+0x19d/0x2d0 [btrfs]
[ 7614.757172] [<ffffffffa0128685>] btrfs_relocate_chunk.isra.53+0x75/0x770 [btrfs]
[ 7614.757189] [<ffffffffa0138668>] ? btrfs_set_lock_blocking_rw+0xa8/0xf0 [btrfs]
[ 7614.757206] [<ffffffffa011ffa1>] ? release_extent_buffer.isra.26+0x81/0xf0 [btrfs]
[ 7614.757222] [<ffffffffa0125227>] ? free_extent_buffer+0x37/0x90 [btrfs]
[ 7614.757239] [<ffffffffa012cdc7>] btrfs_balance+0x877/0xe00 [btrfs]
[ 7614.757256] [<ffffffffa0132f9c>] btrfs_ioctl_balance+0x10c/0x430 [btrfs]
[ 7614.757260] [<ffffffff8167e38e>] ? _raw_spin_lock+0xe/0x20
[ 7614.757276] [<ffffffffa013739b>] btrfs_ioctl+0xf2b/0x1970 [btrfs]
[ 7614.757280] [<ffffffff8114f7f9>] ? handle_mm_fault+0x249/0x310
[ 7614.757283] [<ffffffff816822d4>] ? __do_page_fault+0x254/0x4e0
[ 7614.757287] [<ffffffff811527d0>] ? __vma_link_rb+0x30/0x40
[ 7614.757290] [<ffffffff8118f9b0>] do_vfs_ioctl+0x90/0x570
[ 7614.757294] [<ffffffff8108793a>] ? finish_task_switch+0x4a/0xe0
[ 7614.757297] [<ffffffff8118ff21>] sys_ioctl+0x91/0xb0
[ 7614.757300] [<ffffffff81686b1d>] system_call_fastpath+0x1a/0x1f
[ 7614.757302] ---[ end trace 9fdf5720be6ec4cc ]---
--
With respect,
Roman
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next reply other threads:[~2013-04-02 8:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 8:04 Roman Mamedov [this message]
2013-04-02 9:37 ` Still getting a lot of -28 (ENOSPC?) errors during balance Roman Mamedov
2013-04-02 13:46 ` Josef Bacik
2013-04-02 16:55 ` Roman Mamedov
2013-04-02 17:00 ` Josef Bacik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130402140452.2b71794f@natsu \
--to=rm@romanrm.ru \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.