HomeFreeBSD

Fix a race which could result in some timeout buckets being skipped.
rS180608Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Fix a race which could result in some timeout buckets being skipped.

  • When a tick occurs on a cpu, iterate from cs_softticks until ticks. The per-cpu tick processing happens asynchronously with the actual adjustment of the 'ticks' variable. Sometimes the results may be visible before the local call and sometimes after. Previously this could cause a one tick window where we didn't evaluate the bucket.
  • In softclock fetch curticks before incrementing cc_softticks so we don't skip insertions which were made for the current time.

Sponsored by: Nokia

Details

Provenance
jeffAuthored on
Parents
rS180607: - Check whether we've recorded this tick in ts_ticks on another cpu in
Branches
Unknown
Tags
Unknown

Event Timeline