Tarantool development patches archive
 help / color / mirror / Atom feed
From: mechanik20051988 via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: v.shpilevoy@tarantool.org, alyapunov@tarantool.org
Cc: tarantool-patches@dev.tarantool.org
Subject: [Tarantool-patches] [PATCH v2 0/5] Choose allocator for memtx
Date: Wed, 20 Jan 2021 10:53:38 +0300	[thread overview]
Message-ID: <cover.1611073501.git.mechanik20051988@tarantool.org> (raw)

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

Changes in v2:
	Change checkpoint_interval option in test to manually calling box.snapshot()
	Separate third commit on two part (now commit 3 ad 5)
	Write detailed commit messages

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 template tuple allocation, based on allocator type
	4. Fourth patch add system allocator based on malloc and free
	5. implement api for memory allocator selection

	In accordance with the comments on previous patches i use box.snapshot() manually in test
	instead of using checkpoint_interval option. Also i separate third commit on two parts (3 and 5),
	and write detailed commit messages that answer the questions in the comments on previous patches  

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

 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         |   8 +
 test/box/choose_memtx_allocator.result      | 147 +++++++++
 test/box/choose_memtx_allocator.test.lua    |  46 +++
 24 files changed, 1419 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


             reply	other threads:[~2021-01-20  7:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-20  7:53 mechanik20051988 via Tarantool-patches [this message]
2021-01-20  7:53 ` [Tarantool-patches] [PATCH v2 1/5] test: add performance test for memtx allocator mechanik20051988 via Tarantool-patches
2021-01-20  7:53 ` [Tarantool-patches] [PATCH v2 2/5] memtx: changed some memtx files from .c to .cc mechanik20051988 via Tarantool-patches
2021-01-20  7:53 ` [Tarantool-patches] [PATCH v2 3/5] memtx: implement template tuple allocation mechanik20051988 via Tarantool-patches
2021-01-20  7:53 ` [Tarantool-patches] [PATCH v2 4/5] Implement system allocator, based on malloc mechanik20051988 via Tarantool-patches
2021-01-20  7:53 ` [Tarantool-patches] [PATCH v2 5/5] memtx: implement api for memory allocator selection mechanik20051988 via Tarantool-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1611073501.git.mechanik20051988@tarantool.org \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=alyapunov@tarantool.org \
    --cc=mechanik20051988@tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v2 0/5] Choose allocator for memtx' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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