[Webkit-unassigned] [Bug 184261] [GTK][WPE] Memory pressure monitor doesn't reliable notify all the subprocesses

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 3 17:13:43 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=184261

--- Comment #2 from Carlos Alberto Lopez Perez <clopez at igalia.com> ---
I think this problem is unavoidable with the current implementation (with eventfd). My understanding is that when one of the subprocess reads the value of the eventfd, it destroys (consumes) it.

But since the code does't read the value of the eventfd immediately after receiving the notification that there is something to read on the descriptor, there is a chance that more than one subprocess gets the notification. But its not something that happens reliably.


Perhaps an idea is using a signalfd descriptor instead, and sending a determined signal to all subprocess ? https://gabrbedd.wordpress.com/2013/07/29/handling-signals-with-signalfd/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180404/a6d69e02/attachment-0002.html>


More information about the webkit-unassigned mailing list