# 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
#
# hdfs dfsio A-Tune configuration
#
[main]
include = default-default
[kernel_config]
#TODO CONFIG
[bios]
#TODO CONFIG
[bootloader.grub2]
#TODO CONFIG
[sysfs]
block/{disk}/queue/nr_requests = 2048
block/{disk}/queue/iosched/slice_idle = 12
[systemctl]
#TODO CONFIG
[sysctl]
vm.dirty_ratio = 90
vm.dirty_background_ratio = 30
vm.dirty_expire_centisecs = 3000
vm.dirty_writeback_centisecs = 1000
[script]
ethtool = -K {network} gro on | -K {network} gso on | -K {network} tso on | -G {network} rx 4096 | -G {network} tx 4096
ifconfig = {network} mtu 9000
[ulimit]
#TODO CONFIG
[schedule_policy]
#TODO CONFIG
[check]
#TODO CONFIG
[tip]
The checksum can ensure the integrity and accuracy of data. Disabling checksum will improve the performance but data integrity can not be ensure. = filesystem
set the block size to 65536 and set reserved blocks percentage to 0 = filesystem
use largefile4 and write-back mode = filesystem
disable lazy init and the barrier function = filesystem
enable noatime or nodirname to prevent the inode access records from being updated = filesystem
disable cgroup files and blocks = filesystem
set the TieredStopAtLevel to 1 = application
set the dfs.block.size to 32M in hdfs-site.xml = application