Summary: | [linuxulator][wine] no way to query the maximum process ki_size | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Damjan Jovanovic <damjan.jov> | ||||
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | In Progress --- | ||||||
Severity: | Affects Some People | CC: | dchagin, markj, trasz | ||||
Priority: | --- | ||||||
Version: | 13.0-RELEASE | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 247219 | ||||||
Attachments: |
|
Description
Damjan Jovanovic
2021-11-20 03:17:00 UTC
Created attachment 229620 [details]
proposed patch
We don't track that value, but it is not hard to add. See the attached patch.
One nit is that we count mappings with protection PROT_NONE, but not guard mappings, but for accounting purposes they should be treated the same. Handling that properly would require some extra complexity that is probably not worth it.
(In reply to Mark Johnston from comment #1) Mark, may we commit this without reporter feedback? It looks fine to me. (In reply to Dmitry Chagin from comment #2) The sys/vm portion of the patch requires some review. I'll post it to phabricator when I get a chance. |