Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/4] Choose allocator mor memtx
@ 2020-12-29 11:03 mechanik20051988
  2020-12-29 11:03 ` [Tarantool-patches] [PATCH 1/4] test: add performance test for memtx allocator mechanik20051988
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: mechanik20051988 @ 2020-12-29 11:03 UTC (permalink / raw)
  To: v.shpilevoy, alyapunov; +Cc: tarantool-patches

Branch: https://github.com/tarantool/tarantool/tree/mechanik20051988/gh-5419-choose-allocator-for-memtx-cpp-14
        (Do not pay attention to the number 14 in the branch header)
Issue: https://github.com/tarantool/tarantool/issues/5419
Pull request: https://github.com/tarantool/tarantool/pull/5670
About patches:
	1. First patch add performance test for memtx allocator. You can copy perf folder 
	to master branch and compare performance.
	2. Second patch convert some *.c files to *.cc files. 
	   This is the preparation for the patch with allocator choise
	3. Third patch implement api for allocator choise
	4. Fourth patch add system allocator based on malloc and free

This is a completely redesigned patch, however I would like to provide answers 
to some questions from the previous patch that may overlap

1. malloc_usable_size / malloc_size has different headers in different OS, so i use
   TARGET_OS_*** to check this in source file not in CMakeLists
2. I test snapshot using checkpoint_interval=5 option, several snapshots
   are created during my test

mechanik20051988 (4):
  test: add performance test for memtx allocator.
  memtx: changed some memtx files from .c to .cc
  memtx: implement api for memory allocator selection
  Implement system allocator, based on malloc

 perf/allocator_perf.test.lua                |  34 +++
 src/box/CMakeLists.txt                      |   8 +-
 src/box/box.cc                              |   3 +
 src/box/field_map.h                         |   8 +
 src/box/lua/init.c                          |   2 +-
 src/box/lua/load_cfg.lua                    |   2 +
 src/box/lua/slab.c                          | 214 +------------
 src/box/lua/slab.cc                         | 320 ++++++++++++++++++++
 src/box/lua/slab.h                          |   1 +
 src/box/{memtx_engine.c => memtx_engine.cc} | 177 ++++++++---
 src/box/memtx_engine.h                      |  53 ++--
 src/box/{memtx_space.c => memtx_space.cc}   |  94 +++---
 src/box/small_allocator.cc                  |  74 +++++
 src/box/small_allocator.h                   |  58 ++++
 src/box/sysalloc.c                          | 210 +++++++++++++
 src/box/sysalloc.h                          | 145 +++++++++
 src/box/system_allocator.cc                 |  68 +++++
 src/box/system_allocator.h                  |  54 ++++
 test/app-tap/init_script.result             |   1 +
 test/box/admin.result                       |   4 +-
 test/box/cfg.result                         |   8 +-
 test/box/choose_memtx_allocator.lua         |   9 +
 test/box/choose_memtx_allocator.result      | 139 +++++++++
 test/box/choose_memtx_allocator.test.lua    |  44 +++
 24 files changed, 1410 insertions(+), 320 deletions(-)
 create mode 100755 perf/allocator_perf.test.lua
 create mode 100644 src/box/lua/slab.cc
 rename src/box/{memtx_engine.c => memtx_engine.cc} (89%)
 rename src/box/{memtx_space.c => memtx_space.cc} (93%)
 create mode 100644 src/box/small_allocator.cc
 create mode 100644 src/box/small_allocator.h
 create mode 100644 src/box/sysalloc.c
 create mode 100644 src/box/sysalloc.h
 create mode 100644 src/box/system_allocator.cc
 create mode 100644 src/box/system_allocator.h
 create mode 100644 test/box/choose_memtx_allocator.lua
 create mode 100644 test/box/choose_memtx_allocator.result
 create mode 100644 test/box/choose_memtx_allocator.test.lua

-- 
2.20.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-10 15:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-29 11:03 [Tarantool-patches] [PATCH 0/4] Choose allocator mor memtx mechanik20051988
2020-12-29 11:03 ` [Tarantool-patches] [PATCH 1/4] test: add performance test for memtx allocator mechanik20051988
2020-12-29 11:03 ` [Tarantool-patches] [PATCH 2/4] memtx: changed some memtx files from .c to .cc mechanik20051988
2020-12-29 11:03 ` [Tarantool-patches] [PATCH 3/4] memtx: implement api for memory allocator selection mechanik20051988
2021-01-10 13:56   ` Vladislav Shpilevoy via Tarantool-patches
2020-12-29 11:03 ` [Tarantool-patches] [PATCH 4/4] Implement system allocator, based on malloc mechanik20051988
2021-01-10 13:56   ` Vladislav Shpilevoy via Tarantool-patches
2021-01-10 13:55 ` [Tarantool-patches] [PATCH 0/4] Choose allocator mor memtx Vladislav Shpilevoy via Tarantool-patches
2021-01-10 14:36 ` Vladislav Shpilevoy via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox