forked from freebsd/freebsd-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pcb/jail: drain pcb zones on vnet jail exit
There is a problem with pcbs sitting in UMA cache referencing credential, which references prison. With zero pcb zone traffic the vnet jails with all their memory are basically leaked for indefinite time. This is not a problem for production, since eventually pcb zone traffic will purge the caches, but it is a nightmare when running test suite(s) that create a vnet jail for every test. This patch has two drawbacks: - UMA_RECLAIM_DRAIN_CPU will also do cache_shrink(), which is undesired - For SMR zone (and all pcb zones are SMR) the per-cpu free caches are skipped, while theoretically we can smr_wait() on them and drain them too. The implementation isn't ready yet. Despite drawback freebsd#2 the patch allows to run the netinet or netpfil test suite in an endless cycle without running out of memory.
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters