diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-10-31 10:07:19 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 22:08:31 -0500 |
commit | 9e6a0c52b74b2d63a6cdb09cec5eaf66038b218f (patch) | |
tree | 7582d735115b9bde7527bfc014d10ce8b419b2c6 /Documentation/x86 | |
parent | 9f23e289edaf1e99f60de3978c50a1c7424f3e92 (diff) |
Btrfs: stop committing the transaction so much during relocate
I noticed with my horrible snapshot excercisor that we were taking forever to
relocate the larger the file system got. This appeared to be because we were
committing the transaction _constantly_. There were a few places where we do
braindead things with metadata reservation, like start a transaction and then
try to refill the block rsv, which not only keeps us from committing a
transaction during the enospc stuff, but keeps us from doing some of the harder
flushing work which will make us more likely to need to commit the transaction.
We also were checking the block rsv and committing the transaction if the block
rsv was below a certain threshold, but we were doing this in a place where we
don't actually keep anything in the block rsv so this was always ending up false
so we always committed the transaction in this case. I tested this to make sure
it didn't break anything, but it takes about 10 hours to get the box to this
state so I don't know how much of an impact it will really make. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'Documentation/x86')
0 files changed, 0 insertions, 0 deletions