Page MenuHomeFreeBSD

Reduce mountd DNS queries
ClosedPublic

Authored by sef on Dec 4 2018, 10:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 1:37 AM
Unknown Object (File)
Sat, Nov 23, 5:47 PM
Unknown Object (File)
Sat, Nov 23, 3:42 PM
Unknown Object (File)
Sun, Nov 17, 7:27 AM
Unknown Object (File)
Sun, Nov 17, 7:26 AM
Unknown Object (File)
Fri, Nov 15, 1:51 PM
Unknown Object (File)
Wed, Nov 13, 7:24 AM
Unknown Object (File)
Wed, Nov 13, 7:14 AM
Subscribers

Details

Summary

Right now, mountd does a getnameinfo call for every request, even ones where it doesn't use them. A FreeNAS user noticed this was resulting in large delays (due to a resolv.conf error); in looking at the code, there's no reason for it to call getnameinfo in most cases.

Test Plan

Export files via NFS, and ensure mounting on client works.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 4 2018, 10:21 PM

Generally looks good to me, except one cosmetic issue -- the line seems to go beyond 80 columns, so it would be nice to re-wrap it earlier.

Fix the larger-than-80-columns I got from using the wrong window for my editing.

This revision now requires review to proceed.Dec 6 2018, 2:37 AM
In D18430#392768, @mav wrote:

Generally looks good to me, except one cosmetic issue -- the line seems to go beyond 80 columns, so it would be nice to re-wrap it earlier.

Fixed!

This revision is now accepted and ready to land.Dec 6 2018, 5:03 AM
This revision was automatically updated to reflect the committed changes.