Replies: 2 comments 4 replies
-
You don't specify which version of WPE you're running, or from which repository. From WPE 2.38 on you have the MemoryPressureSettings mechanism (https://github.com/WebKit/WebKit/blob/main/Source/WebKit/UIProcess/API/glib/WebKitMemoryPressureSettings.cpp). This API allows setting a memory limit and some percentages of it, so WPEWebProcess will try (when possible) to stay under the limit set. If you're using WPE from https://github.com/WebPlatformForEmbedded/WPEWebKit, then (on 2.38 as well) WPE_RAM_SIZE can be used to define value for WPE to use as the total RAM size of the device. This is used to decide the size of several caches inside WPE, so setting it to smaller values (down to a limit) will reduce a bit the memory footprint. WPE_POLL_MAX_MEMORY was used before 2.38, before the introduction of the memory pressure settings. |
Beta Was this translation helpful? Give feedback.
-
If you're getting the wpe sources from https://wpewebkit.org/releases then the env vars you're trying to use are not defined. Those are only defined in the versions from https://github.com/WebPlatformForEmbedded/WPEWebKit. You need to either switch to that repository or port the patches that add the env vars to the source you're using. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm wondering if there is a way to limit memory requested by WPEWebProcess ?
I'm running COG on embedded systems where memory size is short .
Do variables like WPE_RAM_SIZE , WPE_POLL_MAX_MEMORY have an impact on memory consomption ?
Beta Was this translation helpful? Give feedback.
All reactions