This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
     new 94ff6a99bf [fix](chore) read max_map_count from proc instead of sysctl 
(#14136)
94ff6a99bf is described below

commit 94ff6a99bf7f4813f1a1fa9c44b122e839a99fa4
Author: Yongqiang YANG <98214048+dataroar...@users.noreply.github.com>
AuthorDate: Thu Nov 10 10:32:34 2022 +0800

    [fix](chore) read max_map_count from proc instead of sysctl (#14136)
    
    * [fix](chore) read max_map_count from proc instead of sysctl
    
    Some users cannot use sysctl. We notice users that we can adjust
    max_map_count under root.
    
    * fix
---
 bin/start_be.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/start_be.sh b/bin/start_be.sh
index d314fa0146..f4349edaef 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -54,9 +54,9 @@ export DORIS_HOME=$(
 )
 
 if [[ "$(uname -s)" != 'Darwin' ]]; then
-    MAX_MAP_COUNT="$(sysctl -n vm.max_map_count)"
+    MAX_MAP_COUNT="$(cat /proc/sys/vm/max_map_count)"
     if [[ "${MAX_MAP_COUNT}" -lt 2000000 ]]; then
-        echo "Please set vm.max_map_count to be 2000000. sysctl -w 
vm.max_map_count=2000000"
+        echo "Please set vm.max_map_count to be 2000000 under root using 
'sysctl -w vm.max_map_count=2000000'."
         exit 1
     fi
 fi


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to