1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-18 05:45:45 +02:00

bees: don't limit number of active crawlers

All testing so far incidates more crawlers go faster up to a limit
much larger than btrfs's performance limitations on subvols, even on
spinning rust.  Remove the artificial constraint.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2017-03-26 10:23:09 -04:00
parent d43199e3d6
commit c1dbd30d82
2 changed files with 3 additions and 3 deletions

View File

@ -260,7 +260,7 @@ BeesContext::home_fd()
BeesContext::BeesContext(shared_ptr<BeesContext> parent) :
m_parent_ctx(parent)
{
m_extent_lock_set.max_size(bees_worker_thread_count());;
// m_extent_lock_set.max_size(bees_worker_thread_count());;
if (m_parent_ctx) {
m_fd_cache = m_parent_ctx->fd_cache();
}

View File

@ -302,7 +302,7 @@ BeesRoots::BeesRoots(shared_ptr<BeesContext> ctx) :
m_crawl_state_file(ctx->home_fd(), crawl_state_filename()),
m_writeback_thread("crawl_writeback")
{
m_lock_set.max_size(bees_worker_thread_count());
// m_lock_set.max_size(bees_worker_thread_count());
catch_all([&]() {
state_load();
@ -647,7 +647,7 @@ BeesCrawl::fetch_extents()
bool ioctl_ok = false;
{
BEESNOTE("waiting to search crawl sk " << static_cast<btrfs_ioctl_search_key&>(sk));
auto lock = bees_ioctl_lock_set.make_lock(gettid());
// auto lock = bees_ioctl_lock_set.make_lock(gettid());
BEESNOTE("searching crawl sk " << static_cast<btrfs_ioctl_search_key&>(sk));
BEESTOOLONG("Searching crawl sk " << static_cast<btrfs_ioctl_search_key&>(sk));