Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: Konstantin Osipov <kostja@tarantool.org>
Cc: tarantool-patches@freelists.org
Subject: Re: [PATCH] memtx: don't delay deletion of temporary tuples during snapshot
Date: Fri, 8 Jun 2018 09:39:15 +0300	[thread overview]
Message-ID: <20180608063915.6r6rzuutlr4cpob5@esperanza> (raw)
In-Reply-To: <20180608035636.GG6866@chai>

On Fri, Jun 08, 2018 at 06:56:36AM +0300, Konstantin Osipov wrote:
> * Vladimir Davydov <vdavydov.dev@gmail.com> [18/06/04 23:48]:
> > Since tuples stored in temporary spaces are never written to disk, we
> > can always delete them immediately, even when a snapshot is in progress.
> > 
> > Closes #3432
> 
> OK to push.

Where to? 1.9 or 1.10?

The ticket is on 1.10 milestone, but there's a comment that says it
should be fixed in 1.9 ...

> > https://github.com/tarantool/tarantool/issues/3432
> > https://github.com/tarantool/tarantool/commits/gh-3432-memtx-dont-delay-free-temp-tuples

> > @@ -1309,3 +1311,97 @@ s:select()
> >  s:drop()
> >  ---
> >  ...
> > +for i = 1, 100 do box.space.test:insert{i} end
> > +---
> > +...
> > +-- Create a temporary space.
> > +count = 500
> 
> Please is there a chance this test writes less than 50MB of data
> to the database? A couple of order of magnitudes would be really
> nice.

The problem is tarantool won't start if the memory limit is < 40 MB.
So if we want to use less memory in this test, say 10 MB, we will have
to set memory limit to 40 + 10 MB, but that would raise questions, as
10 + 10 MB should fit in 50 MB. So I decided to insert 50 MB of data and
set limit 100 MB - this is clear, because 50 + 50 MB won't fit in 100 MB
no matter how much memory the core needs to start.

Anyway, the test runs with wal_mode=none so it should be fast.

  reply	other threads:[~2018-06-08  6:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-04 11:42 Vladimir Davydov
2018-06-08  3:56 ` Konstantin Osipov
2018-06-08  6:39   ` Vladimir Davydov [this message]
2018-06-14  8:23     ` Vladimir Davydov
2018-06-14 12:57       ` Konstantin Osipov
2018-06-14 13:29         ` Vladimir Davydov

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=20180608063915.6r6rzuutlr4cpob5@esperanza \
    --to=vdavydov.dev@gmail.com \
    --cc=kostja@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [PATCH] memtx: don'\''t delay deletion of temporary tuples during snapshot' \
    /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