Conversation

I have a WearOS watch which is a frustratingly janky piece of crap. Whenever you try to do anything on it, it freezes for several seconds. Why? because it's SWAPPING! what the what?! 1.9G of virtual memory for a daemon on a wristwatch? 21 java apps, each with >760M vmem? JFC
Image
6
35
Replying to and
FFS why would you even have swap on a realtime mobile device???!? AIUI the OS is already designed to kill and restart junk that uses too much memory, so just let it do its thing...
2
3
If there's actually real swap, that's insane. Android isn't designed to work with swap. It's supposed to run out of memory and trigger the userspace OOM killer implementation to kill inactive apps. It gets apps to save snapshots of state as soon as they become inactive.
1
For example, here's the configuration for the Pixel 4: android.googlesource.com/device/google/ It has 6GB of memory and sets 2GB as the max zram size. It uses a backing file for zram writeback (512M) but that's *extremely* conservative and it has a fast SSD for it: android.googlesource.com/device/google/
1
2
Show replies