diff options
| author | Qiuwen Lu <[email protected]> | 2017-04-13 12:27:20 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2017-04-13 12:27:20 +0800 |
| commit | db317ce19d01f454cff59c82e0a316db6f747969 (patch) | |
| tree | ecff6e59ba598899569f4683d713ea88e900c7e0 /tools/systemd | |
| parent | 00f24a934fe1dd6207c1f836a9ea9e6f2ed44246 (diff) | |
修正线程保活、MRB分配、PAG模式下的线程绑定等问题。v4.1.2-20170413
Diffstat (limited to 'tools/systemd')
| -rw-r--r-- | tools/systemd/mrenv-script | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/systemd/mrenv-script b/tools/systemd/mrenv-script index 75020c5..80f444a 100644 --- a/tools/systemd/mrenv-script +++ b/tools/systemd/mrenv-script @@ -150,12 +150,12 @@ function huge_alloc_2M() function huge_mount_1G() { if [ ! -e $NR_HUGEPAGE_FILE_1G ]; then - return 1 + return 0 fi SIZE_1G=$(cat $NR_HUGEPAGE_FILE_1G) if [ $SIZE_1G -eq 0 ]; then - return 1 + return 0 fi mkdir -p $HUGEPAGE_PATH_1G @@ -167,12 +167,12 @@ function huge_mount_1G() function huge_mount_2M() { if [ ! -e $NR_HUGEPAGE_FILE_2M ]; then - return 1 + return 0 fi SIZE_2M=$(cat $NR_HUGEPAGE_FILE_2M) if [ $SIZE_2M -eq 0 ]; then - return 1 + return 0 fi mkdir -p $HUGEPAGE_PATH_2M |
