I know that for custom applications there is a distributor, which processes a large number of small blocks on the HP-UX link text and on Windows XP A lot of low fragmentation . The distributor can be configured on HP-UX, and in Windows XP it considers a block smaller than 16K small.
My problem is that I can not find any information about this type of distributor for user programs running on Linux (actually RedHat Linux). If there is such a allocator, I really would like to find what maximum block size it can handle.
<h / "> UpdateI found jemalloc ( http://www.canonware.com/jemalloc/ ). It processes small, large and huge blocks: http://www.canonware.com/download/jemalloc/jemalloc-latest /doc/jemalloc.html#size_classes .
Redhat Linux or any Linux-based distributions use DL-Malloc ( http://gee.cs.oswego.edu/dl/html/malloc.html ).
For custom applications, as Kirill pointed out, it is better to use separate memory allocators if fragmentation is greater due to smaller blocks.
, / ++, . (http://en.wikipedia.org/wiki/Placement_syntax)
, Boost.Pool. pool, . pool_alloc, .
pool
pool_alloc
mallopt glibc. , , .
, Hoard heap , " " [1]:
. , b ( b 1) , b. , .
, , .
TCMalloc: Thread-Caching Malloc
Linux .
Source: https://habr.com/ru/post/1779583/More articles:What is the most efficient string replacement algorithm? - algorithmUse the xslt replace function to replace a word with an element - xslthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1779579/how-to-assign-custom-css-class-to-arbitrary-arbitrary-rows-of-hdatatable&usg=ALkJrhh2ZhTMaZpiGO8lJPLTvY9-S586zAscale9Grid and Bitmaps - do they work together or not? - flashCan I check if the format specifier is valid for this data type? - c #How to launch a WinForms keyboard shortcut application? - c #Ask user to enter and cancel invitation after waiting x seconds - scriptingIt was recommended to use the same IV in the implementation of AES - cryptographyHow to redirect users using HTTP response - javaHow to detect power system events such as suspension, hibernation, etc. - linuxAll Articles