Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: tarantool-patches@freelists.org
Subject: Re: [PATCH 0/5] Hand over key lookup in a page to vinyl reader thread
Date: Thu, 30 May 2019 11:42:36 +0300	[thread overview]
Message-ID: <20190530084236.vnigc6vufmyl45o6@esperanza> (raw)
In-Reply-To: <cover.1559142561.git.vdavydov.dev@gmail.com>

On Wed, May 29, 2019 at 06:12:46PM +0300, Vladimir Davydov wrote:
> Vladimir Davydov (5):
>   vinyl: factor out function to lookup key in page
>   vinyl: pass page info by reference to reader thread
>   vinyl: encapsulate reader thread selection logic in a helper function
>   vinyl: do not allow to cancel a fiber reading a page
>   vinyl: lookup key in reader thread

Pushed to master after adding fiber_testcancel and rewriting the comment
to patch 4 as follows:

    vinyl: do not allow to cancel a fiber reading a page
    
    To handle fiber cancellation during page read we need to pin all objects
    referenced by vy_page_read_task. Currently, there's the only such
    object, vy_run. It has reference counting so pinning it is trivial.
    However, to move page lookup to a reader thread, we need to also
    reference key def, tuple format, and key. Format and key have reference
    counting, but key def doesn't - we typically copy it. Copying it in this
    case is too heavy.
    
    Actually, cancelling a fiber manually or on timeout while it's reading
    disk doesn't make much sense with PCIE attached flash drives. It used to
    be reasonable with rotating disks, since a rotating disk controller
    could retry reading a block indefinitely on read failure. It is still
    relevant to Network Attached Storage. On the other hand, NAS has never
    been tested, and what isn't tested, can and should be removed. For
    complex SQL queries we'll be forced to rethink timeout handling anyway.
    
    That being said, let's simply drop this functionality.

  parent reply	other threads:[~2019-05-30  8:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-29 15:12 Vladimir Davydov
2019-05-29 15:12 ` [PATCH 1/5] vinyl: factor out function to lookup key in page Vladimir Davydov
2019-05-29 18:16   ` [tarantool-patches] " Konstantin Osipov
2019-05-29 15:12 ` [PATCH 2/5] vinyl: pass page info by reference to reader thread Vladimir Davydov
2019-05-29 18:16   ` [tarantool-patches] " Konstantin Osipov
2019-05-29 15:12 ` [PATCH 3/5] vinyl: encapsulate reader thread selection logic in a helper function Vladimir Davydov
2019-05-29 18:24   ` [tarantool-patches] " Konstantin Osipov
2019-05-29 15:12 ` [PATCH 4/5] vinyl: do not allow to cancel a fiber reading a page Vladimir Davydov
2019-05-29 18:35   ` [tarantool-patches] " Konstantin Osipov
2019-05-29 15:12 ` [PATCH 5/5] vinyl: lookup key in reader thread Vladimir Davydov
2019-05-29 18:41   ` [tarantool-patches] " Konstantin Osipov
2019-05-30  8:42 ` Vladimir Davydov [this message]
2019-05-30 14:20   ` [PATCH 0/5] Hand over key lookup in a page to vinyl " 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=20190530084236.vnigc6vufmyl45o6@esperanza \
    --to=vdavydov.dev@gmail.com \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [PATCH 0/5] Hand over key lookup in a page to vinyl reader thread' \
    /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