You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Philip Zeyliger (JIRA)" <ji...@apache.org> on 2017/12/06 22:32:00 UTC

[jira] [Created] (IMPALA-6288) Impala C++ test libraries are surprisingly large

Philip Zeyliger created IMPALA-6288:
---------------------------------------

             Summary: Impala C++ test libraries are surprisingly large
                 Key: IMPALA-6288
                 URL: https://issues.apache.org/jira/browse/IMPALA-6288
             Project: IMPALA
          Issue Type: Task
          Components: Infrastructure
            Reporter: Philip Zeyliger


The C++ tests are 60MB or so each.

{code}
$ls -l build/debug/rpc/*-test
-rwxrwxr-x 1 philip philip 60492088 Nov  6 17:11 build/debug/rpc/authentication-test*
-rwxrwxr-x 1 philip philip 61593808 Nov  6 17:11 build/debug/rpc/rpc-mgr-test*
-rwxrwxr-x 1 philip philip 63047936 Nov  6 17:11 build/debug/rpc/thrift-server-test*
-rwxrwxr-x 1 philip philip 60489200 Nov  6 17:11 build/debug/rpc/thrift-util-test*
{code}

I don't have a super clear picture of what's going on, but I think we might be statically linking against LLVM even when we try to link dynamically. Using {{nm}} to look at symbols, I can see that about 24MB (of 62MB) is used by llvm-looking things. 

{code}
$ nm --demangle --print-size --size-sort --radix=d util/lru-cache-test  | sort -k 2 -n | grep llvm:: | awk '{ x += $2 } END { print x }'
23691589
{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)