HomeFreeBSD

cache: ignore purgevfs requests for filesystems with few vnodes

Description

cache: ignore purgevfs requests for filesystems with few vnodes

purgevfs is purely optional and induces lock contention in workloads
which frequently mount and unmount filesystems.

In particular, poudriere will do this for filesystems with 4 vnodes or
less. Full cache scan is clearly wasteful.

Since there is no explicit counter for namecache entries, the number of
vnodes used by the target fs is checked.

The default limit is the number of bucket locks.

Reviewed by: kib

Details

Provenance
mjgAuthored on
Reviewer
kib
Parents
rS306607: mksnap_ffs appeared in FreeBSD 5.1.
Branches
Unknown
Tags
Unknown