Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/bluestore/BlueFS: several cleanups #17966

Merged
merged 3 commits into from Sep 28, 2017

Conversation

xiexingguo
Copy link
Member

No description provided.

@@ -1244,7 +1244,7 @@ void BlueFS::_compact_log_async(std::unique_lock<std::mutex>& l)
<< std::dec << dendl;

// allocate
int r = _allocate(BlueFS::BDEV_DB, new_log_jump_to,
int r = _allocate(log_file->fnode.prefer_bdev, new_log_jump_to,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thinking here is that the async compaction isn't blocking, so it isn't latency sensitive.. and the wal device will generally only be big enough for the rocksdb .log files. Since this is only ever read on startup, I don't think there's much value in putting it on the wal device.

Copy link
Member

@liewegas liewegas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other patches look good!

@xiexingguo xiexingguo changed the title os/bluestore/BlueFS: use BDEV_WAL as the preferred device for log; kill block_total os/bluestore/BlueFS: several cleanups Sep 26, 2017
@xiexingguo
Copy link
Member Author

@liewegas Dropped that change!

As block_all will suffice for the same purpose.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
As Allocator will handle it automatically and efficiently!

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
As we might be allocating space from different devices (though
the chance is rare).

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@xiexingguo
Copy link
Member Author

retest this please

@xiexingguo
Copy link
Member Author

retest this please

@xiexingguo xiexingguo merged commit 58f329c into ceph:master Sep 28, 2017
@xiexingguo xiexingguo deleted the wip-bluefs-kill-block-total branch September 28, 2017 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants