I suspect that compcache is not interacting properly with android but I need some stats to really analyze it. This should be standardized so please answer as I request and avoid any "me too" type answers.
Here's what you need:
Compcache running or a linux swap partition or file (swapper counts).
The default browser bound to a shortcut (search-b) and set to load www.cnn.com as your homepage. Close extra windows before starting and go there at least once. Make sure you're blocking popups.
A homescreen where you have icons and widgets that you have noticed in the past have taken time to load.
Music player to run in the background if you need to increase the system load.
Optionally: Gmail bound to a keyboard shortcut. (search-g for me)
Adb shell and knowledge to run these tests.
Here's what you're doing:
adb shell into your phone
Grab following stats (you can copy and paste in on one line):
Code:
uname -r;uptime;cat /proc/sys/vm/swappiness;cat /proc/swaps;cat /proc/ramzswap;free
Hit home button and go to homescreen. Take note of whether the homescreen needed to reload everything or if it was snappy. After completely done loading, run 'free' and record.
Keyboard shortcut to browser. Take note of whether the browser had to download and reload everything. After completely done loading, run 'free' and record.
Repeat 3-4 until either:
switching is always snappy,
the value of 'free' for swap ceases to change significantly while apps are reloading (like +-100 over 2-3 slow reloads),
or the value of 'free' for swap maxes out (note if you start getting lots of force closes).
Code:
total used free shared buffers
Mem: 97876 95492 2384 0 644
Swap: 43880 [B] 404[/B] 43476
Total: 141756 95896 45860
If its always snappy, put more load on the system by setting the music player in the background. If that still doesn't stress the system, throw in Gmail in the mix randomly. Note if snappy, and record 'free' stats.
If you're using both compcache and a linux swap, try to get information at the point where you've crossed over from compcache to linux swap. So if you're compcache is only 8 megs, seeing the difference as your swap fills over the 8 meg boundary is useful.
Finally, here's what you should report, either by putting it into a text file and attaching, or by placing it into a
Code:
block.
[list=1][*]Mod used. e.g. Cyanogen 3.9
[*]Info from step 2) above. [code]2.6.29-cm
12:47:45 up 3:43, load average: 2.13, 2.05, 2.09
15
Filename Type Size Used Priority
/dev/ramzswap0 partition 12284 408 -1
/system/sd/swapfile.swp file 31596 0 -2
DiskSize: 12288 kB
NumReads: 33
NumWrites: 102
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 0
ZeroPages: 3
GoodCompress: 77 %
NoCompress: 9 %
PagesStored: 99
PagesUsed: 31
OrigDataSize: 396 kB
ComprDataSize: 118 kB
MemUsedTotal: 124 kB
total used free shared buffers
Mem: 97876 95720 2156 0 632
Swap: 43880 408 43472
Total: 141756 96128 45628
[*]Results from repeating 3-4. If it ended up being too responsive and you couldn't stress it just include one cycle. Mark what you swapped to and whether it reloaded (Y for yes). e.g.
Code:
home
total used free shared buffers
Mem: 97876 95824 2052 0 292
Swap: 24464 2268 22196
Total: 122340 98092 24248
browser Y
total used free shared buffers
Mem: 97876 96032 1844 0 252
Swap: 24464 2540 21924
Total: 122340 98572 23768
home
total used free shared buffers
Mem: 97876 94436 3440 0 264
Swap: 24464 2940 21524
Total: 122340 97376 24964
browser Y
total used free shared buffers
Mem: 97876 95960 1916 0 280
Swap: 24464 5292 19172
Total: 122340 101252 21088
home Y
total used free shared buffers
Mem: 97876 92868 5008 0 272
Swap: 24464 6484 17980
Total: 122340 99352 22988
[/list]
Thanks!
Reserved for my test results.
Another good test is iMeem. This app is a memory whore and really puts pressure on the system.
Code:
Cyanogen 3.6.8.1
2.6.29-cm
15:19:09 up 5:28, load average: 7.58, 5.31, 4.33
20
Filename Type Size Used Priority
/dev/ramzswap0 partition 24464 15968 -1
DiskSize: 24468 kB
NumReads: 7817
NumWrites: 8908
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 0
ZeroPages: 241
GoodCompress: 65 %
NoCompress: 12 %
PagesStored: 5871
PagesUsed: 2370
OrigDataSize: 23484 kB
ComprDataSize: 9323 kB
MemUsedTotal: 9480 kB
total used free shared buffers
Mem: 97876 95852 2024 0 560
Swap: 24464 15968 8496
Total: 122340 111820 10520
home Y
total used free shared buffers
Mem: 97876 96348 1528 0 776
Swap: 24464 14600 9864
Total: 122340 110948 11392
browser Y
total used free shared buffers
Mem: 97876 96528 1348 0 420
Swap: 24464 14844 9620
Total: 122340 111372 10968
home Y
total used free shared buffers
Mem: 97876 96432 1444 0 752
Swap: 24464 14792 9672
Total: 122340 111224 11116
browser Y
total used free shared buffers
Mem: 97876 96484 1392 0 404
Swap: 24464 14844 9620
Total: 122340 111328 11012
home Y
total used free shared buffers
Mem: 97876 96464 1412 0 668
Swap: 24464 15048 9416
Total: 122340 111512 10828
No other posts? C'mon everyone, these statistics will help YOU get a faster, better configured phone.
**********
sha.goyjo said:
I'm going to be the first to say it. Doing tests on compcache .5 is somewhat pointless atm. If you follow Cyanogens, you'll see that he's currently working with the compcache people on an arm revision of .6, which uses a VERY different code base. I'd contribute to your thread if it wasn't trying to fiddle with a version that was just an arm patch on the existing compcache branch. You'd be better off waiting till the .6 goes stable on the trunk. All that being said, if you want to try and rewrite kernel modules that are in the process of being re-re-written, be my guest.
Not trying to be an ass, just trying to save us all some time by working towards things efficiently.
That being said, .6 could REALLY use some people working on it. Once it gets working we'll be able to use backing swap files instead of a partition, which would be great. No more Linux-swap on an sdcard.
Click to expand...
Click to collapse
Hmm. So what you are saying is that we should find no significance in the fact the cyanogen already posted in this thread with supportive info for the tests.
Also, in regards to your work on .6, what benchmarking plan did you have to prove:
1) that .6 performs better than .5 on our phones
2) that .6 performs better than a linux swap on our phones
3) that .6 performs better than .5 with a backing swap on our phones
Please note that any answers to this thread could help build these benchmarks for you.
Running CM 3.8
Browser only reloaded once...even with music playing, and running wisepilot! Even the one reload was a quick one.
Code:
2.6.29-cm
18:05:17 up 1:13, load average: 2.75, 3.69, 4.14
60
Filename Type Size Used Priorit
/dev/ramzswap0 partition 31996 21264 -1
DiskSize: 32000 kB
NumReads: 15024
NumWrites: 16558
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 246
ZeroPages: 196
GoodCompress: 75 %
NoCompress: 4 %
PagesStored: 7804
PagesUsed: 2977
OrigDataSize: 31216 kB
ComprDataSize: 11516 kB
MemUsedTotal: 11908 kB
total used free shared buffers
Mem: 97876 96376 1500 0 576
Swap: 31996 21264 10732
Total: 129872 117640 12232
#
From CNN to Home
**snappy
total used free shared buffers
Mem: 97876 95752 2124 0 588
Swap: 31996 22040 9956
Total: 129872 117792 12080
From Home to CNN
**snappy no reload
total used free shared buffers
Mem: 97876 96032 1844 0 520
Swap: 31996 22020 9976
Total: 129872 118052 11820
#
ADDED MUSIC PLAYER BACKGROUND And checked mem
total used free shared buffers
Mem: 97876 95964 1912 0 624
Swap: 31996 17516 14480
Total: 129872 113480 16392
FROM HOME TO CNN
**Reload
total used free shared buffers
Mem: 97876 96120 1756 0 448
Swap: 31996 24780 7216
Total: 129872 120900 8972
CNN to Home
**Snappy...no redraw
total used free shared buffers
Mem: 97876 96400 1476 0 492
Swap: 31996 29248 2748
Total: 129872 125648 4224
Home to Browser
***Snappy NO RELOAD WITH MUSIC RUNNING!!!
total used free shared buffers
Mem: 97876 96288 1588 0 464
Swap: 31996 26660 5336
Total: 129872 122948 6924
ADDED WISEPILOT NAVIGATION mUSIC STILL RUNNING
total used free shared buffers
Mem: 97876 96532 1344 0 396
Swap: 31996 27592 4404
Total: 129872 124124 5748
WISEPILOT RUNNING, MUSIC RUNNING, SWITCHED TO CNN from within wisepilot (search b)
***NO RELOAD, NO LAG....
total used free shared buffers
Mem: 97876 95988 1888 0 492
Swap: 31996 27208 4788
Total: 129872 123196 6676
#
double posted
by the way, in case everyone missed it:
I have two G1's. Both have brand new installs of CM 3.9. One has compcache (with swapiness set to 20 and 24mb of space allocated) and one does not. After a reboot on both devices and waiting a five minutes for everything to settle, I filmed the opening of the camera app. The one without compcache is noticeably quicker. Is compcache slowing our machines down, at least in certain instances?
By the way, cat /proc/ramzswap confirms compcache is enabled.
http://www.youtube.com/watch?v=gNYv-5WLDVA
edit:swappiness for the above tests was at 60....
Running Cyanogen 3.8.1 with the Palm Pre theme ( dunno if it made a diff.) and HTC Music app running.
Code:
2.6.29-cm
03:53:53 up 3 min, load average: 2.22, 1.47, 0.60
60
Filename Type Size Used Priority
/dev/ramzswap0 partition 31996 11612 -1
DiskSize: 32000 kB
NumReads: 1902
NumWrites: 3415
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 0
ZeroPages: 137
GoodCompress: 72 %
NoCompress: 4 %
PagesStored: 3278
PagesUsed: 1128
OrigDataSize: 13112 kB
ComprDataSize: 4461 kB
MemUsedTotal: 4512 kB
total used free shared buffers
Mem: 97876 96488 1388 0 652
Swap: 31996 11612 20384
Total: 129872 108100 21772
Home Y
total used free shared buffers
Mem: 97876 95704 2172 0 668
Swap: 31996 11612 20384
Total: 129872 107316 22556
Browser Y
total used free shared buffers
Mem: 97876 96308 1568 0 432
Swap: 31996 15528 16468
Total: 129872 111836 18036
Home N
total used free shared buffers
Mem: 97876 86336 11540 0 468
Swap: 31996 14936 17060
Total: 129872 101272 28600
Browser Y
total used free shared buffers
Mem: 97876 95196 2680 0 520
Swap: 31996 14932 17064
Total: 129872 110128 19744
Home N
total used free shared buffers
Mem: 97876 96176 1700 0 460
Swap: 31996 15056 16940
Total: 129872 111232 18640
Browser (Opened up really quick) N
total used free shared buffers
Mem: 97876 96432 1444 0 540
Swap: 31996 15200 16796
Total: 129872 111632 18240
Home N
total used free shared buffers
Mem: 97876 96096 1780 0 540
Swap: 31996 15208 16788
Total: 129872 111304 18568
pinetreehater said:
by the way, in case everyone missed it:
I have two G1's. Both have brand new installs of CM 3.9. One has compcache (with swapiness set to 20 and 24mb of space allocated) and one does not. After a reboot on both devices and waiting a five minutes for everything to settle, I filmed the opening of the camera app. The one without compcache is noticeably quicker. Is compcache slowing our machines down, at least in certain instances?
By the way, cat /proc/ramzswap confirms compcache is enabled.
http://www.youtube.com/watch?v=gNYv-5WLDVA
edit:swappiness for the above tests was at 60....
Click to expand...
Click to collapse
I'm not surprised it was.
Without compcache : Start camera app, realize your out of memory, kill another application (meaning it will start slower the next time, going through full initialization).
With compcache : Start camera, push inactive application into compcache.
I'd like to see some similar tests with more tests run. I think I might actually write a little app for this.
derfolo said:
Hmm. So what you are saying is that we should find no significance in the fact the cyanogen already posted in this thread with supportive info for the tests.
Also, in regards to your work on .6, what benchmarking plan did you have to prove:
1) that .6 performs better than .5 on our phones
2) that .6 performs better than a linux swap on our phones
3) that .6 performs better than .5 with a backing swap on our phones
Please note that any answers to this thread could help build these benchmarks for you.
Click to expand...
Click to collapse
No, I apologize for being offensive. Part of my reasoning has more to do with the fact that, as far as I have seen, regardless of what works best people tend to move to the latest version. It wasn't a utility prediction. In that respect, you are going in the right direction. I do think that the plans to implement dynamic swapping between backing and ramz in the future really make a big difference, however, in any kind of work we are trying to do here. Also, from what I've looked at the difference in the modules, they look significantly different now.
I didn't mean to press your buttons, but what I'm saying does have merit.
I say this because it's not about benchmarking the current version vs. the new version. That kind of a benchmark doesn't work, because the new version has an improved feature set. Software with a larger feature set rarely performs better than software with a smaller feature set. However, the features inherent in compcache .6 are VERY compelling for android phones, specifically the ability to use backing_swap from a FILE instead of a partition. The fewer partitions on your sdcard, the better. Less wasted space, and less time spend confusing the kernel as to which /dev/ it should be writing to at the time.
As to cyanogen having "supported" your tests, there are a lot of good reasons for it. You could discover a kernel interfacing problem. You could discover a problem in the arm patch that would be relevant to the new version or upgraded versions of CM.
All I think is that the compcache project could use all the help it can get rolling out .6 for android, and that if more people helped them with that, maybe we could try and find ways to fix the version of compcache we'll be using, instead of the one we'll be moving away from.
One thing people need to realize is that there is no free lunch. Swap (whether the partition or compcache) is not for speeding up the system but for allowing you to run many big apps together at the same time.
swap will slow you down a bit, whether its compcache (cpu overhead for compression) or partition (I/O overhead). So, stop fooling yourself. If you want a fast phone, just use basic things and leave swap out of picture. if you want a fast phone AND want to run tonnes of stuff like touchflo, get a phone with more RAM.
test results
devsk said:
One thing people need to realize is that there is no free lunch. Swap (whether the partition or compcache) is not for speeding up the system but for allowing you to run many big apps together at the same time.
swap will slow you down a bit, whether its compcache (cpu overhead for compression) or partition (I/O overhead). So, stop fooling yourself. If you want a fast phone, just use basic things and leave swap out of picture. if you want a fast phone AND want to run tonnes of stuff like touchflo, get a phone with more RAM.
Click to expand...
Click to collapse
Correct me if I'm wrong, but it sounds rather like you're saying, "Stop trying to make things better." Rather an odd sentiment for a Development forum, no?
I ran this test with just Calendar and Weather widgets running on the home screen and, although I have occasionally found the entire home screen slow to reload during regular use, during this test the home screen never seemed to reload at all, even with Music playing and an occasional jump to Gmail.
I'm running CM 3.9 with a simple Compcache script (no backing swap) initiated from Gscript for default disk size and 20 swappiness:
Code:
2.6.29-cm
12:23:08 up 36 min, load average: 3.37, 3.65, 2.79
20
Filename Type Size Used Priority
/dev/ramzswap0 partition 24464 6992 -1
DiskSize: 24468 kB
NumReads: 587
NumWrites: 1761
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
PagesDiscard: 0
ZeroPages: 126
GoodCompress: 66 %
NoCompress: 5 %
PagesStored: 1635
PagesUsed: 602
OrigDataSize: 6540 kB
ComprDataSize: 2338 kB
MemUsedTotal: 2408 kB
total used free shared buffers
Mem: 97876 92880 4996 0 552
Swap: 24464 6992 17472
Total: 122340 99872 22468
Browser: N
total used free shared buffers
Mem: 97876 92856 5020 0 552
Swap: 24464 6992 17472
Total: 122340 99848 22492
Home: N
total used free shared buffers
Mem: 97876 92856 5020 0 552
Swap: 24464 6992 17472
Total: 122340 99848 22492
(after stressing with Music playing AND switching to Gmail)
Browser: Y
total used free shared buffers
Mem: 97876 95752 2124 0 452
Swap: 24464 7892 16572
Total: 122340 103644 18696
Home: N
total used free shared buffers
Mem: 97876 96496 1380 0 444
Swap: 24464 8276 16188
Total: 122340 104772 17568
ei8htohms said:
I ran this test with just Calendar and Weather widgets running on the home screen and, although I have occasionally found the entire home screen slow to reload during regular use, during this test the home screen never seemed to reload at all, even with Music playing and an occasional jump to Gmail.
Click to expand...
Click to collapse
And it probably doesn't, with compcache you have enough memory to keep it in, while without it needs to go through the whole onCreate and xml inflation.
I am not saying don't make it better. What I am saying is your expectations should be correct.
I use compcache myself. I use it with memlimit_kb=32000 disksize_kb=48000 backing_swap=/dev/block/mmcblk0p3 and a swappiness of 20. But I don't expect it to make my system fly. I just expect that more of my apps will stick around rather than killed and reloaded later. So, I am paying a little swapping cost upfront for payback later.
any lag once compcache fills up?
devsk said:
I am not saying don't make it better. What I am saying is your expectations should be correct.
I use compcache myself. I use it with memlimit_kb=32000 disksize_kb=48000 backing_swap=/dev/block/mmcblk0p3 and a swappiness of 20. But I don't expect it to make my system fly. I just expect that more of my apps will stick around rather than killed and reloaded later. So, I am paying a little swapping cost upfront for payback later.
Click to expand...
Click to collapse
Understood about managing expectations. I'm still considering the potential negative impact on battery life as well, since this is one notorious weak spot on the G1 (when it came out you didn't hear huge numbers of people complaining about how SLOW it was, but everyone complained about battery life...).
Do you mind explaining a little about your memlimit and disksize settings? I read a little about those options in the Google Code page, but I can't say I fully grokked the significance or difference.
I also can't seem to find a good explanation of how compcache and backing-swap work together. Most reports on XDA point to massive lag after compcache maxes out, but is it only then that backing-swap kicks in (and maybe a lot of those folks were using the 60 or 100 swappiness settings)? Can Linux-swap and compcache be run in parallel or separately from each other in some way (I'm guessing no)?
ei8htohms said:
Understood about managing expectations. I'm still considering the potential negative impact on battery life as well, since this is one notorious weak spot on the G1 (when it came out you didn't hear huge numbers of people complaining about how SLOW it was, but everyone complained about battery life...).
Do you mind explaining a little about your memlimit and disksize settings? I read a little about those options in the Google Code page, but I can't say I fully grokked the significance or difference.
I also can't seem to find a good explanation of how compcache and backing-swap work together. Most reports on XDA point to massive lag after compcache maxes out, but is it only then that backing-swap kicks in (and maybe a lot of those folks were using the 60 or 100 swappiness settings)? Can Linux-swap and compcache be run in parallel or separately from each other in some way (I'm guessing no)?
Click to expand...
Click to collapse
According to the Dev:
**********************************************************
Usage:
- modprobe ramzswap [memlimit_kb=<val>|disksize_kb=<val>] [backing_swap=<dev>]
memlimit_kb: This param is applicable only when backing_swap is given.
It is limit on amount compressed data stored in memory. Any
additional data is forwarded to backing_swap. It cannot be greater
than backing device size. If missing or 0, default value is used:
15% of RAM or backing device size, whichever is smaller.
disksize_kb: This param is applicable only when backing_swap is not given.
It is limit on amount of *uncompressed* worth of data stored in
memory. For e.g. disksize_kb=1024 means it can hold 1024kb worth of
uncompressed data even if this data compresses to just, say, 100kb.
If missing or 0, default value is used: 25% of RAM.
backing_swap: This is block device to be used as backing store for ramzswap.
It must be a valid swap partition. We move data to this device when we
encounter incompressible page or memlimit is reached. TODO: we may also
move some pages from ramzswap to this device in case system is really
low on memory.
This device is not directly visible to kernel as a swap device
(/proc/swaps will only show /dev/ramzswap0 and not this device).
Managing this backing device is the job of ramzswap module.
Examples:
1) modprobe ramzswap memlimit_kb=10240 backing_swap=/dev/sda2
sets ramzswap limit as 10MB and /dev/sda2 as backing swap device.
NOTE: here /dev/sda2 is a valid swap partition.
2) modprobe ramzswap backing_swap=/dev/sda2
same as (1) but memlimit is set to default: 15% of RAM or size of
backing swap device, whichever is smaller.
3) modprobe ramzswap disksize_kb=10240
sets ramzswap disk size as 10MB.
4) modprobe ramzswap.ko
same as (3) but ramzswap disk size will be set to default:
25% of RAM size.
Once module is loaded, activate this swap with highest priority:
swapon /dev/ramzswap0 -p 100
(-p param set swap priority)
Notes:
- ramzswap stats are exported via /proc/ramzswap
- If you give non-swap partition as backing_swap, nothing bad will happen -
swapon will simply fail to recognize /dev/ramzswap0 as swap partition.
So, in this case, unload the module and reload with correct backing_swap.
**********************************************************
thanks! very interesting
uwonsum said:
According to the Dev:
memlimit_kb: applicable only when backing_swap is given...limit on amount compressed data stored...additional data is forwarded to backing_swap.
disksize_kb: applicable only when backing_swap is not given...limit on amount of *uncompressed* worth of data stored.
Click to expand...
Click to collapse
So if I'm reading this right, memlimit and disksize would never be used together, right? And when backing_swap is NOT used, compcache is using the disksize allocation for uncompressed data, like virtual swap within RAM? Huh?
Once module is loaded, activate this swap with highest priority:
swapon /dev/ramzswap0 -p 100
(-p param set swap priority)
Click to expand...
Click to collapse
This swap priority info seems to directly conflict the info on the CompilingAndUsing page of the Google code project page:
Add ramzswap as swap device
swapon /dev/ramzswap0 -p 1 (give this swap device the highest priority).
Click to expand...
Click to collapse
Is 1 the highest priority or is 100 the highest priority? Is this the same as setting the swappiness? There must be a typo somewhere. Any help?
[EDIT]NVM, "-p 1" seems to be an invalid parameter.[/EDIT]
BTW, I started playing with your (rather more exotic) script from the CM Wheel of Death thread:
http://forum.xda-developers.com/showpost.php?p=4205132&postcount=518
Have you had any further findings about the various settings employed?
Thanks again!
Hi,
i want to setup network traffic sniffing of an application. So I started a proxy on my computer and started the app in the emulator.
It works fine with http but for https traffic it does not work as the cert provided by the proxy is obviously not trusted by the default android os.
So i tried to update the truststore(/system/etc/security/cacertsnew.bks) with my proxy cert.
I copied the file to my computer and added my cert, but i'm having difficulties with putting it back to android.
I remounted the /system in write mode (./adb shell mount -o remount,rw /dev/block/mtblock3 /system) but i get 0 bytes available space, and can't write anything to it.
xxxxx-mac:tools xxxxx$ ./adb shell df
/dev: 47048K total, 0K used, 47048K available (block size 4096)
/mnt/asec: 47048K total, 0K used, 47048K available (block size 4096)
/system: 77568K total, 77568K used, 0K available (block size 4096)
/data: 65536K total, 20304K used, 45232K available (block size 4096)
/cache: 65536K total, 1156K used, 64380K available (block size 4096)
/mnt/sdcard: 129024K total, 1K used, 129022K available (block size 512)
/mnt/secure/asec: 129024K total, 1K used, 129022K available (block size 512)
Do you know any trick to be able to write to /system?
Or is there any way to change the image file to include my modified cacerts.bks file?
Thanks
Come on guys, I know this is not such a tough question for you!
Any big Apks my Z5 tries this error when using built in Apps to SD function..
I'm at a loss.. Card is 32gb with over 20gb available.. Smaller apps are OK, it just seems to be with the bigger applications..
Any ideas what could be causing this.. ??
That being said Sony Storage Checker can move them over without a hitch, sadly it moves anything movable and doesnt allow you to select the apps you wish to move and those you don't..
and the answer... Bad coding from Google it seems..
No wonder my S5 didn't have the issue as it was running Lollipop 5.01
Known to affect at least Android 5.02 and 5.1. Using the Settings / Apps / Move to SD card feature on devices with external sd cards fails with apps larger than a certain size. It throws an error message saying "Couldn't move app. Not enough storage space" no matter how much free space is available. When the framework sends the command to generate the container file on the SD card for the app, it also starts a timer. If the process takes too long, the timer expires. The other part of the bug confuses the framework and sends the wrong notification up (insufficient space).
There is a maximum package size that the App2SD feature can handle due to this bug. That size is a function of the card's write speed, since the timeout is constant. A faster card will permit larger apps to be moved.
Suggestion for a fix would be to calculate a more appropriate timeout value based on the actual write speed * size of data to move + padding, or throw a timeout dialog box asking to abort or continue.
Relevant logcat:
08-07 11:26:41.750 I/LaunchCheckinHandler( 848): Displayed com.android.settings/.SubSettings,wp,ca,352
08-07 11:26:41.750 I/ActivityManager( 848): Displayed com.android.settings/.SubSettings: +352ms
08-07 11:26:41.762 I/Keyboard.Facilitator( 1340): onFinishInput()
.
.
.
08-07 11:27:08.971 I/make_ext4fs( 247): SELinux: Loaded file_contexts from /file_contexts
08-07 11:27:08.971 I/make_ext4fs( 247): Creating filesystem with parameters:
08-07 11:27:08.971 I/make_ext4fs( 247): Size: 240648192
08-07 11:27:08.972 I/make_ext4fs( 247): Block size: 4096
08-07 11:27:08.972 I/make_ext4fs( 247): Blocks per group: 32768
08-07 11:27:08.972 I/make_ext4fs( 247): Inodes per group: 7344
08-07 11:27:08.972 I/make_ext4fs( 247): Inode size: 256
08-07 11:27:08.972 I/make_ext4fs( 247): Journal blocks: 0
08-07 11:27:08.972 I/make_ext4fs( 247): Label:
08-07 11:27:08.972 I/make_ext4fs( 247): Blocks: 58752
08-07 11:27:08.973 I/make_ext4fs( 247): Block groups: 2
08-07 11:27:08.973 I/make_ext4fs( 247): Reserved block group size: 15
08-07 11:27:08.973 I/make_ext4fs( 247): Created filesystem with 11/14688 inodes and 959/58752 blocks
08-07 11:27:09.079 I/Vold ( 247): Filesystem (ext4) formatted OK
08-07 11:27:09.089 E/VoldConnector( 848): NDC Command {98 asec create smdl1534643135.tmp 225 ext4 [scrubbed] 10010 1} took too long (24191ms)
08-07 11:27:09.094 D/DefContainer( 8275): Copying /data/app/com.ironhidegames.android.kingdomrushori​gins.humble-1/base.apk to /mnt/asec/smdl1534643135.tmp/base.apk
.
Click to expand...
Click to collapse
Ah well I needed to buy a faster Micro Sd Card anyway..
Class 10 not enough it seems..
jonoathome said:
and the answer... Bad coding from Google it seems..
No wonder my S5 didn't have the issue as it was running Lollipop 5.01
Ah well I needed to buy a faster Micro Sd Card anyway..
Class 10 not enough it seems..
Click to expand...
Click to collapse
It was a security feature they added, which is a pain in the backside (you don't have write permissions from that file system location to the SD Card)
There is class 10 and then there is class 10 (class 10 is the highest) all it means is guaranteed to be no less than 10MB/s
Hello,
I have 3 Droid Razr HD's that i've managed to hose up. I cannot get them into any usable state.
Issue:
* Phone powers on
* "M" logo with "Dual Core Technologies" shows
* Droid red eye animation loads
* "Welcome" "Choose your language" loads
* Pressing "start" ends with "Please wait, this will take a few minutes" and this just spins forever.
Facts:
* Official Motorola Data Cable
* USB 2.0 port
* I'm on Ubuntu 16.04
* I have Windows 8.1 PRO VM if needed though...
* I cannot get the phones to be recognized by RSD Lite 6.2.4 in this VM
* When I try to flash the stock firmware (VZW_XT926_4.4.2-KDA20.62-15.1_CFC_1FF.xml.zip) using Root Junky's rsd-flash.sh linux script, it fails after writing `recovery` with the following errors:
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 1097312864 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1065859680 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1034406496 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1002953312 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 971471456 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 940014176 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 908552800 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 876706400 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 848497248 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 817044064 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 785844832 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 755759712 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 724302432 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 692779616 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 661322336 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 630585952 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 599100000 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 567589472 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 538651232 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 507165280 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 475695712 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 444242528 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 412719712 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 381262432 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 349809248 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 319117920 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 287664736 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 256182880 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 224729696 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 196082272 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 164596320 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 133143136 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 101689952 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 70236768 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 38754912 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 7301728 is not a multiple of the block size 4096
sending sparse 'system' (30716 KB)...
error: write_sparse_skip_chunk: don't care size 1097312864 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1097312864 is not a multiple of the block size 4096
OKAY [ 2.292s]
writing 'system'...
(bootloader) Preflash validation failed
FAILED (remote failure)
* I've tried every damn thing I can find online.
* I've even tried booting recover then adb sideload and loading the firmware .zip that way. No GO.
Fu*&ing up 3 phones doesn't feel nice. Especially because i'm tech savvy and solid... bummed out.
Anyone want to help?
Thanks
Seattle3D said:
Hello,
I have 3 Droid Razr HD's that i've managed to hose up. I cannot get them into any usable state.
Issue:
* Phone powers on
* "M" logo with "Dual Core Technologies" shows
* Droid red eye animation loads
* "Welcome" "Choose your language" loads
* Pressing "start" ends with "Please wait, this will take a few minutes" and this just spins forever.
Facts:
* Official Motorola Data Cable
* USB 2.0 port
* I'm on Ubuntu 16.04
* I have Windows 8.1 PRO VM if needed though...
* I cannot get the phones to be recognized by RSD Lite 6.2.4 in this VM
* When I try to flash the stock firmware (VZW_XT926_4.4.2-KDA20.62-15.1_CFC_1FF.xml.zip) using Root Junky's rsd-flash.sh linux script, it fails after writing `recovery` with the following errors:
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 1097312864 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1065859680 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1034406496 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1002953312 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 971471456 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 940014176 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 908552800 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 876706400 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 848497248 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 817044064 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 785844832 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 755759712 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 724302432 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 692779616 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 661322336 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 630585952 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 599100000 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 567589472 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 538651232 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 507165280 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 475695712 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 444242528 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 412719712 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 381262432 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 349809248 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 319117920 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 287664736 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 256182880 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 224729696 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 196082272 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 164596320 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 133143136 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 101689952 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 70236768 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 38754912 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 7301728 is not a multiple of the block size 4096
sending sparse 'system' (30716 KB)...
error: write_sparse_skip_chunk: don't care size 1097312864 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1097312864 is not a multiple of the block size 4096
OKAY [ 2.292s]
writing 'system'...
(bootloader) Preflash validation failed
FAILED (remote failure)
* I've tried every damn thing I can find online.
* I've even tried booting recover then adb sideload and loading the firmware .zip that way. No GO.
Fu*&ing up 3 phones doesn't feel nice. Especially because i'm tech savvy and solid... bummed out.
Anyone want to help?
Thanks
Click to expand...
Click to collapse
If you used rsd lite on windows only it would work. Try finding a pc windows based or or duel booting linux and windows. I ran into same problem but when i slapped my windows hdd in my notebook and flashed with rsd lite I had no problems. Everything worked.
OGdroidster said:
If you used rsd lite on windows only it would work. Try finding a pc windows based or or duel booting linux and windows. I ran into same problem but when i slapped my windows hdd in my notebook and flashed with rsd lite I had no problems. Everything worked.
Click to expand...
Click to collapse
Ok, at this point i'm willing to try. There are only Windows 10 devices around me. Is there a version of RSD Lite that you know works on Windows 10?
It's weird that there is not an official download for this software. Feels weird downloading it from forums/sketchy sites with no SHA or MD5 to ensure security.
Seattle3D said:
Ok, at this point i'm willing to try. There are only Windows 10 devices around me. Is there a version of RSD Lite that you know works on Windows 10?
It's weird that there is not an official download for this software. Feels weird downloading it from forums/sketchy sites with no SHA or MD5 to ensure security.
Click to expand...
Click to collapse
First you install drivers for device here is the link: http://forum.xda-developers.com/attachment.php?attachmentid=3187938&d=1425146663 These are 64 bit windows system drivers you need for device if the system is 32 bit let me know. now you need rsd lite to install after you install the drivers. here is the link: http://forum.xda-developers.com/attachment.php?attachmentid=3388466&stc=1&d=1435873887
now you flash the firmware with rsdlite here is the link for the firmware
https://www.androidfilehost.com/?fid=24269982087011676
If you run into problems while flashing just hit me up and I'll guide you through it. Good luck.
OGdroidster said:
First you install drivers for device here is the link: http://forum.xda-developers.com/attachment.php?attachmentid=3187938&d=1425146663 These are 64 bit windows system drivers you need for device if the system is 32 bit let me know. now you need rsd lite to install after you install the drivers. here is the link: http://forum.xda-developers.com/attachment.php?attachmentid=3388466&stc=1&d=1435873887
now you flash the firmware with rsdlite here is the link for the firmware
https://www.androidfilehost.com/?fid=24269982087011676
If you run into problems while flashing just hit me up and I'll guide you through it. Good luck.
Click to expand...
Click to collapse
Is the VZW_XT926_4.4.2-KDA20.62-15.1_CFC_1FF.xml.zip equal to 183.46.15?
Seattle3D said:
Is the VZW_XT926_4.4.2-KDA20.62-15.1_CFC_1FF.xml.zip equal to 183.46.15?
Click to expand...
Click to collapse
It was the last update from moto so it should be