Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 256 by [email protected]: [patch] decrease resident memory usage.
http://code.google.com/p/address-sanitizer/issues/detail?id=256

Hi,

Here is a patch that helps decreasing ASan's memory usage. On my use case, this decrease memory consumption by 20% with no noticeable performance impact (in fact, it seems the resulting process is marginally faster).

The idea here is to clear memory using a fixed mmap instead of memset since both will result in zeroed memory but mmap memory is not resident before someone writes something in it. This also could result in faster code for large clear since memset scans the memory and mmap only change the virtual address map, however while memset runs in userland, mmap implies performing a syscall that will take a lock to modify a shared (between threads) resource.

Attachments:
        0001-asan-reduce-resident-memory-consumption.patch  2.1 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to