Tarantool development patches archive
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: tml <tarantool-patches@freelists.org>
Subject: Re: [PATCH v2] core/coio_file: Use eio_sendfile_sync instead of a chunk mode
Date: Tue, 16 Apr 2019 20:51:33 +0300	[thread overview]
Message-ID: <20190416175133.GK13702@uranus.lan> (raw)
In-Reply-To: <20190416173510.4nxxdsqg7drrlnhe@esperanza>

On Tue, Apr 16, 2019 at 08:35:10PM +0300, Vladimir Davydov wrote:
> >  - Proper testing of large files remains opened: current CI engine
> >    is hardly capable of managing it. I tested 200M files with manual
> >    splitting (to make sure the offsets do really work) but for longterm
> >    we still might need to invent something
> 
> We could use an error injection to reduce the size of data fed to
> sendfile in one go.

I don't remember if I already asked -- mind to point me where our
error injection examples are?

> >  - Another question which remains -- what to do with partially copied
> >    files, neither code before the patch or after do not clean up parts
> >    of copied data. Should not we clean it up on error path? If yes then
> >    I'll prepare another patch on top.
> 
> Nobody complained => I don't think we need to do anything about it.

ok

> > +	for (left = st.st_size, pos = 0; left > 0;) {
> 
> st.st_size has time off_t while left has type ssize_t. They differ on
> 32-bit machines AFAIR.

Well, not exactly. It depends on __USE_FILE_OFFSET64 definition
but true, better to be on a safe side and use off_t type instead.
Thanks, will update!

  reply	other threads:[~2019-04-16 17:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-15 21:14 Cyrill Gorcunov
2019-04-16 17:35 ` Vladimir Davydov
2019-04-16 17:51   ` Cyrill Gorcunov [this message]
2019-04-17  8:47     ` 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=20190416175133.GK13702@uranus.lan \
    --to=gorcunov@gmail.com \
    --cc=tarantool-patches@freelists.org \
    --cc=vdavydov.dev@gmail.com \
    --subject='Re: [PATCH v2] core/coio_file: Use eio_sendfile_sync instead of a chunk mode' \
    /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