From: Milan Broz <mbroz@redhat.com>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: Michael Zugelder <michaelzugelder@googlemail.com>,
linux-net@vger.kernel.org,
device-mapper development <dm-devel@redhat.com>,
Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH] PROBLEM: SSD access time with dm-crypt is way too high
Date: Mon, 10 Jan 2011 18:50:32 +0100 [thread overview]
Message-ID: <4D2B46E8.7070501@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1101101216430.26990@hs20-bc2-1.build.redhat.com>
On 01/10/2011 06:19 PM, Mikulas Patocka wrote:
> Try this patch. I coded it long time ago, but it was forgotten somehow.
No, it was not forgotten, I just do not like this approach :)
> + /*
> + * The last io submitted to io_queue and crypt_queue.
> + * This pointers are not protected by any locks and thus must not be
> + * dereferenced --- they may contain garbage. The only allowed operation
> + * is to compare these pointers with current io being processed. If they
> + * match, the block device queue should be unplugged.
> + */
> + struct dm_crypt_io *io_queue_last_io;
> + struct dm_crypt_io *crypt_queue_last_io;
We can now process ios in parallel on different CPUs, that code will
rewrite the context struct on every IO and at least it will cause cache bouncing.
(it will not apply on current code anyway, see patches in linux-next)
And I think it can kill performance is some cases (if the requests are submitted
such way that you will call unplug after every io.)
We need something clever here - I wonder if fixing the reverted fb1e753 can
help here....
Milan
next prev parent reply other threads:[~2011-01-10 17:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-09 13:35 PROBLEM: SSD access time with dm-crypt is way too high Michael Zugelder
2011-01-09 14:05 ` [dm-devel] " Milan Broz
2011-01-10 17:19 ` [PATCH] " Mikulas Patocka
2011-01-10 17:50 ` Milan Broz [this message]
2011-01-10 18:47 ` [dm-devel] " Christoph Hellwig
2011-01-10 20:06 ` Michael Zugelder
2011-01-11 12:07 ` Yakov Hrebtov
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=4D2B46E8.7070501@redhat.com \
--to=mbroz@redhat.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=linux-net@vger.kernel.org \
--cc=michaelzugelder@googlemail.com \
--cc=mpatocka@redhat.com \
/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.