On Mon, Oct 26, 2015 at 09:14:00AM +, Duncan wrote:
> Dmitry Katsubo posted on Sun, 18 Oct 2015 11:44:08 +0200 as excerpted:
>
> >> Meanwhile, the present btrfs raid1 read-scheduler is both pretty simple
> >> to code up and pretty simple to arrange tests for that run either one
> >> side or
Thanks Jeff for the comments.
On 10/23/2015 11:24 PM, Jeff Mahoney wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10/21/15 4:45 AM, Anand Jain wrote:
mkfs from latest btrfs-progs will enable latest default features,
and if the kernel is down-rev and does not support a latest
default
On Mon, Oct 26, 2015 at 9:22 AM, Liu Bo wrote:
> On 10/25/2015 06:04 PM, fdman...@kernel.org wrote:
>>
>> From: Filipe Manana
>>
>> In the kernel 4.2 merge window we had a refactoring/rework of the delayed
>> references implementation in order to fix
Hi, Filipe Manana
> -Original Message-
> From: Filipe Manana [mailto:fdman...@gmail.com]
> Sent: Friday, October 23, 2015 11:17 PM
> To: Jeff Mahoney
> Cc: Zhao Lei ; linux-btrfs@vger.kernel.org
> Subject: Re: [PATCH] btrfs: Remove code for no-cow
From: Jiri Kosina
cleaner_kthread() kthread calls try_to_freeze() at the beginning of every
cleanup attempt. This operation can't ever succeed though, as the kthread
hasn't marked itself as freezable.
Before (hopefully eventually) kthread freezing gets converted to fileystem
On Mon, Oct 26, 2015 at 1:19 AM, Qu Wenruo wrote:
> Ancient qgroup code call memcpy() on a extent buffer and use it for leaf
> iteration.
>
> As extent buffer contains lock, pointers to pages, it's never sane to do
> such copy.
>
> The following bug may be caused by this
Hi, Jeff Mahoney
Thanks for review!
> -Original Message-
> From: Jeff Mahoney [mailto:je...@suse.com]
> Sent: Friday, October 23, 2015 11:11 PM
> To: Zhao Lei ; linux-btrfs@vger.kernel.org
> Subject: Re: [PATCH] btrfs: Remove code for no-cow in scrub/replace
>
>
This patch add all missing close_ctree and btrfs_close_all_devices
to several tools in btrfs progs, to avoid memory leak.
Changelog v1->v2:
Move btrfs_close_all_devices() from cmd-XXX into btrfs.c to make
code simple, and avoid similar problem in cmd-XXX in future.
Zhao Lei (5):
btrfs-progs:
Adding a btrfs_close_all_devices() after command callback in btrfs.c
can force-close all opened device before program exit, to avoid memory leak
in all btrfs sub-command.
Suggested-by: David Sterba
Signed-off-by: Zhao Lei
---
btrfs.c | 9 -
1
Line of
#include "math.h"
in extent-tree.c using quotas is history reason,
(we have cuseom math.h in source before)
Now it is better to use "<>" instead of quotas for this header file.
Signed-off-by: Zhao Lei
---
extent-tree.c | 2 +-
1 file changed, 1 insertion(+), 1
Add missing close_ctree() to btrfs-select-super.c to avoid memory leak.
Signed-off-by: Zhao Lei
---
btrfs-select-super.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/btrfs-select-super.c b/btrfs-select-super.c
index bd44978..df74153 100644
---
Since we have btrfs_close_all_devices() in btrfs's main entrance,
it is not necessary to call btrfs_close_all_devices() separately
in each sub-command.
Signed-off-by: Zhao Lei
---
cmds-check.c | 1 -
cmds-device.c | 3 ---
cmds-replace.c | 2 --
3 files changed, 6
This patch add all missing btrfs_close_all_devices() to standalone
tools in btrfs progs, to avoid memory leak.
Signed-off-by: Zhao Lei
---
btrfs-calc-size.c| 1 +
btrfs-debug-tree.c | 5 -
btrfs-find-root.c| 1 +
btrfs-map-logical.c | 1 +
On 10/25/2015 06:04 PM, fdman...@kernel.org wrote:
From: Filipe Manana
In the kernel 4.2 merge window we had a refactoring/rework of the delayed
references implementation in order to fix certain problems with qgroups.
However that rework introduced one more regression that
From: Filipe Manana
Hi Chris,
please consider the following fixes for the 4.4 merge window (they were
previously sent to the mailing list already). They fix an issue with
delayed references that makes us hit some BUG_ONs as of the 4.2 kernel
release.
A lot of people have
Hi,
I have this error for a time, It's not easy to reproduce, i write
everything i know at the moment.
I maintain some servers running xen (4.5.1) and gentoo dom0 with recent
kernels (3.18.*, 4.1.6, 4.2.3, 4.2.4). I use gentoo-sources patchset.
Running xen domu s, for www and mysql.
I have
No_quota parameter for delayed_ref related function are meaningless
after 4.2-rc1, as any new delayed_ref_head will cause qgroup to scan
extent for its rfer/excl change without checking no_quota flag.
So this patch will clean them up.
Signed-off-by: Qu Wenruo
---
Between btrfs_allocerved_file_extent() and
btrfs_add_delayed_qgroup_reserve(), there is a window that delayed_refs
are run and delayed ref head maybe freed before
btrfs_add_delayed_qgroup_reserve().
This will cause btrfs_dad_delayed_qgroup_reserve() to return -ENOENT,
and cause transaction to be
This patchset fixes 2 bugs:
1. Race condition leading to abort transaction
Reported by Filipe, fixed by 2nd patch.
2. Qgroup low level double free leading to EDQUOT
In fact, I hit such bug several times during internal rebase, but I'm so
stupid to forgot to include it in v3 patchset.
Fixed in 3rd
When rebasing my patchset, I forgot to pick up a cleanup patch to remove
old hotfix in 4.2 release.
Witouth the cleanup, it will screw up new qgroup reserve framework and
always cause minus reserved number.
Signed-off-by: Qu Wenruo
---
fs/btrfs/qgroup.c | 4
1
wrote on 2015/10/25 18:51 +:
From: Filipe Manana
In the kernel 4.2 merge window we had a big changes to the implementation
of delayed references and qgroups which made the no_quota field of delayed
references not used anymore. More specifically the no_quota field is
Lukas Pirl posted on Mon, 26 Oct 2015 19:19:50 +1300 as excerpted:
> TL;DR: RAID1 does not recover, I guess the interesting part in the stack
> trace is: [elided, I'm not a dev so it's little help to me]
>
> I'd appreciate some help for repairing a corrupted RAID1.
>
> Setup:
> * Linux
Filipe Manana wrote on 2015/10/26 08:14 +:
On Mon, Oct 26, 2015 at 6:11 AM, Qu Wenruo wrote:
No_quota parameter for delayed_ref related function are meaningless
after 4.2-rc1, as any new delayed_ref_head will cause qgroup to scan
extent for its rfer/excl change
From: Filipe Manana
In the kernel 4.2 merge window we had a refactoring/rework of the delayed
references implementation in order to fix certain problems with qgroups.
However that rework introduced one more regression that leads to the
following trace when running delayed
On Mon, Oct 26, 2015 at 8:25 AM, Qu Wenruo wrote:
>
>
> Filipe Manana wrote on 2015/10/26 08:14 +:
>>
>> On Mon, Oct 26, 2015 at 6:11 AM, Qu Wenruo
>> wrote:
>>>
>>> No_quota parameter for delayed_ref related function are meaningless
>>>
Dmitry Katsubo posted on Sun, 18 Oct 2015 11:44:08 +0200 as excerpted:
>> Meanwhile, the present btrfs raid1 read-scheduler is both pretty simple
>> to code up and pretty simple to arrange tests for that run either one
>> side or the other, but not both, or that are well balanced to both.
>>
Dmitry Katsubo posted on Sun, 18 Oct 2015 11:44:08 +0200 as excerpted:
[Regarding the btrfs raid1 "device-with-the-most-space" chunk-allocation
strategy.]
> I think the mentioned strategy (fill in the device with most free space)
> is not most effective. If the data is spread equally, the read
Qu Wenruo wrote on 2015/10/26 16:25 +0800:
Filipe Manana wrote on 2015/10/26 08:14 +:
On Mon, Oct 26, 2015 at 6:11 AM, Qu Wenruo
wrote:
No_quota parameter for delayed_ref related function are meaningless
after 4.2-rc1, as any new delayed_ref_head will cause
This patchset fixes 2 bugs:
1. Race condition leading to abort transaction
Reported by Filipe, fixed by 2nd patch.
2. Qgroup low level double free leading to EDQUOT
In fact, I hit such bug several times during internal rebase, but I'm so
stupid to forgot to include it in v3 patchset.
Fixed in 3rd
On Mon, Oct 26, 2015 at 6:11 AM, Qu Wenruo wrote:
> No_quota parameter for delayed_ref related function are meaningless
> after 4.2-rc1, as any new delayed_ref_head will cause qgroup to scan
> extent for its rfer/excl change without checking no_quota flag.
>
> So this
From: Filipe Manana
In the kernel 4.2 merge window we had a big changes to the implementation
of delayed references and qgroups which made the no_quota field of delayed
references not used anymore. More specifically the no_quota field is not
used anymore as of:
commit
TL;DR: RAID1 does not recover, I guess the interesting part in the stack
trace is:
Call Trace:
[] __del_reloc_root+0x30/0x100 [btrfs]
[] free_reloc_roots+0x25/0x40 [btrfs]
[] merge_reloc_roots+0x18e/0x240 [btrfs]
[] btrfs_recover_relocation+0x374/0x420 [btrfs]
[]
Thanks a lot for your reply!
While remounting the filesystem fixes the issue temporary, it doesn't
take very long for the bug to happen again so it's not really a
workaround I can work with.
I did recompile the kernel using your patches, but unfortunately the
problem still appears.
Thanks,
I decided to give this ST8000AS0002 a try for storing old snapshots,
although standardization for more optimal/native contol of SMR drives
is still ongoing. I saw people got it working with 3.18 kernel, so
that gave confidence.
I wanted to see if i could get it running with 4.3.0-rc6 kernel (and
I decided to give this ST8000AS0002 a try for backups / storing old
snapshots, although standardization for more optimal/native contol of
SMR drives is still ongoing. I saw people got it working with 3.18
kernel, so that gave confidence.
I wanted to see if i could get it running with 4.3.0-rc6
On Mon, Oct 26, 2015 at 12:19:33PM +, Pádraig Brady wrote:
> On 26/10/15 03:39, Christoph Hellwig wrote:
> > On Sat, Oct 24, 2015 at 01:02:21PM +0100, P??draig Brady wrote:
> >> I'm a bit worried about the sparse expansion and default reflinking
> >> which might preclude cp(1) from using this
Johannes Henninger wrote on 2015/10/27 01:15 +0100:
On 26.10.2015 08:12, Qu Wenruo wrote:
Thanks a lot for your reply!
While remounting the filesystem fixes the issue temporary, it doesn't
take very long for the bug to happen again so it's not really a
workaround I can work with.
I did
Hello,
currently my computer freezes every several seconds for half a second
or so. Using it feels like I'm playing musical chairs with the kernel.
I have just one download happening on utorrent right now - this is
what the graph looks like:
http://i.imgur.com/LqhMtrJ.png
and every time a new
Signed-off-by : Ashish Samant
---
fs/btrfs/delayed-inode.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c
index a2ae427..b86cfd9 100644
--- a/fs/btrfs/delayed-inode.c
+++
Filipe Manana wrote on 2015/10/25 14:39 +:
On Tue, Oct 13, 2015 at 3:20 AM, Qu Wenruo wrote:
Add new function btrfs_add_delayed_qgroup_reserve() function to record
how much space is reserved for that extent.
As btrfs only accounts qgroup at run_delayed_refs()
Chris Mason wrote on 2015/10/27 01:14 -0400:
On Tue, Oct 27, 2015 at 12:13:11PM +0800, Qu Wenruo wrote:
Filipe Manana wrote on 2015/10/25 14:39 +:
On Tue, Oct 13, 2015 at 3:20 AM, Qu Wenruo wrote:
Add new function btrfs_add_delayed_qgroup_reserve() function
On Tue, Oct 27, 2015 at 12:13:11PM +0800, Qu Wenruo wrote:
>
>
> Filipe Manana wrote on 2015/10/25 14:39 +:
> >On Tue, Oct 13, 2015 at 3:20 AM, Qu Wenruo wrote:
> >>Add new function btrfs_add_delayed_qgroup_reserve() function to record
> >>how much space is reserved
Hugo Mills posted on Mon, 26 Oct 2015 09:24:57 + as excerpted:
> On Mon, Oct 26, 2015 at 09:14:00AM +, Duncan wrote:
>> Dmitry Katsubo posted on Sun, 18 Oct 2015 11:44:08 +0200 as excerpted:
>>
>>> I think PID-based solution is not the best one. Why not simply take a
>>> random device?
On Wed, Oct 14, 2015 at 11:10:38PM +0530, Chandan Rajendra wrote:
> mkfs.btrfs allows creation of Btrfs filesystem instances with mixed block
> group feature enabled and having a sectorsize different from nodesize.
> For e.g:
>
> [root@localhost btrfs-progs]# mkfs.btrfs -f -M -s 4096 -n 16384
Hi guys,
I am running into really bad performance. Here's my setup:
WD Red 6 TB connected over USB2 to my core i7 laptop, running Ubuntu
32-bit with kernel 4.0.4-040004-generic #201505171336.
Single btrfs partition covering whole disk.
Autodefrag is on.
fstab line:
UUID=... /media/X btrfs
I get the same kind of muddy errors when I do a quota rescan on the
filesystem or qgroup show on any subvolume on mine, and I know I don't
have them enabled.
On Mon, Oct 26, 2015 at 8:56 AM, cheater00 . wrote:
> fwiw, I did this:
>
> sudo btrfs qgroup show /media/X
> ERROR:
Hi
FWIW, this sounds like what I've been seeing with dovecot. In case it's
relevant, I'll try to explain.
After some uptime, I'll see log messages like this:
Okt 26 12:05:46 thetick dovecot[467]: imap(marcec): Error: pread() failed with
file
On 10/26/2015 08:16 PM, cheater00 . wrote:
Hi guys,
I am running into really bad performance. Here's my setup:
WD Red 6 TB connected over USB2 to my core i7 laptop, running Ubuntu
32-bit with kernel 4.0.4-040004-generic #201505171336.
Single btrfs partition covering whole disk.
Autodefrag is
Thanks for the reply. What version did this go into? I'll try getting
a prebuilt backport of the kernel, building source could slow things
down considerably, but debs will not be available for the latest few
minor versions I guess. So if you can tell me a min version, I'll try
to find the latest
On Mon, Oct 26, 2015 at 06:28:17PM +0800, Zhao Lei wrote:
> This patch add all missing close_ctree and btrfs_close_all_devices
> to several tools in btrfs progs, to avoid memory leak.
>
> Changelog v1->v2:
> Move btrfs_close_all_devices() from cmd-XXX into btrfs.c to make
> code simple, and
I don't remember doing that, but just to exclude everything, how do I check?
On Mon, Oct 26, 2015 at 2:45 PM, Donald Pearson
wrote:
> AFAIK quotas aren't a mount option, but if you never enabled them and
> created the qgroups by hand that's your answer and the issue
Accidentally didn't reply to the list the 1st time.
I see the same issue when I have quotas enabled. If you have quotas
on, see if turning them off helps.
On Mon, Oct 26, 2015 at 7:16 AM, cheater00 . wrote:
> Hi guys,
> I am running into really bad performance. Here's my
fwiw, I did this:
sudo btrfs qgroup show /media/X
ERROR: can't perform the search - No such file or directory
ERROR: can't list qgroups: No such file or directory
I assume this means no qgroups present, which means no quotas present.
Please correct me if I'm wrong.
So yes, the issue must lie
On 26/10/15 03:39, Christoph Hellwig wrote:
> On Sat, Oct 24, 2015 at 01:02:21PM +0100, P??draig Brady wrote:
>> I'm a bit worried about the sparse expansion and default reflinking
>> which might preclude cp(1) from using this call in most cases, but I will
>> test and try to use it. coreutils has
There are no quotas. I haven't enabled them. I believe the fstab says
that - could they be enabled in another way? How do I check for sure?
The man page doesn't say how to check the status:
https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-quota
On Mon, Oct 26, 2015 at 2:32 PM, Donald Pearson
AFAIK quotas aren't a mount option, but if you never enabled them and
created the qgroups by hand that's your answer and the issue must be
something else.
On Mon, Oct 26, 2015 at 8:36 AM, cheater00 . wrote:
> There are no quotas. I haven't enabled them. I believe the fstab
I have located 4.3.0-rc7 binaries which I will now try.
On Mon, Oct 26, 2015 at 3:38 PM, cheater00 . wrote:
> Thanks for the reply. What version did this go into? I'll try getting
> a prebuilt backport of the kernel, building source could slow things
> down considerably, but
So far I cannot reproduce. If I don't post again this means the issue
has been fixed by updating the kernel.
On Mon, Oct 26, 2015 at 4:40 PM, cheater00 . wrote:
> I have located 4.3.0-rc7 binaries which I will now try.
>
> On Mon, Oct 26, 2015 at 3:38 PM, cheater00 .
I do not experience btrfs-transacti going up to 100% for minutes at a
time now (not reproduced yet) but I have it spiking up to say 30% for
a short while and everything jags during that time. So, say, if I am
watching youtube, the sound cuts out and the video drops out for a
bit. And if I'm
59 matches
Mail list logo