[OpenSIPS-Devel] [OpenSIPS/opensips] b68cfb: hp malloc statistics: fix incorrect stats when con...
Liviu Chircu
liviu at opensips.org
Tue Apr 1 17:24:27 CEST 2014
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: b68cfbab2716efe9bdcc3bfd1724b228ce84bda2
https://github.com/OpenSIPS/opensips/commit/b68cfbab2716efe9bdcc3bfd1724b228ce84bda2
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
Commit: 42c3d383b1449af42a1ddfb91f4891f28fcbf50b
https://github.com/OpenSIPS/opensips/commit/42c3d383b1449af42a1ddfb91f4891f28fcbf50b
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
Commit: 268955ba5af0306e849877aecc87967a0b6c7c3e
https://github.com/OpenSIPS/opensips/commit/268955ba5af0306e849877aecc87967a0b6c7c3e
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
Compare: https://github.com/OpenSIPS/opensips/compare/b72f49f10019...268955ba5af0
More information about the Devel
mailing list