Verified Commit afe6e43d authored by Marc Vef's avatar Marc Vef
Browse files

Allow to set separate dirbuffsize in proxy

parent 7cb374b1
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -150,6 +150,7 @@ namespace rpc {
constexpr auto chunksize = 524288; // in bytes (e.g., 524288 == 512KB)
// size of preallocated buffer to hold directory entries in rpc call
constexpr auto dirents_buff_size = (8 * 1024 * 1024); // 8 mega
constexpr auto dirents_buff_size_proxy = (128 * 1024 * 1024); // 8 mega
constexpr auto async_opendir = true;
/*
 * Indicates the number of concurrent progress to drive I/O operations of chunk
+2 −2
Original line number Diff line number Diff line
@@ -203,10 +203,10 @@ forward_get_dirents_single_proxy(const string& path, int server) {
     * buffer. Moreover we don't need a zeroed buffer here.
     */
    auto large_buffer = std::unique_ptr<char[]>(
            new char[gkfs::config::rpc::dirents_buff_size]);
            new char[gkfs::config::rpc::dirents_buff_size_proxy]);

    // We use the full size per server...
    const std::size_t per_host_buff_size = gkfs::config::rpc::dirents_buff_size;
    const std::size_t per_host_buff_size = gkfs::config::rpc::dirents_buff_size_proxy;
    auto output_ptr = make_unique<
            vector<tuple<const std::string, bool, size_t, time_t>>>();