@clacke I have no idea. Anyways, now my Android phone has 8GB swap memory. Maybe it is Android's way to avoid the OOM.
Conversation
Notices
-
Embed this notice
veer66 (veer66@social.vivaldi.net)'s status on Monday, 06-Nov-2023 21:08:07 JST veer66 -
Embed this notice
veer66 (veer66@social.vivaldi.net)'s status on Monday, 06-Nov-2023 21:08:09 JST veer66 Sometimes I'm glad that the garbage collector started working before the OOM killer.
-
Embed this notice
翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Monday, 06-Nov-2023 21:36:02 JST 翠星石 @clacke >if there is a way for Linux to tell processes to please recover some RAM before it goes to OOM.
Yes, there is a signal that Linux can send to processes asking nicely to free() any unneeded cached memory, but it's really up to the software to implement a signal handler for that signal (via glibc, so it's a glibc or libc thing, although Linux does implement the sigaction and signal SYSCALLs) and free() some memory for memory pressure to be released.
Sure Android has that signal too, but I believe software handler libraries would implement such signal, as it's not like Java gives you any decent access to anything.
-
Embed this notice