From: Konstantin Osipov <kostja@tarantool.org> To: tarantool-patches@freelists.org Cc: Georgy Kirichenko <georgy@tarantool.org> Subject: [tarantool-patches] Re: [PATCH 1/7] Refactoring: wal writer fiber and queue Date: Fri, 16 Aug 2019 16:53:32 +0300 [thread overview] Message-ID: <20190816135331.GB18643@atlas> (raw) In-Reply-To: <921a4cbb0f93c43954e4b18a0d61ac6dd4a563ea.1565676868.git.georgy@tarantool.org> * Georgy Kirichenko <georgy@tarantool.org> [19/08/13 10:30]: > As wal processes all writes in a cbus loop fiber it isn't possible to > yield while write. The patch introduces a wal write queue and a wal write > fiber which fetch a batch from queue and writes it out. Also checkpoint > requests are going now throw the queue to synchronize a tx checkpoint though > status with wal. I don't understand this patch. First, WAL already runs in a fiber, and you can yield. cord_costart creates a new fiber, please check out the implementation. this is done by this commit: commit f4625e64eb99c17910d3f0bcd323e5d82b6d5b31 Author: Vladimir Davydov <vdavydov.dev@gmail.com> Date: Wed Jul 4 20:20:55 2018 +0300 vinyl: use cbus for communication between scheduler and worker threads We need cbus for forwarding deferred DELETE statements generated in a worker thread during primary index compaction to the tx thread where they can be inserted into secondary indexes. Since pthread mutex/cond and cbus are incompatible by their nature, let's rework communication channel between the tx and worker threads using cbus. Needed for #2129 Check out the commit, it changes cord_start() to cord_costart(). Second, checkpoint message already flushed the queue. So I don't understand why you need a switch over message type. Let's discuss online. -- Konstantin Osipov, Moscow, Russia
next prev parent reply other threads:[~2019-08-16 13:53 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-08-13 6:27 [tarantool-patches] [PATCH 0/7] Replication: In-memory replication Georgy Kirichenko 2019-08-13 6:27 ` [tarantool-patches] [PATCH 1/7] Refactoring: wal writer fiber and queue Georgy Kirichenko 2019-08-16 13:53 ` Konstantin Osipov [this message] 2019-08-20 10:57 ` [tarantool-patches] " Георгий Кириченко 2019-08-21 10:18 ` [tarantool-patches] " Vladimir Davydov 2019-08-13 6:27 ` [tarantool-patches] [PATCH 2/7] Refactoring: Track wal files using gc state Georgy Kirichenko 2019-08-21 10:44 ` Vladimir Davydov 2019-08-13 6:27 ` [tarantool-patches] [PATCH 3/7] Replication: Relay does not rely on xlog boundaries Georgy Kirichenko 2019-08-21 11:35 ` Vladimir Davydov 2019-08-13 6:27 ` [tarantool-patches] [PATCH 4/7] Replication: wal memory buffer Georgy Kirichenko 2019-08-21 11:57 ` Vladimir Davydov 2019-08-13 6:27 ` [tarantool-patches] [PATCH 5/7] Replication: in memory replication Georgy Kirichenko 2019-08-21 13:52 ` Vladimir Davydov 2019-08-13 6:27 ` [tarantool-patches] [PATCH 6/7] Refactoring: remove wal_watcher routines Georgy Kirichenko 2019-08-21 13:52 ` Vladimir Davydov 2019-08-13 6:27 ` [tarantool-patches] [PATCH 7/7] Refactoring: get rid of on_close_log Georgy Kirichenko 2019-08-21 13:52 ` Vladimir Davydov 2019-08-16 13:47 ` [tarantool-patches] Re: [PATCH 0/7] Replication: In-memory replication Konstantin Osipov
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=20190816135331.GB18643@atlas \ --to=kostja@tarantool.org \ --cc=georgy@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [PATCH 1/7] Refactoring: wal writer fiber and queue' \ /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