Skip to content

Commit

Permalink
[XCache] More reasonable defaults for pfc.writequeue parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
osschar committed May 16, 2019
1 parent dfc11be commit 893fe63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/XrdFileCache/XrdFileCache.hh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ struct Configuration
m_bufferSize(1024*1024),
m_RamAbsAvailable(0),
m_NRamBuffers(-1),
m_wqueue_blocks(1),
m_wqueue_threads(1),
m_wqueue_blocks(16),
m_wqueue_threads(4),
m_prefetch_max_blocks(10),
m_hdfsbsize(128*1024*1024),
m_flushCnt(100)
Expand Down
6 changes: 4 additions & 2 deletions src/XrdFileCache/XrdFileCacheConfiguration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,12 @@ bool Cache::Config(const char *config_filename, const char *parameters)
return false;
}

// Reduce buffersize in case of client caching
// Adjust default parameters for client/serverless caching
if (m_isClient)
{
m_configuration.m_bufferSize = 256 * 1024;
m_configuration.m_bufferSize = 256 * 1024;
m_configuration.m_wqueue_blocks = 8;
m_configuration.m_wqueue_threads = 1;
}

// Actual parsing of the config file.
Expand Down

0 comments on commit 893fe63

Please sign in to comment.