|
|
Log in / Subscribe / Register

Out-of-memory victim selection with BPF

Out-of-memory victim selection with BPF

Posted Aug 20, 2023 5:12 UTC (Sun) by roc (subscriber, #30627)
In reply to: Out-of-memory victim selection with BPF by khim
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. Doesn't feel like a fairy tale.


to post comments

Out-of-memory victim selection with BPF

Posted Aug 20, 2023 10:02 UTC (Sun) by khim (subscriber, #9252) [Link] (2 responses)

> 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.

Out-of-memory victim selection with BPF

Posted Aug 21, 2023 15:29 UTC (Mon) by jkingweb (subscriber, #113039) [Link] (1 responses)

>> 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.

I can't speak to Web apps and closing tabs (and LWN is not a Web app, anyway), but if I type into the comment form and kill my Android browser (Vivaldi) explicitly, the text is retained when I start it back up. If I close the tab and use Vivaldi's "undo" function immediately the text is retained. If I wait for the "undo" prompt to go away and re-open the tab from the list of closed tabs the text is gone (but this is not very surprising).

Out-of-memory victim selection with BPF

Posted Aug 21, 2023 15:55 UTC (Mon) by khim (subscriber, #9252) [Link]

Yes. Some web apps are preserving content. Some Android apps are preserving it, too. Vivaldi is pretty good there.

But, as I have said, auto-save is not a new invention and yet it was always spotty. It's still spotty thus I'm not sure what kind of “progress” is discussed here.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds