summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2020-03-08 19:59:45 +0000
committerriastradh <riastradh@NetBSD.org>2020-03-08 19:59:45 +0000
commit05cd776cd9853b638891a1d7f0fc87d556846f2a (patch)
tree5b0d1189fa0c26a935b5dbda6a96bdefed5b89a5 /sys/dev/microcode
parent9bca139c8d5db3adccace0bbcb980421906e26b5 (diff)
Avoid unnecessary zil_commit on rm.
1. Issue zil_commit only if we're actually updating something -- there's no need to commit if we're unlinking the file or if there's no atime update being applied. 2. Issue zil_commit only if the zfs has sync=always set -- for sync=standard there's no need for us to commit anything here since no application asked for an explicit sync. Speeds up untarring base.tgz on top of itself by a factor of about 2x, and speeds up rm by a factor of about 10x, on my system with an SSD SLOG over SATA. Histogram of unlink, rmdir, and rename timing shows dramatic reduction in latency for most samples. (To be fair, this was not an improvement over zfs; issuing the unnecessary zil_commit was a self-inflicted performance wound.)
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions