Out-of-memory victim selection with BPF
Out-of-memory victim selection with BPF
Posted Aug 20, 2023 10:02 UTC (Sun) by khim (subscriber, #9252)In reply to: Out-of-memory victim selection with BPF by roc
Parent article: Out-of-memory victim selection with BPF
> Personally I'm pretty satisfied with the Android apps and Web apps I use not losing data.
Let me try. “Reply to this comment”, type something, kill the tab (like OOM killer would do), try to reload. “Conform form resubmission” and no matter what you do comment is lost.
Let's try Reddir. “Comment”, kill. Same. Or maybe GitHub… nope.
Or do you want to say that they are saving “before doing important work” like Turbo Pascal did 40 years ago which could save file before trying to compile and run it? That's not a new trick and is not a replacement to proper handling of memory.
And the same with Android apps. Android assumes that it may kill them at any moment and they would just restore their state, somehow, but that's hit-and-miss and that's why phones with many gigabytes of memory are valuable.
> Doesn't feel like a fairy tale.That's mostly thanks to modern OSes which properly isolate apps. The apps themselves are not any better and in data retention aspects they are even worse than they were 40 years ago.
You just could afford to turn on various “auto-save” options because modern SSDs are so much faster than old floppies. But these options, themselves, existed for decades and were available way before memory sloppy programming have become the norm.
