linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Benjamin Coddington <bcodding@redhat.com>
Cc: linux-nfs@vger.kernel.org, hch@lst.de
Subject: Re: blocklayoutdriver and page_cache_next_hole
Date: Wed, 27 Apr 2016 09:53:19 +0200	[thread overview]
Message-ID: <20160427075319.GC28726@lst.de> (raw)
In-Reply-To: <alpine.OSX.2.19.9992.1604261302250.92748@planck>

On Tue, Apr 26, 2016 at 01:27:02PM -0400, Benjamin Coddington wrote:
> I'm doing some benchmarking on SCSI layout, and I ran into a case where
> bonnie++ seemingly stopped making forward progress.
> 
> bl_pg_init_write() wants to figure out how big the layout should be and uses
> page_cache_next_hole() pretty aggressively if the inode size isn't equal to
> the mapping.  Problem is that page_cache_next_hole() is fairly stupid about
> just walking through the page_cache radix tree by index.
> 
> The end result is that for fairly large files (>4G) my machine spends all
> its time in __radix_tree_lookup(), and I might as well just use regular NFS.

Haha.  One option is to simply optimize page_cache_next_hole, as that
should be easy and the read-ahead could would benefit as well.  Or make
NFS pass through the writeback size and stop hacking around upper layers
in the layout driver.  Both seem like useful options.

      reply	other threads:[~2016-04-27  7:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-26 17:27 blocklayoutdriver and page_cache_next_hole Benjamin Coddington
2016-04-27  7:53 ` Christoph Hellwig [this message]

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=20160427075319.GC28726@lst.de \
    --to=hch@lst.de \
    --cc=bcodding@redhat.com \
    --cc=linux-nfs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).