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

             Summary: [DOCS] Recommend THP defrag=defer: with defrag=madvise 
hash table builds stall in direct compaction
                 Key: IMPALA-15838
                 URL: https://issues.apache.org/jira/browse/IMPALA-15838
             Project: IMPALA
          Issue Type: Improvement
          Components: Docs
            Reporter: Zoltán Borók-Nagy


The buffer pool advises huge pages for its buffers by default 
(--madvise_huge_pages=true). With /sys/kernel/mm/transparent_hugepage/defrag 
set to madvise, a page fault on that memory compacts memory synchronously when 
free memory is fragmented, for example by a large page cache. Hash table 
builds, which fault in a lot of new memory quickly, then wait in compaction.

Example on master, 3 executors with 64 vCPU, COMPUTE_PROCESSING_COST=true, THP 
enabled=madvise in all runs: TPC-DS SF10000 q72 takes 176.9 s with 
defrag=madvise and 152.0 s with defrag=defer (-14%, best of 2). TPC-H SF1000 
takes 362.9 s and 329.1 s (-9.3%, sum of best of 3; q21 -18%, q7 -16%). The 
kernel counted 177,593 and 201,988 compaction stalls in the madvise runs and 
none with defer.

Could the docs recommend enabled=madvise with defrag=defer or defer+madvise, 
and could impalad log a warning at startup when defrag is set to always or 
madvise?



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

Reply via email to