HomeFreeBSD

cache: don't automatically evict negative entries if usage is low

Description

cache: don't automatically evict negative entries if usage is low

The previous scheme only looked at negative entry count in relation to the
total count, leading to tons of spurious evictions if the cache is not
significantly populated.

Instead, only try the above if negative entry count goes beyond namecache
capacity.

Details

Provenance
mjgAuthored on Oct 17 2020, 9:22 PM
Parents
rG337418adf156: Fix sleepq_add panic happening with too wide net epoch in mcast control.
Branches
Unknown
Tags
Unknown

Event Timeline