18 lines
768 B
Bash
18 lines
768 B
Bash
#/bin/bash
|
|
#Copyright (c) [2019] Huawei Technologies Co., Ltd.
|
|
#generic-release is licensed under the Mulan PSL v1.
|
|
#You can use this software according to the terms and conditions of the Mulan PSL v1.
|
|
#You may obtain a copy of Mulan PSL v1 at:
|
|
# http://license.coscl.org.cn/MulanPSL
|
|
#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 v1 for more details.
|
|
|
|
CPUNO=`cat /proc/cpuinfo|grep processor|wc -l`
|
|
export GOMP_CPU_AFFINITY=0-$[CPUNO - 1]
|
|
|
|
sysctl -w vm.min_free_kbytes=112640 &> /dev/null
|
|
sysctl -w vm.dirty_ratio=60 &> /dev/null
|
|
sysctl -w kernel.sched_autogroup_enabled=0 &> /dev/null
|