Page MenuHomeFreeBSD

Plumb a domain parameter through uma_reclaim() and callees.
AbandonedPublic

Authored by markj on Feb 6 2020, 3:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 27 2024, 6:44 PM
Unknown Object (File)
Sep 26 2024, 6:01 AM
Unknown Object (File)
Sep 24 2024, 6:14 PM
Unknown Object (File)
Sep 24 2024, 11:23 AM
Unknown Object (File)
Sep 23 2024, 9:44 PM
Unknown Object (File)
Sep 23 2024, 1:45 AM
Unknown Object (File)
Sep 21 2024, 4:54 PM
Unknown Object (File)
Sep 21 2024, 3:29 AM
Subscribers
None

Details

Reviewers
rlibby
jeff
Summary

Now that zones are first-touch by default, it starts making sense to
permit reclamation from a specific domain when the page daemons are
trying to free pages. No functional change intended.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29201
Build 27129: arc lint + arc unit

Event Timeline

sys/kern/kern_mbuf.c
719

elsewhere we have done:
foo_bar()
foo_bar_domain()

Rather than adding a parameter to all current consumers. In this case quite a lot will want any and I suspect only a few will want _domain() so it may be less churn.

sys/kern/vfs_subr.c
1452

Did we already discuss this?

Why aren't we draining the specific zone here? Do we need to drain unrelated things to push vnode references? this looks weird.

sys/vm/uma_core.c
1154

We should just move iteration and the work into different functions.

I was thinking it would be nice if this code was closer and named with the other zone_domain_ stuff.

1267

again unnecessary iteration.

sys/vm/uma_core.c
1306–1310

This doesn't make as much sense anymore. We still need the logic that protects from concurrent destruction, but now we will refuse to reclaim from one domain if we're already reclaiming from another. What do you think the right behavior will be?

I'm sorry - I lost track of this review. I ended up writing a diff that addresses the feedback here: D29685.