i do not like when this is the runtime behavior of my program
Conversation
Replying to
what's even going on? one of your stack slots is way at the other end of a numa?
3
5
dammit are you snooping my patent applications again
2
6
It's an actual Linux kernel feature called zram deployed by modern Android phones.
kernel.org/doc/Documentat
Android hasn't ever used actual swap but rather has a certain amount of the memory as a compressed memory region. More recently, there's support for writeback from it.
4
2
compressing swapped out pages is a super good idea, or at least it was before SSDs; probably still is
2
1
The way it works on modern Android is you choose a certain percent of your overall memory to use as in-memory, compressed swap. The OS schedules scanning that memory for idle pages. Only ever writes out extremely idle pages to the zram writeback on storage. Not like normal swap.




