[OpenSIPS-Devel] [OpenSIPS/opensips] a09410: hp malloc statistics: fix incorrect stats when con...
Liviu Chircu
liviu at opensips.org
Tue Apr 1 17:55:25 CEST 2014
Branch: refs/heads/1.11
Home: https://github.com/OpenSIPS/opensips
Commit: a09410ac2d7fb3b51f80987245901d9916be4c53
https://github.com/OpenSIPS/opensips/commit/a09410ac2d7fb3b51f80987245901d9916be4c53
Author: Liviu Chircu <liviu at opensips.org>
Date: 2014-04-01 (Tue, 01 Apr 2014)
Changed paths:
M mem/hp_malloc.c
M mem/hp_malloc_stats.c
Log Message:
-----------
hp malloc statistics: fix incorrect stats when configuring split buckets
(cherry picked from commit b68cfbab2716efe9bdcc3bfd1724b228ce84bda2)
Commit: 87cc1ea11c54d8457c64db0735cdd03bba9540ee
https://github.com/OpenSIPS/opensips/commit/87cc1ea11c54d8457c64db0735cdd03bba9540ee
Author: Liviu Chircu <liviu at opensips.org>
Date: 2014-04-01 (Tue, 01 Apr 2014)
Changed paths:
M statistics.c
M statistics.h
Log Message:
-----------
core statistics: export a initialization checking function
* this allows statistics-dependent code to test initialization
* change all "shm_malloc" calls to "shm_malloc_unsafe"
* ultimately, memory allocators are now able to make use of core stats
(cherry picked from commit 42c3d383b1449af42a1ddfb91f4891f28fcbf50b)
Commit: 84d919faf0b84316db8a0870d85e4d45e4b0d5fd
https://github.com/OpenSIPS/opensips/commit/84d919faf0b84316db8a0870d85e4d45e4b0d5fd
Author: Liviu Chircu <liviu at opensips.org>
Date: 2014-04-01 (Tue, 01 Apr 2014)
Changed paths:
M main.c
M mem/hp_malloc.c
M mem/hp_malloc.h
M mem/hp_malloc_stats.c
M mem/hp_malloc_stats.h
M mem/mem.c
M mem/mem.h
M mem/shm_mem.c
M mem/shm_mem.h
Log Message:
-----------
hp malloc: differentiate the pkg and shm statistics code
When HP_MALLOC is defined:
* shm statistics are based on 32/64-bit atomic counters
- the former logic is still available with HP_MALLOC_FAST_STATS
- however, stat aggregation and the shm threshold checks should be done by a single process
* pkg statistics are implemented similarly to the other allocators
* also re-introduce fragment coalescing for pkg memory
(cherry-picked from commit 268955ba5af0306e849877aecc87967a0b6c7c3e)
Compare: https://github.com/OpenSIPS/opensips/compare/30654e5ba3f4...84d919faf0b8
More information about the Devel
mailing list