It is more natural for these values which are infrequently read, but may be frequently updated.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 58378 Build 55266: arc lint + arc unit
Event Timeline
Comment Actions
I was about to comment that other pmaps still use atomics for these counters, but it seems that amd64's also been using counter(9) for a while. I'm a bit skeptical that that's really necessary (except perhaps for p_failures), but it doesn't have much downside either. It would be nice to make at least arm64 consistent.
Comment Actions
I share your skepticism for the L2 counters, but I see no real harm in this change. Similarly, I would have no objections to making the same change on arm64. On arm64, we are using counter(9) for 64KB pages, where the counts are typically two orders of magnitude larger.
Comment Actions
Does anyone know if any real riscv hardware implements their extension that supports additional page sizes, particularly, 64KB?