19 lines
816 B
Bash
Raw Permalink Normal View History

2024-06-13 23:28:39 +08:00
#/bin/bash
#Copyright (c) [2019] Huawei Technologies Co., Ltd.
#generic-release 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.
# Disabled for GOMP issue with rpmbuild
# 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