IMPALA-5164: Bloom filter benchmark fails to complete Due to large allocations during benchmark, we spend a lot of time under memory pressure, which triggers the context switch detection. Not using micro-benchmark heuristics for these benchmarks fixes the problem.
Change-Id: Ifad385a633c45af7d1dbcc87e56661c413bde7dc Reviewed-on: http://gerrit.cloudera.org:8080/7381 Reviewed-by: Jim Apple <[email protected]> Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/a15d8acb Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/a15d8acb Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/a15d8acb Branch: refs/heads/master Commit: a15d8acba06e2a9850e5fc19b634e6d956330bc1 Parents: f1a3d8e Author: Zach Amsden <[email protected]> Authored: Fri Jul 7 23:11:43 2017 +0000 Committer: Impala Public Jenkins <[email protected]> Committed: Tue Jul 11 00:44:29 2017 +0000 ---------------------------------------------------------------------- be/src/benchmarks/bloom-filter-benchmark.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/a15d8acb/be/src/benchmarks/bloom-filter-benchmark.cc ---------------------------------------------------------------------- diff --git a/be/src/benchmarks/bloom-filter-benchmark.cc b/be/src/benchmarks/bloom-filter-benchmark.cc index c7f529f..c9eef7e 100644 --- a/be/src/benchmarks/bloom-filter-benchmark.cc +++ b/be/src/benchmarks/bloom-filter-benchmark.cc @@ -308,7 +308,7 @@ void RunBenchmarks() { } { - Benchmark suite("union"); + Benchmark suite("union", false /* micro_heuristics */); vector<unique_ptr<either::TestData> > testdata; for (int ndv = 10000; ndv <= 100 * 1000 * 1000; ndv *= 100) { for (int log10fpp = -1; log10fpp >= -3; --log10fpp) { @@ -330,7 +330,7 @@ int main(int argc, char **argv) { { char name[120]; - Benchmark suite("initialize"); + Benchmark suite("initialize", false /* micro_heuristics */); vector<unique_ptr<int> > testdata; for (int ndv = 10000; ndv <= 100 * 1000 * 1000; ndv *= 100) { for (int log10fpp = -1; log10fpp >= -3; --log10fpp) {
