Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: TM <tmjuju@yahoo.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: block rsv returned -28
Date: Sun, 6 Jan 2013 13:02:10 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130106T140036-764@post.gmane.org> (raw)
In-Reply-To: loom.20130106T102511-102@post.gmane.org

TM <tmjuju <at> yahoo.com> writes:

# btrfs fi df /mnt/dls
Data: total=712.01GB, used=711.24GB
System, DUP: total=8.00MB, used=80.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=1.00GB, used=998.53MB
Metadata: total=8.00MB, used=0.00

btrfs fi show
Label: 'tm_0'  uuid: f2866a33-fe53-4fc0-98bf-52d347b43824
        Total devices 1 FS bytes used 712.21GB
        devid    1 size 1.82TB used 714.04GB path /dev/sdb1

...

[root@microserver mnt]# btrfs balance start -dusage=5 /mnt/dls/
Done, had to relocate 0 out of 716 chunks
[root@microserver mnt]# btrfs balance start -dusage=10 /mnt/dls/
Done, had to relocate 0 out of 716 chunks
[root@microserver mnt]# btrfs balance start -dusage=15 /mnt/dls/
Done, had to relocate 0 out of 716 chunks
[root@microserver mnt]# btrfs balance start -dusage=25 /mnt/dls/
Done, had to relocate 0 out of 716 chunks
[root@microserver mnt]# btrfs balance start -dusage=35 /mnt/dls/
Done, had to relocate 1 out of 716 chunks

...
Meanwhile situation got worst
..


[root@microserver ~]# btrfs fi df /mnt/dls/
Data: total=713.01GB, used=712.23GB
System, DUP: total=8.00MB, used=80.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=1.00GB, used=999.31MB
Metadata: total=8.00MB, used=0.00


and I kept getting more messages
dmesg |grep "block rsv returned -28" |wc -l
60

(I had stared with only 9 messages just a few hours ago)

So I decided to remove files
I started to remove (rm -rfv) thousands of files and directories
At first the rate was about 1 filedelete per second... 
Always monitoring usage while deleteing
Utilll I got down to: 

# btrfs fi df /mnt/dls/
Data: total=712.01GB, used=638.04GB
System, DUP: total=8.00MB, used=80.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=1.00GB, used=895.24MB
Metadata: total=8.00MB, used=0.00

And then the filesystem became responsive again
Back to 100MBps range from ~1MBps


  reply	other threads:[~2013-01-06 13:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-06 10:28 block rsv returned -28 TM
2013-01-06 13:02 ` TM [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-07 12:23 Jan Engelhardt

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=loom.20130106T140036-764@post.gmane.org \
    --to=tmjuju@yahoo.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox