[OpenSIPS-Devel] [OpenSIPS/opensips] 2fd6fa: mem/module_info: adapt code to shared memory initi...

Razvan Crainea razvan at opensips.org
Wed Jan 18 08:01:52 EST 2017


  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 2fd6fadd3b8ef93e2057138cd86b8779177faa8e
      https://github.com/OpenSIPS/opensips/commit/2fd6fadd3b8ef93e2057138cd86b8779177faa8e
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M cfg.y
    M mem/module_info.c
    M mem/module_info.h
    M mem/shm_mem.c

  Log Message:
  -----------
  mem/module_info: adapt code to shared memory initialisation change

the statistics vector is exteded as more memory groups are declared
if SHM_SHOW_DEFAULT_GROUP is defined allocations done util grups are
defined are added to the default group

(cherry picked from commit 20ebdb0597e958cfa1b998d3d5a98f6f26e13a98)


  Commit: b5131232dd4f410f0ecf801cfd84a1e3604fb0ca
      https://github.com/OpenSIPS/opensips/commit/b5131232dd4f410f0ecf801cfd84a1e3604fb0ca
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M Makefile.conf.template
    M mem/module_info.c

  Log Message:
  -----------
  module_info.c: change obsolete flag

(cherry picked from commit db310d8b8c3efd62ccd0b7f7de4d142a366dd55b)


  Commit: f15d2f0b55419777d5f3fe7d9c650fcd5f90aa63
      https://github.com/OpenSIPS/opensips/commit/f15d2f0b55419777d5f3fe7d9c650fcd5f90aa63
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M mem/module_info.c
    M mem/module_info.h
    M mem/shm_mem.c

  Log Message:
  -----------
  module_info.c: change group reallocating policy

(cherry picked from commit e9c3b44bfb326441b60c4bc003228c75ce7bf27f)


  Commit: 122cb62e984c104b79610440b0e1bbe0282f058a
      https://github.com/OpenSIPS/opensips/commit/122cb62e984c104b79610440b0e1bbe0282f058a
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M mem/f_malloc.c
    M mem/f_malloc.h
    M mem/hp_malloc.c
    M mem/hp_malloc.h
    M mem/q_malloc.c
    M mem/q_malloc.h
    M mem/shm_mem.h

  Log Message:
  -----------
  shm-extra-stats: bug fix

-when memory was allocated from a module and freed from another module (or the core)
the module shared memory statistics didnt properly reflect that and a underflow was
generated
-added a index in every memory fragment that indicates the module where it was allocated
so the free will decrease the statistic of the same module

(cherry picked from commit cb8d111ddb6a7e5c0c73b84bf03b942941092f22)


  Commit: e2a2cd59ec98395edab52eebcf8417a143b5c928
      https://github.com/OpenSIPS/opensips/commit/e2a2cd59ec98395edab52eebcf8417a143b5c928
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M mem/f_malloc.c
    M mem/hp_malloc.c
    M mem/module_info.c
    M mem/shm_mem.c
    M mem/shm_mem.h

  Log Message:
  -----------
  module_shm_stats: change initialization values

when the first group is created if the 'core' or the default
group is defined the values are initialized with the ones stored
int the shm_block structures

fix compile warning in *_malloc.c (pointers inot casted)

(cherry picked from commit 9766d69ea013efbbfebebc31ff78ce8d26b58806)


  Commit: d3d03d0655567ede4c18fda7792665ee9c1ecab1
      https://github.com/OpenSIPS/opensips/commit/d3d03d0655567ede4c18fda7792665ee9c1ecab1
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M mem/shm_mem.c
    M statistics.c
    M statistics.h

  Log Message:
  -----------
  statistics: bug fix

proper handle freeing of the modules shared memory statistics,
change the STAT_ONLY_REGISTER flag to STAT_NO_ALLOC, as it now also blocks
the stats collector from freeing the generated statistics individually,
the freeing is done when the shared memory is destroyed at opensips
shutdown

(cherry picked from commit 7794755731fb648e547e0b20a7baa3e7eb1f312a)


  Commit: b8a3fd7050ab24167a00d9eac4abaa8c43d57292
      https://github.com/OpenSIPS/opensips/commit/b8a3fd7050ab24167a00d9eac4abaa8c43d57292
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M mem/f_malloc.c
    M mem/f_malloc.h
    M mem/hp_malloc.c
    M mem/hp_malloc.h
    M mem/module_info.c
    M mem/module_info.h
    M mem/q_malloc.c
    M mem/q_malloc.h
    M mem/shm_mem.c

  Log Message:
  -----------
  shm_module_stats: add maximum group usage

a new statistic was added for every module group declared which shows the
maximum real memory used by that module

fix a bug that generated underflows in the statistics, when the 'core' group
is declared all the fragments from the memory are marked with its new index,
before the fragments allocated before the declaration were mismanaged when freed
or rellocated

(cherry picked from commit e2a6df0c16c42807483879bddef674946a891bfe)


  Commit: 7f18be90e87240c0011c91e6b08315aeb6289858
      https://github.com/OpenSIPS/opensips/commit/7f18be90e87240c0011c91e6b08315aeb6289858
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M Makefile.rules

  Log Message:
  -----------
  Makefile.rules: fix generate-mem-stats escaping

(cherry picked from commit 506c15d417bdfb941348dce9aaa7d3fe1a3acd31)
(cherry picked from commit 03f57ed3fea65f7158452ec15b182d25f067af7f)


  Commit: 4a737158e89a22031032ad9333f7eedfb8e18144
      https://github.com/OpenSIPS/opensips/commit/4a737158e89a22031032ad9333f7eedfb8e18144
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M Makefile.rules
    M mem/module_info.c
    M mem/module_info.h

  Log Message:
  -----------
  guard module_info.* with SHM_EXTRA_STATS

These files are only used when extra statistics are used

(cherry picked from commit 6a9bf79f76d3638cb5f839565234f3417bc7c144)


  Commit: b2cdce2832ed2252edfd967752a263d088a1956e
      https://github.com/OpenSIPS/opensips/commit/b2cdce2832ed2252edfd967752a263d088a1956e
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M Makefile.rules

  Log Message:
  -----------
  mem_stats.h: properly end define

(cherry picked from commit b2aec994a3141bcedecf8c76423cf4d2d8124dbf)


  Commit: b0a3f27a1e262a2bf5d00fd9f2c5d76ca6864966
      https://github.com/OpenSIPS/opensips/commit/b0a3f27a1e262a2bf5d00fd9f2c5d76ca6864966
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2017-01-18 (Wed, 18 Jan 2017)

  Changed paths:
    M mem/q_malloc.c

  Log Message:
  -----------
  q_mem: fix compile warning for fragemnt computation


Compare: https://github.com/OpenSIPS/opensips/compare/b113d4eaa6de...b0a3f27a1e26


More information about the Devel mailing list