Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Build result: pass - 60541 tests passed, 0 failed and 726 were skipped.
Log files: console-log.txt, CMakeCache.txt
Build result: pass - 60541 tests passed, 0 failed and 726 were skipped.
Log files: console-log.txt, CMakeCache.txt
compiler-rt/lib/scudo/standalone/benchmarks/malloc_benchmark.cpp | ||
---|---|---|
34 | Can we instead do what bionic-benchmarks does on their malloc test, and touch each page to ensure residency (although we're only allocating 8-bytes at a time). Similarly, they also bulk allocate -> bulk deallocate using a storage vector. Seems like a better solution - so we don't just hit the freelist 128 * 1024 times. | |
43 | Missing DefaultConfig? | |
47 | Can we make 128 * 1024 and 8 constants? |
compiler-rt/lib/scudo/standalone/benchmarks/malloc_benchmark.cpp | ||
---|---|---|
34 | I have absolutely no idea why I read this loop as memcpy, but please ignore the first point. Bulk allocate/delete would still be great. |
compiler-rt/lib/scudo/standalone/benchmarks/malloc_benchmark.cpp | ||
---|---|---|
34 |
Are we looking at different benchmarks? This is what I've been using: I guess a storage vector would be more realistic, although it may end up conflating the speed of the allocator's main path with other things (e.g. mmap performance, reclaiming, cache (but maybe not because of the quarantine?)) so maybe it should be a separate benchmark?
(that wouldn't happen, the number here is the number of *bytes* to allocate, not the number of iterations) | |
43 | Testing with DefaultConfig caused crashes for me, I think it was a D70760 style problem with the exclusive TSD but I couldn't seem to solve it. I'll add a FIXME here. | |
47 | Sure. |
compiler-rt/lib/scudo/standalone/benchmarks/malloc_benchmark.cpp | ||
---|---|---|
34 | BM_stdlib_malloc_multiple_8192_allocs_default - maybe it's worth doing both the retained/non-retained tests? |
Could you please put a comment somewhere on how to use the benchmark?
compiler-rt/lib/scudo/standalone/benchmarks/malloc_benchmark.cpp | ||
---|---|---|
29 | size_t maybe? getpagesize returns an int but that's awkward I feel, hence getPageSizeCached returning an uptr. |
Build result: pass - 60578 tests passed, 0 failed and 726 were skipped.
Log files: console-log.txt, CMakeCache.txt
size_t maybe? getpagesize returns an int but that's awkward I feel, hence getPageSizeCached returning an uptr.