From: Matthew Wilcox <willy@infradead.org>
To: David Hildenbrand <david@redhat.com>
Cc: linux-mm@kvack.org, linux-block@vger.kernel.org,
Muchun Song <muchun.song@linux.dev>,
Jane Chu <jane.chu@oracle.com>,
Andres Freund <andres@anarazel.de>
Subject: Re: Direct I/O performance problems with 1GB pages
Date: Mon, 27 Jan 2025 16:56:07 +0000 [thread overview]
Message-ID: <Z5e6p4itt-g5Ys97@casper.infradead.org> (raw)
In-Reply-To: <503c29c8-bcc7-4a6c-ab2e-ebf238a9a1db@redhat.com>
On Mon, Jan 27, 2025 at 05:20:25PM +0100, David Hildenbrand wrote:
> > > 14.04% postgres [kernel.kallsyms] [k] try_grab_folio_fast
> > > |
> > > --14.04%--try_grab_folio_fast
> > > gup_fast_fallback
> > > |
> > > --13.85%--iov_iter_extract_pages
> > > bio_iov_iter_get_pages
> > > iomap_dio_bio_iter
> > > __iomap_dio_rw
> > > iomap_dio_rw
> > > xfs_file_dio_read
> > > xfs_file_read_iter
> > > __io_read
> > > io_read
> > > io_issue_sqe
> > > io_submit_sqes
> > > __do_sys_io_uring_enter
> > > do_syscall_64
>
> BTW, two things that come to mind:
>
>
> (1) We always fallback to GUP-slow, I wonder why. GUP-fast would go via
> try_grab_folio_fast().
I don't think we do?
iov_iter_extract_pages() calls
iov_iter_extract_user_pages() calls
pin_user_pages_fast() calls
gup_fast_fallback() calls
gup_fast() calls
gup_fast_pgd_range() calls
gup_fast_p4d_range() calls
gup_fast_pud_range() calls
gup_fast_pud_leaf() calls
try_grab_folio_fast() which is where we see the contention.
If that were to fail, we'd see contention in __get_user_pages_locked(),
right?
next prev parent reply other threads:[~2025-01-27 16:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-26 0:46 Matthew Wilcox
2025-01-27 14:09 ` David Hildenbrand
2025-01-27 16:02 ` Matthew Wilcox
2025-01-27 16:09 ` David Hildenbrand
2025-01-27 16:20 ` David Hildenbrand
2025-01-27 16:56 ` Matthew Wilcox [this message]
2025-01-27 16:59 ` David Hildenbrand
2025-01-27 18:21 ` Andres Freund
2025-01-27 18:54 ` Jens Axboe
2025-01-27 19:07 ` David Hildenbrand
2025-01-27 21:32 ` Pavel Begunkov
2025-01-27 16:24 ` Keith Busch
2025-01-27 17:25 ` Andres Freund
2025-01-27 19:20 ` David Hildenbrand
2025-01-27 19:36 ` Andres Freund
2025-01-28 5:56 ` Christoph Hellwig
2025-01-28 9:47 ` David Hildenbrand
2025-01-29 6:03 ` Christoph Hellwig
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=Z5e6p4itt-g5Ys97@casper.infradead.org \
--to=willy@infradead.org \
--cc=andres@anarazel.de \
--cc=david@redhat.com \
--cc=jane.chu@oracle.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=muchun.song@linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox