[OpenSIPS-Devel] [OpenSIPS/opensips] 5663e4: hp malloc: fix shm statistics

Liviu Chircu liviu at opensips.org
Thu Mar 27 15:43:20 CET 2014


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5663e4129bb2a6aced49715a57d50406e0968a6f
      https://github.com/OpenSIPS/opensips/commit/5663e4129bb2a6aced49715a57d50406e0968a6f
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2014-03-27 (Thu, 27 Mar 2014)

  Changed paths:
    M mem/hp_malloc.c
    M mem/hp_malloc.h
    A mem/hp_malloc_stats.c
    A mem/hp_malloc_stats.h
    M mem/shm_mem.c

  Log Message:
  -----------
  hp malloc: fix shm statistics

	* processes now update fragment statistics for each bucket
	* the MI workers iterate and aggregate all memory information
	* the built-in maximum sampling rate is 200ms
		- repeating a fetch in < 200ms will return the same results
	* this patch also corrects a rare deadlock in hp_realloc
		- hp_realloc "growth" may deadlock with hp_malloc "shrink"
		- the best solution is to drop the "growth" realloc operation
		- this also merges well with the allocator fragmentation requirements
(cherry picked from commit 9ad2947eed7add4510b1fa388004524cc50d5bab)




More information about the Devel mailing list