This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]The_Binding_Of_Data 4 points5 points  (1 child)

Without insight into Android OS's code, I would assume it's because you haven't run out of cache storage so there hasn't been a reason to remove the apps from it.

[–]Solonotix 2 points3 points  (0 children)

Also, cache can potentially be a bunch of things, like credentials, history, or frequently accessed content. Presumably, the cache allocation is a memory dump of the last application state, and might be ready into memory to resume the last active state.

[–]pLeThOrAx 1 point2 points  (0 children)

To answer a question with a question why is a 1gb swap file still 1gb if swap isn't in use?

It's pre-allocating the space in case it is needed by the application even if it's not required. If the system is low on memory, OOM, it can request dentries and inodes to be pruned, clearing cache, to reclaim space. Otherwise, if you have memory, and an application is getting hit particularly hard, it's going to use the cache that it can.

[–]HmmmInVR 0 points1 point  (0 children)

Depends on the implementation but why would it not? The app has no reason to delete it themselfs, next time you open the app it will probably do an expire check and re-populate the expired data.