Bug #11945
closed
pool import performance regression due to repeated libshare initialization
Added by Dan McDonald over 2 years ago.
Updated over 2 years ago.
Category:
nfs - NFS server and client
Description
This is an independent part of the nfs-zone wad of diffs from Nexenta (NEX-16219). Less calls to initialization is better. :)
Thanks Joyce for the following:
A previous issue where on pool import libshare was being initialized per shared dataset in the pool, due to:
"7955 libshare needs to initialize only those datasets being modified by the consumer"
was resolved issue by initializing libshare at a higher level for ALL of the datasets being shared.
However, if libshare needs to be refreshed (due to some other operation invalidating its cache) the import reverts to per share initialization. This was first observed when the startup of svc:/network/nfs/server:default was triggered by the sharing of the first dataset, but it has been reproduced for testing by setting the sharenfs property on a dataset in another pool while the import is running.
With a large number of datasets in the pool being imported, the repeated libshare refresh is very, very expensive.
The resolution is that if libshare is already initialized for multiple shares (API_SELECTIVE) higher up the stack and it requires a refresh in the per-share functions lower down, the refresh will be performed once for all shares, instead of per share.
----
dtrace was used on before/after builds for verification & profiling.
This has been in illumos-nexenta since March of 2018, and is in the shipped-product NexentaStor 5.2.1.
commit 36ebdcae488d7b52d92897bd16e19c901c564f75
Author: Joyce McIntosh <joyce.mcintosh@nexenta.com>
AuthorDate: Thu Mar 1 10:18:07 2018 -0800
Commit: Joyce McIntosh <joyce.mcintosh@nexenta.com>
CommitDate: Thu Mar 1 13:35:10 2018 -0800
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit b8dc1b43d204b714c2fda8dd4efd67de0c671db6
commit b8dc1b43d204b714c2fda8dd4efd67de0c671db6
Author: Joyce McIntosh <joyce.mcintosh@nexenta.com>
Date: 2019-12-02T21:53:49.000Z
11945 pool import performance regression due to repeated libshare initialization
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Approved by: Garrett D'Amore <garrett@damore.org>
- Related to Bug #7955: libshare needs to initialize only those datasets being modified by the consumer added
Also available in: Atom
PDF