nfs pessimized by vnode pages changes

Gleb Smirnoff glebius at FreeBSD.org
Tue Mar 29 00:16:25 UTC 2016


On Tue, Mar 29, 2016 at 10:59:26AM +1100, Bruce Evans wrote:
B> > I debugged another pessimization of nfs.

...

B> > ncl_getpages() is now almost always called with a count of 1 page, due
B> > to the change changing the count from faultcount to 1 in r292373 in
B> > vm_fault().

...

B> I couldn't get full-fs-block input to work right in ncl_getpages().  In
B> the old version, vm_fault_hold() almost always calls it with the pages
B> for exactly 1 full block, because vm_fault_additional_pages() somehow
B> finds this many pages.

The last quoted paragraph is a correct observation. According to your
investigations, prior to r292373 NFS was doing multiple page pageins,
despite it should have reported that it can't. My reading of the code
is the same: both before r292373 and after r292373 NFS should page in
a single page at request. I quickly reviewed the whole codepath and I
can't see how with older code it was able to do multiple page pageins.

-- 
Totus tuus, Glebius.


More information about the freebsd-fs mailing list