We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2016-05-05 23:41:24 +0200

Can be application warmed before lowmemorykiller kills it?

Hi, I am developing map application. It uses in memory cache for map tiles. Bigger cache improves user experience, but my application is first target of lowmemorykiller then. Exist some standard way how application can detect that system under pressure? Application can release majority of its cache in such situation to avoid painful dead.

Only idea that I have is watching /proc/meminfo, but this is not nice solution. I know that kernel developers discussed some mechanism how kernel can notify user space processes that system is in low memory state but no solution was implemented yet. Right?

Can be application warmed before lowmemorykiller kills it?

Hi, I am developing map application. It uses in memory cache for map tiles. Bigger cache improves user experience, but my application is first target of lowmemorykiller then. Exist some standard way how application can detect that system under pressure? Application can release majority of its cache in such situation to avoid painful dead.

Only idea that I have is watching /proc/meminfo, but this is not nice solution. I know that kernel developers discussed some mechanism how kernel can notify user space processes that system is in low memory state but no solution was implemented yet. Right?