How much extra memory do ASAN builds use?

416 views
Skip to first unread message

David Lam

unread,
May 2, 2019, 4:01:47 PM5/2/19
to address-sanitizer
How much extra memory do ASAN builds use? There's a paper from 2012 saying that:

> AddressSanitizer finds out-of-bounds accesses (for heap, stack, and global objects) and uses of freed heap memory at the relatively low cost of 73% slowdown and 3.4x increased memory usage, making it a good choice for testing a wide range of C/C++ applications.

Is this still current?

Thanks!

Evgenii Stepanov

unread,
May 2, 2019, 4:53:08 PM5/2/19
to address-sanitizer
Depends on the application a lot. There is a large constant overhead
component; then there is the quarantine that has the upper per-thread
limit, which means long-running processes tend to use more RAM with
time, but also saturate at some point. This can be tuned with runtime
flags.

We often see somewhere between 2x and 3x memory overhead on large programs.
> --
> You received this message because you are subscribed to the Google Groups "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to address-saniti...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Alexei Fedotov

unread,
Dec 6, 2022, 7:27:29 PM12/6/22
to address-sanitizer
Hello,
are there are any options to ASAN to decrease virtual memory consumption?

With best regards, Alexei

четверг, 2 мая 2019 г. в 22:53:08 UTC+2, Evgeniy Stepanov:
Reply all
Reply to author
Forward
0 new messages