java - Is free memory consuming less power on android devices? -
For example, we have two identical Android devices that have 2GB of RAM each (energy-dependent memory).
The device is busy by running 1: 1GB RAM applications and 1GB RAM is free.
The device is busy with running 2: 2 GB RAM applications.
Imagine running CPU apps or just using a little bit, the memory remains unchanged (do not write repeatedly). Will device 2 cause much damage to the power of the device (per 0% battery charge)?
Please explain this problem to me, I'm really keen about java-android memory power usage.
After
The simple answer is: How it recurs at the options of
Can afford less electricity. :
The most realistic scenario is that more storage of disk / flash card caches hit more than available memory and there is less access to geo power devices. More memory means less incentive to run GC and it saves your CPU time (and if your system uses swap / zram, it may cost more, most phones do not swap). You probably save some power here.
The second option is that the phone has more memory chips and it is smart enough to compile the kernel memory and makes unused chips useless. This technique is here, for the hotspping of RAM in the server, but I have not heard of the phone using it yet.
Finally, you can be confident that the cost to zero in memory any way diminished compared to random data (RAM to refresh its content from time to time) . Take some crazy tests on the laptop with 3 GB RAM. Free gives us:
total used free shared buffers cached Mem: 3077800 2760220 317580 40308 219036 1137020 - / + buffers / cache: 1404164 1673636 Swap: 2,047,996 7492 2,040,504
and counting pages gives us the absolute zero / dev / kmem is focusing a = 34, are trying to put the = cache 786398. use:
sync && free use of 3> / proc / sys / VM / drop_caches && free membership echo shared buffers cached mem: 3077800 1686792 1391008 44884 1248 326864 - / + buffers / cache: 1,358,680 1,719,120 Self W: 2,047,996 7492 2,040,504
And the result remains the same: focus = 34, using the = 786398. Linux will not zero out the free memory and modern Krnelon probably filled with lots of zeros all pages , Because they all map to the same physical memory. Machineline is called zero page ()
Comments
Post a Comment