]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r259765:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 22 Jan 2014 23:48:15 +0000 (23:48 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 22 Jan 2014 23:48:15 +0000 (23:48 +0000)
commit4dfc6b7611ee68755ddd3e2b4c9b637e1582098a
treed09b8b7ec9e4280535791f84797e3b7760469900
parent16950d8aa2640aab47b653643cad9832169aebdf
MFC r259765:
Fix RPC server threads file handle affinity to work better with ZFS.

  Instead of taking 8 specific bytes of file handle to identify file during
RPC thread affitinity handling, use trivial hash of the full file handle.
ZFS's struct zfid_short does not have padding field after the length field,
as result, originally picked 8 bytes are loosing lower 16 bits of object ID,
causing many false matches and unneeded requests affinity to same thread.
  This fix substantially improves NFS server latency and scalability in SPEC
NFS benchmark by more flexible use of multiple NFS threads.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261049 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsserver/nfs_fha_new.c
sys/nfs/nfs_fha.c
sys/nfs/nfs_fha.h
sys/nfsserver/nfs_fha_old.c