Page MenuHomeFreeBSD

Changes to ZFS ARC interation with VM
ClosedPublic

Authored by smh on Aug 30 2014, 7:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 19 2023, 9:40 AM
Unknown Object (File)
Sep 5 2023, 12:26 PM
Unknown Object (File)
Jul 29 2023, 10:22 PM
Unknown Object (File)
Mar 23 2023, 6:41 AM
Unknown Object (File)
Mar 6 2023, 4:10 AM
Unknown Object (File)
Dec 20 2022, 6:04 AM
Unknown Object (File)
Apr 27 2017, 10:44 AM
Unknown Object (File)
Apr 22 2017, 9:42 AM
Subscribers
None

Details

Reviewers
peter
smh
Summary

Ensure that ZFS free memory checks include cached pages

Also restore kmem_used() check for i386 as it has KVA limits that the raw page counts above don't consider

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

smh retitled this revision from to Changes to ZFS ARC interation with VM.
smh updated this object.
smh edited the test plan for this revision. (Show Details)

By inspection, this appears to address my concerns. I was about to fire up a local preliminary version but I'll use this to keep it simple.

The 1-line change at the kmem_free_count() entry at the top is the one I particularly want.

I believe zfs on i386 (and other non-direct-map, kva-restricted machines) requires more work (eg: the arc_memory_throttle function needs a similar constraint) but I don't want to hold up the fixes for that.

Thanks for the review I've commit this change.

smh added a reviewer: smh.
This revision is now accepted and ready to land.Aug 31 2014, 4:24 PM

Peter can you approve the patch so I can close this one off, as there doesn't seem to be a way to force it based on a comment only.