WebPlatformForEmbedded / WPEWebKit

WPE WebKit port (downstream)
210 stars 135 forks source link

[MemoryPressure] Set memory pressure timer priority for GLIB based ru… #1294

Closed asurdej-comcast closed 4 months ago

asurdej-comcast commented 4 months ago

…nloop

This change increases m_measurementTimer priority over default one to make sure memory check is not blocked by any other tasks.

Current values: RunLoopDispatcher = 0, RunLoopTimer = 0, MemoryPressureHandlerTimer = -10,

asurdej-comcast commented 4 months ago

The timer was introduced to read memory pressure level from cgroups so this was single operation while current timer is periodic 1sec (in our case) so not really sure if it is a good idea to set it here