[OpenSIPS-Devel] [OpenSIPS/opensips] 67bb6e: HP_MALLOC: Fine-tune the "frag split size" constants

Liviu Chircu noreply at github.com
Wed Mar 2 09:00:20 UTC 2022


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 67bb6e2cf2dff01214f6f1a87374e17195963943
      https://github.com/OpenSIPS/opensips/commit/67bb6e2cf2dff01214f6f1a87374e17195963943
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-03-02 (Wed, 02 Mar 2022)

  Changed paths:
    M mem/hp_malloc.c

  Log Message:
  -----------
  HP_MALLOC: Fine-tune the "frag split size" constants

It seems that "split on 4096 or larger" is too large a value, leading to
fragmentation issues on typical 1G - 4G SHM pools.

With this patch, HP_MALLOC will visibly use less shared memory, but will
also split fragments more often.

(cherry picked from commit 043d4f31d084560681733358438e5cb13926f84d)





More information about the Devel mailing list