Re: [RFC] [PATCH 2/4] dio: add page locking for direct I/O

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Naoya Horiguchi
Date: Tuesday, August 17, 2010 - 1:17 am

On Mon, Aug 16, 2010 at 09:20:05AM -0400, Jeff Moyer wrote:

Thank you for information.

I measured direct I/O performance with small blocksize or misaligned setup.
The result is shown here:

                                 average bandwidth
                        with patchset       2.6.35-rc3     diff
    bs=512                1,412KB/s          1,789KB/s    -26.6%
    bs=1k                 2,973KB/s          3,440KB/s    -13.6%
    bs=2k                 6,895KB/s          6,519KB/s     +5.7%
    bs=4k                13,357KB/s         13,264KB/s     +0.7%
    bs=4k misalign=2k    10,706KB/s         13,132KB/s    -18.5%

As you guessed, the performance obviously degrades when blocksize is small
and when I/O is misaligned.

BTW, from the discussion with Christoph I noticed my misunderstanding
about the necessity of additional page locking. It would seem that
without page locking there is no danger of racing between direct I/O and
page migration. So I retract this additional locking patch-set.

Thanks,
Naoya Horiguchi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/9] Hugepage migration (v2), Naoya Horiguchi, (Tue Aug 10, 2:27 am)
[PATCH 1/9] HWPOISON, hugetlb: move PG_HWPoison bit check, Naoya Horiguchi, (Tue Aug 10, 2:27 am)
[PATCH 3/9] hugetlb: rename hugepage allocation functions, Naoya Horiguchi, (Tue Aug 10, 2:27 am)
[PATCH 4/9] hugetlb: redefine hugepage copy functions, Naoya Horiguchi, (Tue Aug 10, 2:27 am)
[PATCH 6/9] HWPOISON, hugetlb: soft offlining for hugepage, Naoya Horiguchi, (Tue Aug 10, 2:27 am)
[PATCH 7/9] HWPOISON, hugetlb: fix unpoison for hugepage, Naoya Horiguchi, (Tue Aug 10, 2:27 am)
[PATCH 8/9] page-types.c: fix name of unpoison interface, Naoya Horiguchi, (Tue Aug 10, 2:27 am)
[PATCH 9/9] hugetlb: add corrupted hugepage counter, Naoya Horiguchi, (Tue Aug 10, 2:27 am)
Re: [PATCH 0/9] Hugepage migration (v2), Christoph Lameter, (Wed Aug 11, 6:09 am)
Re: [PATCH 0/9] Hugepage migration (v2), Naoya Horiguchi, (Thu Aug 12, 12:53 am)
[RFC] [PATCH 2/4] dio: add page locking for direct I/O, Naoya Horiguchi, (Thu Aug 12, 12:59 am)
Re: [PATCH 0/9] Hugepage migration (v2), Christoph Lameter, (Fri Aug 13, 5:47 am)
Re: [RFC] [PATCH 2/4] dio: add page locking for direct I/O, Naoya Horiguchi, (Sun Aug 15, 7:07 pm)
Re: [PATCH 0/9] Hugepage migration (v2), Naoya Horiguchi, (Mon Aug 16, 2:19 am)
Re: [PATCH 0/9] Hugepage migration (v2), Christoph Lameter, (Mon Aug 16, 5:19 am)
Re: [PATCH 0/9] Hugepage migration (v2), Naoya Horiguchi, (Mon Aug 16, 7:37 pm)
Re: [RFC] [PATCH 2/4] dio: add page locking for direct I/O, Naoya Horiguchi, (Tue Aug 17, 1:17 am)
Re: [PATCH 0/9] Hugepage migration (v2), Naoya Horiguchi, (Tue Aug 17, 1:18 am)
Re: [PATCH 0/9] Hugepage migration (v2), Andi Kleen, (Tue Aug 17, 2:40 am)
Re: [RFC] [PATCH 2/4] dio: add page locking for direct I/O, Christoph Lameter, (Tue Aug 17, 9:41 am)
Re: [PATCH 0/9] Hugepage migration (v2), Naoya Horiguchi, (Wed Aug 18, 12:32 am)
Re: [PATCH 0/9] Hugepage migration (v2), Andi Kleen, (Wed Aug 18, 12:46 am)
Re: [PATCH 9/9] hugetlb: add corrupted hugepage counter, Wu Fengguang, (Wed Aug 18, 6:57 pm)
Re: [PATCH 1/9] HWPOISON, hugetlb: move PG_HWPoison bit check, Naoya Horiguchi, (Thu Aug 19, 12:55 am)
Re: [PATCH 9/9] hugetlb: add corrupted hugepage counter, Naoya Horiguchi, (Mon Aug 23, 8:01 pm)
Re: [PATCH 9/9] hugetlb: add corrupted hugepage counter, Wu Fengguang, (Mon Aug 23, 8:08 pm)