top | item 45664986

(no title)

100721 | 4 months ago

Unrelated to the topic, it seems awfully unintuitive to name a function ‘poll’ if the result is ‘not polling.’ I’m guessing there’s some history and maybe backwards-compatible rewrites?

discuss

order

CGamesPlay|4 months 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|4 months ago

The "poll" system call does not wait until a file changes.

unilynx|4 months ago

Poll takes a timeout parameter. ‘Not polling’ is just a really long timeout

friendzis|4 months ago

"Let the underlying platform do the polling and return once the condition is met"