NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/61076: pmap_remove_all() could use more context



>Number:         61076
>Category:       kern
>Synopsis:       pmap_remove_all() could use more context
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 25 14:40:01 +0000 2026
>Originator:     Jason R. Thorpe
>Release:        NetBSD 11.99.11
>Organization:
Retro-grouches'R'Us
>Environment:
NetBSD virt68k 11.99.11 NetBSD 11.99.11 (GENERIC) #332: Wed Nov 25 07:07:27 EST 2026  thorpej@Mac:/Users/thorpej/NetBSD/current/src/sys/arch/virt68k/compile/GENERIC virt68k
>Description:
pmap_remove_all() is called in two places:
- uvmspace_exec()
- uvmspace_free()

In the former, the pmap is going to be re-used to load up a fresh address space.

In the latter, the pmap is going to be almost immediately destroyed.

It would be useful for pmap_remove_all() to know which of these cases is in play, as it might be able to make optimizations based on this information.

>How-To-Repeat:
N/A
>Fix:
Suggested change: add a "bool dying" argument to pmap_remove_all().  If true, it would indicate that this particular instantiation of the pmap will never be re-activated and will subsequently be destroyed.




Home | Main Index | Thread Index | Old Index