3 ms·
Although I am not a fan of Apple, their Memory Pressure messages on iOS are really useful to prevent this. You get warned as a programmer to clean up your memor
by diamondo25 7y ago
Although I am not a fan of Apple, their Memory Pressure messages on iOS are really useful to prevent this. You get warned as a programmer to clean up your memory if possible, otherwise iOS shuts you down.
- macdice 7y agoAlso AIX has SIGDANGER (best signal name ever). There is also "oomd", I think like the iOS thing, for Linux, in user space. Not sure how useful any of these things really are but wondering if FreeBSD should get one...
- lclarkmichalek 7y agoWhich we now have on Linux :D https://facebookmicrosites.github.io/cgroup2/docs/pressure-metrics.html https://facebookmicrosites.github.io/cgroup2/docs/pressure-m...
- gridlockd 7y agoYes, but as a result, memory-intensive applications (usually games) crash all the time, especially on older devices, which the App Store won't let you filter out. What are you going to anyway, just start deallocating the memory your application needs to actually work, so that you can display an "I'm sorry, we're out of memory" message? Might as well crash then. The amount of memory available also varies wildly from user to user and you can't put a memory requirement on an application. So what do people do? Disregard the issue. Even the best games on the App Store have tons of one star reviews by people with older devices. The flip side is that application that are prone to crash are pressured to optimize for relatively quick and painless restart.