be/src/runtime/load_channel_mgr.cpp
// Calculate the memory limit for a single load job.
Calculate the memory limit for a single load job.
Calculate the memory limit for a single load job .
static int64_t calc_job_max_load_memory(int64_t mem_limit_in_req, int64_t total_mem_limit) {
    const int64_t default_load_mem_limit = 2 * 1024 * 1024 * 1024L; 
    int64_t load_mem_limit = default_load_mem_limit;
    if (mem_limit_in_req != -1) {
        load_mem_limit = std::max<int64_t>(mem_limit_in_req, config::write_buffer_size);
        load_mem_limit = std::min<int64_t>(load_mem_limit, total_mem_limit);
    }
    return load_mem_limit;
}
static int64_t calc_job_max_load_memory ( int64_t mem_limit_in_req , int64_t total_mem_limit ) { const int64_t default_load_mem_limit = 2 * 1024 * 1024 * 1024L ; int64_t load_mem_limit = default_load_mem_limit ; if ( mem_limit_in_req != -1 ) { load_mem_limit = std :: max < int64_t > ( mem_limit_in_req , config :: write_buffer_size ) ; load_mem_limit = std :: min < int64_t > ( load_mem_limit , total_mem_limit ) ; } return load_mem_limit ; }
Calculate the memory limit for a single load job.
Calculate the memory limit for a single load job .
// default mem limit is used to be compatible with old request. // new request should be set load_mem_limit. // 2GB // mem-limit of a certain load should between config::write_buffer_size // and total-memory-limit