[PATCH v5 0/2] Implement support of strip_core functionality

Vladimir Davydov vdavydov.dev at gmail.com
Mon May 20 13:03:53 MSK 2019


On Fri, May 17, 2019 at 12:45:57AM +0300, Cyrill Gorcunov wrote:
> Volodya, could you please help with more intensive testing since I'm not sure
> how to fill memtx from console or some script yet.

Just type in the console or a script:

  -- alloc 1 GB for memtx tuple arena
  box.cfg{memtx_memory = 1024 * 1024 * 1024}

  -- create a test space
  s = box.schema.space.create('test')
  s:create_index('primary')

  -- fill it until we run out of memory
  for i = 1, math.huge do s:insert{i, string.rep('x', 100 * 1024)} end

  -- double the size of memtx arena by adding more slabs
  box.cfg{memtx_memory = 2 * 1024 * 1024 * 1024}

  -- fill them up too
  for i = 1, math.huge do s:insert{i, string.rep('x', 100 * 1024)} end

Then kill the tarantool with SIGSEGV to generate a core. The core size
should be considerably less than 2 GB with strip_core enabled.



More information about the Tarantool-patches mailing list