[OpenSIPS-Devel] [OpenSIPS/opensips] 9ad294: hp malloc: fix shm statistics

Liviu Chircu liviu at opensips.org
Thu Mar 27 15:42:44 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 9ad2947eed7add4510b1fa388004524cc50d5bab
      https://github.com/OpenSIPS/opensips/commit/9ad2947eed7add4510b1fa388004524cc50d5bab
  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




More information about the Devel mailing list