# Copyright (c) 2020 Huawei Technologies Co., Ltd.
# A-Tune is licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# PURPOSE.
# See the Mulan PSL v2 for more details.
# Create: 2020-07-23
#
# ceph vdbench A-Tune configuration
#
[main]
include = default-default
[kernel_config]
#TODO CONFIG
[bios]
#TODO CONFIG
[bootloader.grub2]
#TODO CONFIG
[sysfs]
block/{disk}/queue/write_cache = write through
block/{disk}/device/queue_depth = 128
block/{disk}/queue/max_sectors_kb = 1024
[systemctl]
sysmonitor = stop
irqbalance = stop
[sysctl]
#TODO CONFIG
[script]
#TODO CONFIG
[ulimit]
#TODO CONFIG
[schedule_policy]
#TODO CONFIG
[check]
#TODO CONFIG
[tip]
set congested_write_threshold_us to 60ms for bcache = application
optimize bcache mechanism, change synchronous write to asynchronous write and delete journal write process = block
set stripe unit to 128M = block
set TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES to 128M = application
ceph osd set noscrub and nodeep-scrub = application
adjust the weight of each osd in ceph cluster to balance the number of osd pgs = application
set osd_disk_threads to 2, rbd_cache_size to 335544320, rbd_cache_max_dirty to 134217728, rbd_cache_max_dirty_age to 30, rbd_cache_writethrough_until_flush to false, rbd_cache_max_dirty_object to 2, rbd_cache_target_dirty to 235544320, rbd_op_threads to 4, rbd_readahead_max_bytes to 1048576, rbd_cache_policy to writethrough in ceph.conf = application