#include "runtime/disk-io-mgr.h"
#include "runtime/disk-io-mgr-internal.h"
#include "util/hdfs-util.h"
#include <gutil/strings/substitute.h>
#include <boost/algorithm/string.hpp>
#include "common/names.h"
Go to the source code of this file.
|
| DECLARE_bool (disable_mem_pools) |
|
| DEFINE_int32 (num_disks, 0,"Number of disks on data node.") |
|
| DEFINE_int32 (num_threads_per_disk, 0,"number of threads per disk") |
|
| DEFINE_int32 (num_s3_io_threads, 16,"number of S3 I/O threads") |
|
| DEFINE_int32 (read_size, 8 *1024 *1024,"Read Size (in bytes)") |
|
| DEFINE_int32 (min_buffer_size, 1024,"The minimum read buffer size (in bytes)") |
|
| DEFINE_int32 (max_free_io_buffers, 128,"For each io buffer size, the maximum number of buffers the IoMgr will hold onto") |
|
static void | CheckSseSupport () |
|
static void CheckSseSupport |
( |
| ) |
|
|
static |
DECLARE_bool |
( |
disable_mem_pools |
| ) |
|
DEFINE_int32 |
( |
num_disks |
, |
|
|
0 |
, |
|
|
"Number of disks on data node." |
|
|
) |
| |
DEFINE_int32 |
( |
num_threads_per_disk |
, |
|
|
0 |
, |
|
|
"number of threads per disk" |
|
|
) |
| |
DEFINE_int32 |
( |
num_s3_io_threads |
, |
|
|
16 |
, |
|
|
"number of S3 I/O threads" |
|
|
) |
| |
DEFINE_int32 |
( |
read_size |
, |
|
|
8 *1024 * |
1024, |
|
|
"Read Size (in bytes)" |
|
|
) |
| |
DEFINE_int32 |
( |
min_buffer_size |
, |
|
|
1024 |
, |
|
|
"The minimum read buffer size (in bytes)" |
|
|
) |
| |
DEFINE_int32 |
( |
max_free_io_buffers |
, |
|
|
128 |
, |
|
|
"For each io buffer |
size, |
|
|
the maximum number of buffers the IoMgr will hold onto" |
|
|
) |
| |
const int LOW_MEMORY = 64 * 1024 * 1024 |
|
static |
const int THREADS_PER_FLASH_DISK = 8 |
|
static |
const int THREADS_PER_ROTATIONAL_DISK = 1 |
|
static |