[PATCH v3] Btrfs: improve multi-thread buffer read

2012-07-16 Thread Liu Bo
While testing with my buffer read fio jobs[1], I find that btrfs does not perform well enough. Here is a scenario in fio jobs: We have 4 threads, t1 t2 t3 t4, starting to buffer read a same file, and all of them will race on add_to_page_cache_lru(), and if one thread successfully puts its page

Re: [PATCH] Btrfs: allow delayed refs to be merged V2

2012-07-16 Thread Arne Jansen
On 14.07.2012 15:09, Josef Bacik wrote: Daniel Blueman reported a bug with fio+balance on a ramdisk setup. Basically what happens is the balance relocates a tree block which will drop the implicit refs for all of its children and adds a full backref. Once the block is relocated we have to add

Re: btrfs GPF in read_extent_buffer() while scrubbing with kernel 3.4.2

2012-07-16 Thread Arne Jansen
Any news on this? I you give me some hints, I can try to reproduce it here. -Arne On 10.07.2012 08:57, Arne Jansen wrote: On 10.07.2012 06:16, Sami Liedes wrote: On Mon, Jul 09, 2012 at 11:05:47AM +0200, Arne Jansen wrote: * Just before the crash: btrfs: invalid parameters for

Re: [PATCH] Btrfs: allow delayed refs to be merged V2

2012-07-16 Thread Arne Jansen
One point regarding the merge: wouldn't it be better to put the seq as a sort criterion at the end, so the merge can happen in one run through the list instead of this potentially quadratic time? I've seen some warnings from CPU stuck 22s which recovered after the test. On 16.07.2012 09:41, Arne

Re: [RFC PATCH 4/7] Btrfs: introduce subvol uuids and times

2012-07-16 Thread Arne Jansen
On 04.07.2012 15:38, Alexander Block wrote: This patch introduces uuids for subvolumes. Each subvolume has it's own uuid. In case it was snapshotted, it also contains parent_uuid. In case it was received, it also contains received_uuid. It also introduces subvolume ctime/otime/stime/rtime.

Re: btrfs GPF in read_extent_buffer() while scrubbing with kernel 3.4.2

2012-07-16 Thread Sami Liedes
On Mon, Jul 16, 2012 at 10:20:28AM +0200, Arne Jansen wrote: Any news on this? I you give me some hints, I can try to reproduce it here. I've been planning for a few days now to try if it's reproducible in a virtual machine with the same filesystem images. However I haven't gotten around to