Out-of-memory victim selection with BPF
Out-of-memory victim selection with BPF
Posted Aug 17, 2023 19:24 UTC (Thu) by mpr22 (subscriber, #60784)In reply to: Out-of-memory victim selection with BPF by rrolls
Parent article: Out-of-memory victim selection with BPF
Fundamentally, overcommit (in the form of copy-on-write pages) exists so that a process whose current RAM allocation exceeds the amount of remaining unallocated RAM can launch another program using the traditional Unix sequence "call fork(2), then have the child call execwhatever(2) after some small amount of housekeeping".
Also, the kernel knows nothing about malloc(3). The kernel only knows about mmap(2) and brk(2).
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
