Zoltán Borók-Nagy created IMPALA-15812:
------------------------------------------

             Summary: statestored, catalogd and admissiond fail to start with 
--tcmalloc_aggressive_memory_decommit=false
                 Key: IMPALA-15812
                 URL: https://issues.apache.org/jira/browse/IMPALA-15812
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
            Reporter: Zoltán Borók-Nagy


When {{tcmalloc_aggressive_memory_decommit=false}} (added by IMPALA-14900), 
{{MallocUtil::Init()}} parses {{tcmalloc_max_free_bytes}}, whose default is 
"5%". statestored, catalogd and admissiond call {{Init()}} through DaemonEnv 
without a process memory limit, so the default percentage is rejected and the 
daemon exits at startup:

{noformat}
F... statestored-main.cc:59] Invalid --tcmalloc_max_free_bytes value, must be a 
positive bytes value: 5%
{noformat}

Repro on master: start statestored with 
{{tcmalloc_aggressive_memory_decommit=false}} and no other tcmalloc flags. The 
flag help says only impalad accepts a percentage, but the default is one, so 
passing the decommit flag to every daemon (as shared flag files do) takes the 
whole cluster down. Workaround: set it only on impalads, or also set 
{{tcmalloc_max_free_bytes}} to a byte value.

Suggested fix: without a process memory limit, resolve a percentage against 
physical memory (or use a fixed default) and log the result, instead of failing.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to