3 ms·
Specifically, earlyoom’s README says it repeatedly checks (“periodically polls”) the memory pressure, using CPU each time even when there is no change. The “pol
by CGamesPlay 1y ago
Specifically, earlyoom’s README says it repeatedly checks (“periodically polls”) the memory pressure, using CPU each time even when there is no change. The “poll” system call waits for the kernel to notify the process that the file has changed, using no CPU until the call resolves. It’s unclear what systemd-oomd does, because it uses the phrase “periodically polls”,
- immibis 1y agoThe "poll" system call does not wait until a file changes.
- CGamesPlay 1y agos/the file has changed/it has published new data to the file descriptor/ See https://docs.kernel.org/accounting/psi.html https://docs.kernel.org/accounting/psi.html