All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Gernot Hillier <gernot.hillier@siemens.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: unexpected sync delays in dpkg for small pre-allocated files on ext4
Date: Tue, 24 May 2016 19:13:28 -0400	[thread overview]
Message-ID: <20160524231328.GB387@thunk.org> (raw)
In-Reply-To: <57448A5D.4050805@siemens.com>

On Tue, May 24, 2016 at 07:07:41PM +0200, Gernot Hillier wrote:
> 
> To me, the problem looks comparable to
> https://bugzilla.kernel.org/show_bug.cgi?id=56821 (even if we don't see
> a full hang and there's no RAID involved for us), so a closer look on
> the SCSI layer or driver might be the next step?

What I would suggest is to create a small test case which compares the
time it takes to allocate 1 megabyte of memory, zero it, and then
write one megabytes of zeros using the write(2) system call.  Then try
writing one megabytes of zero using the BLKZEROOUT ioctl.

I'm pretty sure you'll see same issue with BLKZEROOUT ioctl, but at
this point, we'll be able to send bug reports to the SCSI and block
layer developers with something that makes this very clear that it has
nothing to do with ext4.

This way we can also do some differential diagnosis; given that I'm
not seeing this complaint from most people, I suspect it will be a
matter of adding some specific devices to a blacklist (so that even
though the SCSI device claims to support WRITE SAME, we need to
disable it because it has a really lousy implementation of the SCSI
WRITE SAME command).

Cheers,

					- Ted



  reply	other threads:[~2016-05-26  0:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24 17:07 unexpected sync delays in dpkg for small pre-allocated files on ext4 Gernot Hillier
2016-05-24 23:13 ` Theodore Ts'o [this message]
2016-05-30  8:27   ` Gernot Hillier
2016-05-31  0:21     ` Dave Chinner
2016-06-01  9:44       ` Gernot Hillier
2016-06-01 13:17         ` Gernot Hillier
2016-06-01 14:12           ` Theodore Ts'o
2016-06-02 16:23             ` Gernot Hillier
2016-07-13 13:57             ` Gernot Hillier
2016-05-26  2:20 ` Dave Chinner
2016-05-26  7:02   ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2016-05-30 19:04 Jun He

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=20160524231328.GB387@thunk.org \
    --to=tytso@mit.edu \
    --cc=gernot.hillier@siemens.com \
    --cc=linux-ext4@vger.kernel.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.