MuntashirAkon / AppManager

A full-featured package manager and viewer for Android
https://muntashirakon.github.io/AppManager/
Other
4.29k stars 253 forks source link

What does "Swap" under Running apps actually display? #1344

Closed kryptobolt200528 closed 3 weeks ago

kryptobolt200528 commented 1 month ago

Describe the existing feature/documentation

The "Running apps" is a pretty useful feature of AppManager and it displays the running processes and it displays various parameters for each process as well as compiled data(overall usage).

Describe your problem(s)

The Running Apps page contains two Primary parameters "Memory" and "Swap". The problem is that Android doesn't seem to implement the traditional Swap space and rather implements a Memory only(RAM only) equivalent called Z-RAM. Now assuming that Swap refers Z-RAM,on a 6GB RMX2061 the Swap is shown to be 2.35GB whereas the Memory is shown to be 5.85GB. Now the problem is that the Z-RAM+Memory cannot be 5.85GB+2.35GB as that would exceed the physical memory on the device. Or is the "Swap" indicative of the equivalent decompressed anount of memory the compressed Z-RAM can store? So what does the "Swap" parameter actually display?

Additional context

No response

MuntashirAkon commented 3 weeks ago

It uses whatever the kernel has returned. App Manager doesn't infer any swapping mechanism be it a swap image or partition or Z-RAM.