If system calls were the only way to change memory allocation, one could probably keep a strict accounting of pages allocated and fail system calls that require more VM than is available. But neither Plan 9 nor Unix works that way. The big exception is stack growth. The kernel automatically extends a process's stack segment as needed. On the pc, Plan 9 currently limits user-mode stacks to 16MB. On a CPU server with 200 processes (fairly typical), that's 3.2GB of VM one would have to commit just for stacks. With 2,000 processes, that would rise to 32GB just for stacks.
- [9fans] plan 9 overcommits memory? erik quanstrom
- Re: [9fans] plan 9 overcommits memory? Russ Cox
- Re: [9fans] plan 9 overcommits memory? erik quanstrom
- Re: [9fans] plan 9 overcommits memory... Douglas A. Gwyn
- Re: [9fans] plan 9 overcommits memory? Scott Schwartz
- Re: [9fans] plan 9 overcommits memory... ron minnich
- Re: [9fans] plan 9 overcommits me... erik quanstrom
- Re: [9fans] plan 9 overcommits me... erik quanstrom
- Re: [9fans] plan 9 overcommi... Douglas A. Gwyn
- Re: [9fans] plan 9 overcommits me... Scott Schwartz
- Re: [9fans] plan 9 overcommits memory? geoff
- Re: [9fans] plan 9 overcommits memory? Scott Schwartz
- Re: [9fans] plan 9 overcommits memory... Uriel
- Re: [9fans] plan 9 overcommits memory... erik quanstrom
- Re: [9fans] plan 9 overcommits me... john
- Re: [9fans] plan 9 overcommi... Gorka Guardiola
- Re: [9fans] plan 9 overc... Francisco J Ballesteros
- Re: [9fans] plan 9 overc... john
- Re: [9fans] plan 9 o... Charles Forsyth
- Re: [9fans] plan 9 overc... Uriel
- Re: [9fans] plan 9 o... Charles Forsyth
