We have moved to a new Sailfish OS Forum. Please start new discussions there.
| 1 | initial version | posted 2016-05-05 23:41:24 +0200 |
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?
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?