Page MenuHomeFreeBSD

Prevent ticks rollover from preventing vm_lowmem event
ClosedPublic

Authored by rstone on Aug 20 2015, 3:07 PM.
Tags
None
Referenced Files
F151041117: D3439.diff
Sun, Apr 5, 2:54 PM
Unknown Object (File)
Tue, Mar 24, 7:55 PM
Unknown Object (File)
Sun, Mar 22, 6:31 AM
Unknown Object (File)
Sun, Mar 22, 6:21 AM
Unknown Object (File)
Mon, Mar 16, 4:59 PM
Unknown Object (File)
Mon, Mar 16, 3:02 PM
Unknown Object (File)
Feb 16 2026, 3:16 PM
Unknown Object (File)
Feb 8 2026, 9:48 AM
Subscribers

Details

Summary

Currently vm_pageout_scan() uses a ticks-based scheme to rate-limit
the number of times that the vm_lowmem event will happen. However
if no events happen for long enough for ticks to roll over, this
leaves us in a long window in which vm_lowmem events will not
happen.

Replace the use of ticks with time_t to prevent rollover from ever
being an issue.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 169
Build 169: arc lint + arc unit

Event Timeline

rstone retitled this revision from to Prevent ticks rollover from preventing vm_lowmem event.
rstone edited the test plan for this revision. (Show Details)
rstone updated this object.
ian added a reviewer: ian.
ian added a subscriber: ian.

Looks good to me.

This revision is now accepted and ready to land.Aug 20 2015, 8:05 PM
This revision was automatically updated to reflect the committed changes.