Re: direct-io regression [Was: How to track down abysmal performance ata - raid1 - crypto - vg/lv - xfs]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dominik Brodowski
Date: Thursday, August 5, 2010 - 8:35 am

Hey,

On Thu, Aug 05, 2010 at 07:32:40AM -0400, Chris Mason wrote:

Well, that's what it does:

# $ dd if=/dev/mapper/vg0-home_crypt of=/dev/zero iflag=direct bs=8k count=131072 seek=131072
# 131072+0 records in
# 131072+0 records out
# 1073741824 bytes (1.1 GB) copied, 62.0177 s, 17.3 MB/s

On Thu, Aug 05, 2010 at 08:36:49AM -0400, Josef Bacik wrote:

For this test, I'm not doing dio on filesystem level, but on block level
(/dev/mapper/vg0-*_crypt). It seems that dm-crypt creates such offending
holes, which cause this huge performance drop.


Tested-by: Dominik Brodowski <linux@dominikbrodowski.net>

With this fix, I get proper speeds when doing dio reads from
/dev/mapper/vg0-*_crypt; see the 17.3 MB/s above. Most strangely,
also accesing /dev/mapper/vg0-* (un-encrypted) and the raw
device at /dev/sda* speeds up (to up to 28 MB/s). Was only seeing around
16 to 18 MB/s without this patch for unencrypted access.


Well, it seems to cause -- at least on my notebook -- a 150% regression on
unencrypted LVM2 access; and this > 400% on encrypted LVM2 access...


There is, probably. But the fix you propose helps a lot, already.

Thanks & best,

	Dominik
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: direct-io regression [Was: How to track down abysmal p ..., Dominik Brodowski, (Thu Aug 5, 8:35 am)
Performance impact of CONFIG_DEBUG? direct-io test case, Dominik Brodowski, (Thu Aug 5, 1:47 pm)
Performance impact of CONFIG_SCHED_MC? direct-io test case, Dominik Brodowski, (Thu Aug 5, 1:54 pm)