summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_fork.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-10-14 07:25:11 +0000
committerbde <bde@FreeBSD.org>2006-10-14 07:25:11 +0000
commitd0962ab7a5ff4e5f6cdc2ff0e897a41ce4ab7f81 (patch)
treec3988e89095cc6cd1e098e47c6579638565f834e /lib/libthr/thread/thr_fork.c
parent8bd9cc6205300867e480953bc80c05ad6deb634f (diff)
downloadFreeBSD-src-d0962ab7a5ff4e5f6cdc2ff0e897a41ce4ab7f81.zip
FreeBSD-src-d0962ab7a5ff4e5f6cdc2ff0e897a41ce4ab7f81.tar.gz
Don't do null Setattr RPCs for VA_MARK_ATIME. When we added the
VA_MARK_ATIME feature to fix POSIX conformance fore execve() and mmap(), we thought that it was optimized well enough for the one file system that supports it (ffs) and harmless for other file systems (except layered ones which already get the layering for VOP_SETATTR() wrong). However, nfs_setattr() doesn't do much parameter checking, so when it gets a combination of parameters that it doesn't understand, it always does a Setattr RPC. This RPC can't do anything good, and for VA_MARK_ATIME it is null except for wasting a lot of time. This is the smallest and easiest to fix of several bugs that have increased the number of RPCs for kernel builds on nfs by more than 100% since 2004-11-05. The real-time increase depends on network latency and parallelization and can also be very large (approaching the same percentage for unparallelized operations like "make depend" on systems with fast CPUs and high-latency networks).
Diffstat (limited to 'lib/libthr/thread/thr_fork.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud