can Vodoo Lag Fix be Ported for us? - Post from the I9000 - Epic 4G Android Development

Great idea Chainfire.
When a user first decided to use a modified/custom/different firmware on their Samsung Galaxy S, they usually go through these steps:
1. Flash with Odin/Kies
2. Flash update.zip for root
3. Flash other update.zip (GPS fix, battery mod, etc) as necessary
4. Do a lag fix.
It took me a few hours and reading through countless posts to see the pro's and con's for each lag fix.
I will try to go through them as succintly as possible, and if anyone needs more explanation you can either click the link or do a search.
Feel free to correct me, this is how I see the lagfix as when I applied and tested it
Before starting, here is the internal structure of non volatile memory (where data persist after reboots) in Samsung Galaxy S:
- 128MB of very fast NAND (some people incorrectly called this ROM)
- 16/8GB of internal SD with 2GB set aside for application installs (this is why you see your internal SD as either 13+ or 5+ remaining, the 2GB shows up as Internal Phone storage)
- your micro SD card (external SD)
The lag is due to the inefficiency of the file system used in the 2GB (/data) partition for applications, stalling a lot of the read/write operation. You can search this for further reading if you want to.
Lag fixes
- MoDaCo's lagfix: Better than stock on old F/Ws but about the same as JM1/2/5 and JP1/2/3
This lagfix uses the 128MB very fast NAND to store your applications instead.
Pro: very very fast applications opening/switching performance
Cons: You are limited to 128MB of apps including built in apps .
- Mimocan's lagfix: Significant improvements in performance which can also be benchmarked. Requires an external SDcard formatted partly in fat and partly ext3 or ext4.
This moves the /data files into the ext3/ext4 partition on an external microSD card
Pros: very fast, lots of storage space for apps
Cons: You will be unable to unmount your external SD card when the phone is on, and you need an external SD card for this to work
- OneClick Lagfix by RyanZA: Based on mimocan but using the internal SD card. Results are better than with basic mimocan and it is a lot easier to install.
This creates a file inside the 2GB partition that is mounted as /data.
Pros: very fast, lots of storage space for apps, easy to install and undo, available in the market.
Cons: if you install too many apps you won't be able to roll back the lag fix unless you delete some apps. Superseded by RyanZA lag fix 2.3 beta
Erroneous free space on Internal Phone storage (/data)
There are still stalls when installing apps, and when accessing android applications database
- CFLagFix by Chainfire: Based on mimocan, approximately the same as RyanZA's fix.
pretty much the same as OneClick Lagfix.
look above for Pros
Cons: There are still stalls when installing apps, and when accessing android applications database
-Voodoo lag fix by supercurio: a new class of total lag fix
Instead of creating a file inside the rfs partition and mounting it as /data/data, the voodoo lag fix updates the kernel so that the the 2GB partition is using ext4 instead or rfs. This gives the best possible lag fix.
Pros: fast, smooth, across everything you do. The way galaxy s should have been in the first place. The best and most consistent lag fix with no remaining lag left that is caused by rfs.
Support with other kernel mods are starting to show: backlight mod, OC/UV kernel
Cons: Incompatible with clockworkmod recovery
I am now using voodoo lagfix beta 4 only
http://project-voodoo.org/
Love the Vodoo color would like to try this as well...they are getting OUTRAGIOUS numbers in quadrant!

1deviant said:
Great idea Chainfire.
When a user first decided to use a modified/custom/different firmware on their Samsung Galaxy S, they usually go through these steps:
1. Flash with Odin/Kies
2. Flash update.zip for root
3. Flash other update.zip (GPS fix, battery mod, etc) as necessary
4. Do a lag fix.
It took me a few hours and reading through countless posts to see the pro's and con's for each lag fix.
I will try to go through them as succintly as possible, and if anyone needs more explanation you can either click the link or do a search.
Feel free to correct me, this is how I see the lagfix as when I applied and tested it
Before starting, here is the internal structure of non volatile memory (where data persist after reboots) in Samsung Galaxy S:
- 128MB of very fast NAND (some people incorrectly called this ROM)
- 16/8GB of internal SD with 2GB set aside for application installs (this is why you see your internal SD as either 13+ or 5+ remaining, the 2GB shows up as Internal Phone storage)
- your micro SD card (external SD)
The lag is due to the inefficiency of the file system used in the 2GB (/data) partition for applications, stalling a lot of the read/write operation. You can search this for further reading if you want to.
Lag fixes
- MoDaCo's lagfix: Better than stock on old F/Ws but about the same as JM1/2/5 and JP1/2/3
This lagfix uses the 128MB very fast NAND to store your applications instead.
Pro: very very fast applications opening/switching performance
Cons: You are limited to 128MB of apps including built in apps .
- Mimocan's lagfix: Significant improvements in performance which can also be benchmarked. Requires an external SDcard formatted partly in fat and partly ext3 or ext4.
This moves the /data files into the ext3/ext4 partition on an external microSD card
Pros: very fast, lots of storage space for apps
Cons: You will be unable to unmount your external SD card when the phone is on, and you need an external SD card for this to work
- OneClick Lagfix by RyanZA: Based on mimocan but using the internal SD card. Results are better than with basic mimocan and it is a lot easier to install.
This creates a file inside the 2GB partition that is mounted as /data.
Pros: very fast, lots of storage space for apps, easy to install and undo, available in the market.
Cons: if you install too many apps you won't be able to roll back the lag fix unless you delete some apps. Superseded by RyanZA lag fix 2.3 beta
Erroneous free space on Internal Phone storage (/data)
There are still stalls when installing apps, and when accessing android applications database
- CFLagFix by Chainfire: Based on mimocan, approximately the same as RyanZA's fix.
pretty much the same as OneClick Lagfix.
look above for Pros
Cons: There are still stalls when installing apps, and when accessing android applications database
-Voodoo lag fix by supercurio: a new class of total lag fix
Instead of creating a file inside the rfs partition and mounting it as /data/data, the voodoo lag fix updates the kernel so that the the 2GB partition is using ext4 instead or rfs. This gives the best possible lag fix.
Pros: fast, smooth, across everything you do. The way galaxy s should have been in the first place. The best and most consistent lag fix with no remaining lag left that is caused by rfs.
Support with other kernel mods are starting to show: backlight mod, OC/UV kernel
Cons: Incompatible with clockworkmod recovery
I am now using voodoo lagfix beta 4 only
http://project-voodoo.org/
Love the Vodoo color would like to try this as well...they are getting OUTRAGIOUS numbers in quadrant!
Click to expand...
Click to collapse
I believe we have diffrent ext partitions than on the other galaxy s variants.
Sent from my SPH-D700 using XDA App

the epic doesn't need a lag fix. the quadrant numbers are due to a flaw in quadrant. the lag fix isn't really providing that much better performance (except fixing the lag for phones that need it), quadrant just blows the score out of proportion. Cyanogen was able to tailor an exploit to show this happens on any phone: http://briefmobile.com/cyanogen-demonstrates-quadrants-flaws
as for voodoo color, I don't believe there is a general port yet, but it is built-in to the MixUp kernel.

dwyw42 said:
the epic doesn't need a lag fix. the quadrant numbers are due to a flaw in quadrant. the lag fix isn't really providing that much better performance (except fixing the lag for phones that need it), quadrant just blows the score out of proportion. Cyanogen was able to tailor an exploit to show this happens on any phone: http://briefmobile.com/cyanogen-demonstrates-quadrants-flaws
as for voodoo color, I don't believe there is a general port yet, but it is built-in to the MixUp kernel.
Click to expand...
Click to collapse
I have the mixup kernel w/vodoo and love it! I just saw this NFO and wanted a more educated explaination...now I have it!
Forever looking to run faster, just one of my many flaws..never satisfied.
Do love my Epic!!!

Its included in the boss rom and GenuisDogs kernels

Wait a minute? Are you saying that its possible for the voodoo lag fix to be ported to the Epic 4g and thus making this fast phone faster? Am I reading correctly? (I saw on his page that they are planning to work on te Epic as well)

We do not need the lag fix. The lag fix will not make our phone any faster.

voodoo cons: needs more battery than oclf or chainfire's fix
my experience is, that voodoo is less smooth (less means a bit less but its great too - not laggy)

Eazail70x7 said:
Wait a minute? Are you saying that its possible for the voodoo lag fix to be ported to the Epic 4g and thus making this fast phone faster? Am I reading correctly? (I saw on his page that they are planning to work on te Epic as well)
Click to expand...
Click to collapse
I talked to Supercurio about me porting it before, but we came to the conclusion that it's unnecessary. We don't use the same NAND chips as the other phones, so we don't have to deal with all the lag **** except what's introduced with RFS. And changing from RFS breaks clockworkmod, so I am avoiding it.

All this is nice,but why is nobody talkin about a fix to use whole 512mb of ram instead 324mb?I had MTS3GS with 600mhz cpu and 512 ram and I hate to admit but it was faster than my Epic even with Sence.If someone could come up with a fix to use whole 512mb instead of 324mb then this phone would fly,this is the only thing that hinders this phone.Rest of the ram is used for cache(ramdisk).
What needs to be done is whole 512mb used for ram and fast NAND used for cache.324mb ram is not sufficient to run android smoothly.

lviv73 said:
All this is nice,but why is nobody talkin about a fix to use whole 512mb of ram instead 324mb?I had MTS3GS with 600mhz cpu and 512 ram and I hate to admit but it was faster than my Epic even with Sence.If someone could come up with a fix to use whole 512mb instead of 324mb then this phone would fly,this is the only thing that hinders this phone.Rest of the ram is used for cache(ramdisk).
What needs to be done is whole 512mb used for ram and fast NAND used for cache.324mb ram is not sufficient to run android smoothly.
Click to expand...
Click to collapse
I'm trying to decide if you are trolling this thread or if you recently suffered head trauma. Those are the two most likely things that I can imagine would cause someone to say the MTS3GS is anywhere near as fast as the epic.

richse said:
I'm trying to decide if you are trolling this thread or if you recently suffered head trauma. Those are the two most likely things that I can imagine would cause someone to say the MTS3GS is anywhere near as fast as the epic.
Click to expand...
Click to collapse
B,talk to ur moms like that fagit,i had mytouch slide and it was just as fast if not faster with haf of cpu power.

lviv73 said:
B,talk to ur moms like that fagit,i had mytouch slide and it was just as fast if not faster with haf of cpu power.
Click to expand...
Click to collapse
Could someone translate this from "stupid" into english so I can read it and possibly respond?

Lol I'm having a difficult time myself.....is it really faster than the epic? Unlike some people, I don't post nonsense that I know nothing about...I would rather ask first and try and get a correct answer
Sent from my SPH-D700 using XDA App

specialk0324 said:
Lol I'm having a difficult time myself.....is it really faster than the epic? Unlike some people, I don't post nonsense that I know nothing about...I would rather ask first and try and get a correct answer
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
Yeah man,mytouch slide was the fastest phone I ever owned(with 2.1),i think that having 512mb ram is better than having 1ghz cpu.If Epic used 512MB it would most likely be even faster.
Which I tried explaining to the last dude before that ***** came at me wrong without a reason,but its the intenet what can you do,lol.

Just to squash any kind of confusion in this thread...
In no way is the Mytouch Slide faster than the Epic 4G.
/thread

infamousjax said:
Just to squash any kind of confusion in this thread...
In no way is the Mytouch Slide faster than the Epic 4G.
/thread
Click to expand...
Click to collapse
Go to tmobile and use one with stock 2.1 its just as fast as epic.I dont know what they did to that underpowered phone but its fast.It might not be as fast watching videos,loadind games,etc.But android system itself is fast and more snappy then Epic,i compared the two,gotta be extra ram.

Don't take this the wrong way....but if it didn't load games or play movies as fast, doesn't that at least in part make the epic faster?
Sent from my SPH-D700 using XDA App

infamousjax said:
Just to squash any kind of confusion in this thread...
In no way is the Mytouch Slide faster than the Epic 4G.
/thread
Click to expand...
Click to collapse
+1 agreed, there is no way.
Sent from my SPH-D700 using XDA App

Related

Swap on captivate

I run the risk of sounding extremely ignorant and retarded, but I really gotta ask this. I also own an hd2, or atleast used to, until my girl crapped it up. There is something called swap in the hd2 which allows you to use a portion of the sdcard as system ram, promoting increased multitasking and preventing refreshing of apps. This is on cm7 as well as sense based hd2 roms. I had my captivate for more than a year now, and one of the biggest issues of stock based roms is the huge amount of memory taken by tw and samsung crap, causing aggressive app killing and not allowing a lot of multitasking. When I am on miui(never going back to anything else! ) I have huge amounts of ram, allowing me to freely multitask. But still I guess I could use 256mb more! So why can't we implement swap like hd2 and make our pones a lot lot lot better??? What's stopping us? Kernel source? ROM source? I would be very grateful if someone could take the time to explain this to me....
Sent from my cell phone. DUH
CWM gives swap capability as do many tweaks implemented in custom ROMs. If rooted you can d/l different apps to install performance and SD tweaks (e.g., System Tuner tweaks swap to 2048mb). However, you still need an external microSD in your Cappy.
Oh it does?? I thought that ext4 partioning was just for storing apps, Like as in app2sd. that is, it increases the rom, not the ram.
Sent from my cell phone. DUH

[Q] Any SGS4G Kernels with Swap Support?

Are there any other existing kernels for sgs4g besides the ones on the first page?
Reason I ask is because I'm trying to use a swap partition, but it seems these kernels are not swap enabled.
Why has nobody bothered to compile any custom kernels for the sgs4g? I am trying myself, but no luck so far.
Any ideas?
Thanks,
S
sconsylman said:
Are there any other existing kernels for sgs4g besides the ones on the first page?
Reason I ask is because I'm trying to use a swap partition, but it seems these kernels are not swap enabled.
Why has nobody bothered to compile any custom kernels for the sgs4g? I am trying myself, but no luck so far.
Any ideas?
Thanks,
S
Click to expand...
Click to collapse
I'm not sure I can answer the whole question as to why we don't use swap, but I can say that we just got the GB kernel source, and people are still working on it and haven't posted anything.... yet. Patients...
But, I noticed that the Bali 3.3 kernel (KD1) also did not have swap. Maybe drhonk and Krylon360 tried it and swap didn't help or improve performance.
The rest of the kernels you'll find are either stock leaks, or modified stock leaks. Samsung doesn't like swap I guess. Or swapping on SD/MMC sucks hard.
I know in newer kernels (3.0 and greater), there is a new driver for mtd-swap, but it is still very new and I doubt anyone will use it in production for quite some time.
Using swap on Android is not such a great idea, it goes a little bit against native Android memory management. Then benefit can be that more programs will stay in memory and won't need to reload, but the phone will become a lot slower, even with small partitions like 32MB. With 128MB or higher it will become almost unusable. Ask me how I know
I think the need for swap was gone once phones started coming with 512mb+ ram. I used swap all the time (also required for GB) on my MT3G, since it only had like 192mb ram. It never made the phone work faster at all, in fact it usually slowed down over time running, it really just made it so stuff didn't force close due to running out of memory. This shouldn't be needed on this or any new phone.
So Bali 3.3 is a GingerBread build? Didn't know that. Kinda figures I guess. Thought I had already tried it though and couldn't bootload. I'll give it another whack. His stuff is awesome of course. I'm not demanding it, mind you, just trying to see why it would not be included. Kind of like not having a /proc/config.gz file in some Android builds, don't really know the reason why they're not included (results in not able to mount ubuntu builds, anybody have these let me know .
This appears to be the only source of kernels for our phones, no swap support enabled though. http://forum.xda-developers.com/showthread.php?t=1194032
(Thanks dr.honk!)
As for the swap partition not making sense, I have a hard time understanding why it wouldn't just provide a static and beneficial extended memory source. I am familiar with the memory management features of Android, and actually don't use any additional task killers as I've found them to be conflicting often.
But Android is built off the Linux system/kernel, so why does dedicated swap work with a large OS but not the smaller but similar Android OS/kernel?
Thanks!
sconsylman said:
As for the swap partition not making sense, I have a hard time understanding why it wouldn't just provide a static and beneficial extended memory source. I am familiar with the memory management features of Android, and actually don't use any additional task killers as I've found them to be conflicting often.
But Android is built off the Linux system/kernel, so why does dedicated swap work with a large OS but not the smaller but similar Android OS/kernel?
Click to expand...
Click to collapse
In short, the phone will become annoyingly slow.
Swap works on kernel level. Android will see this as additional virtual memory, so it will keep more programs alive and won't unload them. For example a browser will hog a lot of memory causing other programs' memory pages to be swapped. Kernel doesn't differentiate between programs, so, for example, the launcher memory pages will be swapped. Or even the active program you are currently working with can have part of its memory in the swap. Next time you try to do something (like scrolling), the memory pages will have to be brought back. Flash memory is not particularly fast (in fact for swap it is very slow), so you can we waiting for some noticeable time for many actions to complete. You'll have a lot of jerky movements, delays, temporary freezes, forget any smoothness. It is just annoying, trust me, I've tried
Ah, ok so the swapping is noticeably slower than the ram on the phone (512mb). I would not figure that it would be too much of a factor, especially on class 6+ sd cards. So there is absolutely no way of coding the system apps to be ram based, and everything else to be swappable? I'm surprised that this has not been done, but I assume that the reason is the expanding active ram capacities on new phones.
So were you experimenting on the sgs4g, or was it another model? And if so, what were you using? Froyo swap enabled kernel?
The HTC Thunderbolt has some similar specs.
http://forum.xda-developers.com/showthread.php?t=1106420
More ram 768mb vs 512mb, more internal storage 4g vs 1000mb, but uses a 1g single core scorpion processor instead of our 1g single core hummingbird. Some are having good luck with this device and swapping (taking all "facts" with a grain of salt). There is more like this too, with a number of market apps to support swapping: Swapper2, Swap for Root, Diaper swappers forum (oops, that one doesn't work for some reason).
sconsylman said:
So Bali 3.3 is a GingerBread build? Didn't know that. Kinda figures I guess.
Click to expand...
Click to collapse
No, Bali 3.3 is Froyo.
I did try it on this phone few months ago when I was still on Froyo with Bali kernel. Don't try to load in on GB, wait until DrHonk makes a new one, he actually may soon.
I personally can't imagine how anybody could use swap on Android and like it, but everybody's mileage varies. The benefit of using swap wouldn't be speed but rather less program reloads. For example you browse the web when a call comes. You answer the call, maybe go to address book, or take some notes, or send some pictures, etc. Everything will be a little slow and jerky, but with swap enabled you have better chance that when returning to the browser it will still be on the same page without reloading from the server.
Just checking again to see if anyone knows of any KJ6 kernels with swap enabled, as I'm currently getting memory warnings from running Backtrack 5 non-gnome. It works pretty well otherwise (besides the lack of space, thanks obsolete fat32).
??
sconsylman said:
Just checking again to see if anyone knows of any KJ6 kernels with swap enabled, as I'm currently getting memory warnings from running Backtrack 5 non-gnome. It works pretty well otherwise (besides the lack of space, thanks obsolete fat32).
??
Click to expand...
Click to collapse
No swap. what version of the kernel are you running?
bhundven said:
No swap. what version of the kernel are you running?
Click to expand...
Click to collapse
Sent from my SGH-T959V using xda premium
2.6.35.7 KJ6-CL694138
It has [email protected]#9 signature on it. I know we had spoken briefly about swap. What linux are you running?
I know that the Debdroid program is successfully running swap with good results, but it won't mount right with the specific scripts (our phones working mount scripts are different, I linked them in my linux post). I can take some coding from that programs scripts but of course it won't work without the kernel having swap built in.
Sent from my SGH-T959V using xda premium

[Q] RAM

Is there a way to use memory in ur sdcard as ram for ur phone, so i can increase the performance. i think u can, so if u now how to can u post a link?
And i am using MikRunny rom
B RAD G 296 said:
Is there a way to use memory in ur sdcard as ram for ur phone, so i can increase the performance. i think u can, so if u now how to can u post a link?
And i am using MikRunny rom
Click to expand...
Click to collapse
IIRC, there is a mod to use either a partition or a file on your MicroSD card for SWAP space... which is basically where programs that normally reside in ram would go when not in use... think its one by sparksco...
however, I dont see hardly any kernels with it built in these days... its a GOD SEND on my HD2 and Hero... Id love to use SWAP partition on all my devices...
hope someone more knowledgeable about whats out will reply
First this is the wrong thread for questions and answers.
And yes we have a few kernals that allow swap. But the rom as well needs to have that available from what I recall. Think cm uses 128 max though. I know there is a miui rom that uses swap here too. Does come in handy. You will need to reformat your sd card for swap if your going to use it. There is also ext3 and 4 and that acts like available storage space for your phone. I would only use 1-1.5 gb for that though. Some of these big games only want to go on your sd card.
Sent from my PG06100 using Tapatalk
One of our biggest supporters of swap has actually decided it's not such a good idea.
And it does not speed things up. It slows things down. Even with a class 10 sd card.
VICODAN said:
One of our biggest supporters of swap has actually decided it's not such a good idea.
And it does not speed things up. It slows things down. Even with a class 10 sd card.
Click to expand...
Click to collapse
what that makes no sense how does it slow down
B RAD G 296 said:
what that makes no sense how does it slow down
Click to expand...
Click to collapse
I was using swap for quite some time and it seemed to work really well for awhile and then started to cause my phone a lot of lock-ups after awhile. I think it was just eating up my sdcard too much. And it has been proven that swap wears on your sdcard quite a bit. I don't think it's worth it. There's a script made by Darkky that patches memory leaks in roms that seems to work good. I include these in a lot of roms and my memory always stays above 80mb.
WARNING: LONG WINDED POST... read at your own risk...
VICODAN said:
One of our biggest supporters of swap has actually decided it's not such a good idea.
And it does not speed things up. It slows things down. Even with a class 10 sd card.
Click to expand...
Click to collapse
What people fail to understand is that SWAP or fake ram is INHERENTLY IOPS sensitive... that being said, NONE of the Class 10 MicroSD cards have had ANYWHERE NEAR good enough IOPS for SWAP intensive operations... On my HD2 I went through testing 10 MicroSD cards of different Class's and sizes to find out which gave me the best performance while using SWAP and what gave me the best IOPS, Sadly, out of them all, only a Class 4 and Class 6, where anywhere decent enough to be good enough to function as SWAP devices... I mean 4 other ones worked... but you could tell with these 2....
B RAD G 296 said:
what that makes no sense how does it slow down
Click to expand...
Click to collapse
It makes perfect sense... lets take game files from an SSD and transfer them to a HDD... while RAM and MicroSD both use NAND/Flash memory, its still a medium transfer as well! ERGO if you have a crappy IOPS MicroSD card, your going to notice slowdowns and wait times while things in RAM are swapped out to SWAP and vice versa... I guess the best comparison is using the SLEEP function on Windows 7 VS the Hibernation function...
sparksco said:
I was using swap for quite some time and it seemed to work really well for awhile and then started to cause my phone a lot of lock-ups after awhile. I think it was just eating up my sdcard too much. And it has been proven that swap wears on your sdcard quite a bit. I don't think it's worth it. There's a script made by Darkky that patches memory leaks in roms that seems to work good. I include these in a lot of roms and my memory always stays above 80mb.
Click to expand...
Click to collapse
yeah SWAP eats the CRAP out of your MicroSD card... proven fact... HOWEVER, if your like me, 8GB and 16GB cards are rather cheep these days, I totally dont mind spending $10-30 every 6~ months buying a new MicroSD card if it keeps my OLD device speedy... (pun intended)
I got a link around here that I posted somewhere with like 4-6 different MicroSD test run results... will edit this post and link it later...
Oh, and yeah, this belongs in Q&A... but I cant blame you... its a legacy device... and I only visit the Android development section for any device I use... :X
EDIT1: "halrulez" my HD2 running on the NIGHTLY CM7 builds has ZERO problems using/utilizing my 1GB SWAP partition... its all kernel/romsetup based...
EDIT2: some things I thought I should point out after I re-read my own post... in the Windows Sleep V Hibernation statement, when in Sleep, the RAM is kept on, and thus requires no loading time, in Hibernation, RAM is stored on the HDD/SSD and must be transferred back onto RAM before it will boot... I also forgot that I backup my MicroSD's contents with Dropbox and Box software, as well as backup's that are performed whenever I plugin my Phone or MicroSD to my desktop or laptop...
There are apps like juwe11's ram app, rom toolbox has a memory settings, script manager in combination with v6 supercharger script (which I highly recommend, as it helps prevent sense reloads), auto killer memory, etc. Each phone has a "brain" of it's own. My phone likes v6 or auto killer memory, but other phones like juwe11's ramscript/app. Trial and error. Good luck, and post your results if you want to.
Sent from my PG06100 using Tapatalk
Hammerfest said:
WARNING: LONG WINDED POST... read at your own risk...
What people fail to understand is that SWAP or fake ram is INHERENTLY IOPS sensitive... that being said, NONE of the Class 10 MicroSD cards have had ANYWHERE NEAR good enough IOPS for SWAP intensive operations... On my HD2 I went through testing 10 MicroSD cards of different Class's and sizes to find out which gave me the best performance while using SWAP and what gave me the best IOPS, Sadly, out of them all, only a Class 4 and Class 6, where anywhere decent enough to be good enough to function as SWAP devices... I mean 4 other ones worked... but you could tell with these 2....
It makes perfect sense... lets take game files from an SSD and transfer them to a HDD... while RAM and MicroSD both use NAND/Flash memory, its still a medium transfer as well! ERGO if you have a crappy IOPS MicroSD card, your going to notice slowdowns and wait times while things in RAM are swapped out to SWAP and vice versa... I guess the best comparison is using the SLEEP function on Windows 7 VS the Hibernation function...
yeah SWAP eats the CRAP out of your MicroSD card... proven fact... HOWEVER, if your like me, 8GB and 16GB cards are rather cheep these days, I totally dont mind spending $10-30 every 6~ months buying a new MicroSD card if it keeps my OLD device speedy... (pun intended)
I got a link around here that I posted somewhere with like 4-6 different MicroSD test run results... will edit this post and link it later...
Oh, and yeah, this belongs in Q&A... but I cant blame you... its a legacy device... and I only visit the Android development section for any device I use... :X
EDIT1: "halrulez" my HD2 running on the NIGHTLY CM7 builds has ZERO problems using/utilizing my 1GB SWAP partition... its all kernel/romsetup based...
EDIT2: some things I thought I should point out after I re-read my own post... in the Windows Sleep V Hibernation statement, when in Sleep, the RAM is kept on, and thus requires no loading time, in Hibernation, RAM is stored on the HDD/SSD and must be transferred back onto RAM before it will boot... I also forgot that I backup my MicroSD's contents with Dropbox and Box software, as well as backup's that are performed whenever I plugin my Phone or MicroSD to my desktop or laptop...
Click to expand...
Click to collapse
Really doesn't get explained any better than this.
Hammerfest said:
WARNING: LONG WINDED POST... read at your own risk...
What people fail to understand is that SWAP or fake ram is INHERENTLY IOPS sensitive... that being said, NONE of the Class 10 MicroSD cards have had ANYWHERE NEAR good enough IOPS for SWAP intensive operations... On my HD2 I went through testing 10 MicroSD cards of different Class's and sizes to find out which gave me the best performance while using SWAP and what gave me the best IOPS, Sadly, out of them all, only a Class 4 and Class 6, where anywhere decent enough to be good enough to function as SWAP devices... I mean 4 other ones worked... but you could tell with these 2....
It makes perfect sense... lets take game files from an SSD and transfer them to a HDD... while RAM and MicroSD both use NAND/Flash memory, its still a medium transfer as well! ERGO if you have a crappy IOPS MicroSD card, your going to notice slowdowns and wait times while things in RAM are swapped out to SWAP and vice versa... I guess the best comparison is using the SLEEP function on Windows 7 VS the Hibernation function...
yeah SWAP eats the CRAP out of your MicroSD card... proven fact... HOWEVER, if your like me, 8GB and 16GB cards are rather cheep these days, I totally dont mind spending $10-30 every 6~ months buying a new MicroSD card if it keeps my OLD device speedy... (pun intended)
I got a link around here that I posted somewhere with like 4-6 different MicroSD test run results... will edit this post and link it later...
Oh, and yeah, this belongs in Q&A... but I cant blame you... its a legacy device... and I only visit the Android development section for any device I use... :X
EDIT1: "halrulez" my HD2 running on the NIGHTLY CM7 builds has ZERO problems using/utilizing my 1GB SWAP partition... its all kernel/romsetup based...
EDIT2: some things I thought I should point out after I re-read my own post... in the Windows Sleep V Hibernation statement, when in Sleep, the RAM is kept on, and thus requires no loading time, in Hibernation, RAM is stored on the HDD/SSD and must be transferred back onto RAM before it will boot... I also forgot that I backup my MicroSD's contents with Dropbox and Box software, as well as backup's that are performed whenever I plugin my Phone or MicroSD to my desktop or laptop...
Click to expand...
Click to collapse
That is a good explaintion. But personally I don't want to be the guy that releases a rom with swap already in it and get the guilt of someone's sdcard breaking. As drob311 said there's apps and other ways of making it work and my rom/kernel does still support these other ways of using it.
sparksco said:
That is a good explaintion. But personally I don't want to be the guy that releases a rom with swap already in it and get the guilt of someone's sdcard breaking. As drob311 said there's apps and other ways of making it work and my rom/kernel does still support these other ways of using it.
Click to expand...
Click to collapse
you do know that you can enable SWAP in a rom, but make it contained to SWAP PARTITION only? ergo if they made a SWAP partition on their MicroSD card... hence you have zero liability if said card breaks... you have to have SOME knowledge to repartition a MicroSD card properly for a SWAP partition
BTW, I fully support enabling it that way, it also leads the way to making the script for SWAP file vs partition easier because the ROM is ready for it, its just not enabled unless someone inserts the custom script OR has the proper partition for SWAP!
Hammerfest said:
you do know that you can enable SWAP in a rom, but make it contained to SWAP PARTITION only? ergo if they made a SWAP partition on their MicroSD card... hence you have zero liability if said card breaks... you have to have SOME knowledge to repartition a MicroSD card properly for a SWAP partition
BTW, I fully support enabling it that way, it also leads the way to making the script for SWAP file vs partition easier because the ROM is ready for it, its just not enabled unless someone inserts the custom script OR has the proper partition for SWAP!
Click to expand...
Click to collapse
Yes I know. I already had a swap script for swap partition for cm7 but you need a custom cmparts.apk since cm decided to disable all swap on their roms. Plus I didn't really feel like repartitioning my sdcard once it started acting up. I'll probably just make a seperate add-on to flash over the roms for it if people want it.
sparksco said:
Yes I know. I already had a swap script for swap partition for cm7 but you need a custom cmparts.apk since cm decided to disable all swap on their roms. Plus I didn't really feel like repartitioning my sdcard once it started acting up. I'll probably just make a seperate add-on to flash over the roms for it if people want it.
Click to expand...
Click to collapse
im cool with that
actually, if someone can get YES/NO in CWM like on my HD2 you can put it all in the rom and they can choose right at the get-go
that being said, you can still use the custom cmparts.apk even w/o using swap partition... not that big of a conflict since if you have SWAP partition it works if not its disabled... only the functionality is present... and you dont have to maintain a separate script/package/whatever...
also, if your SDCard is acting up, use the SDCard formatter do a full format, then use HD low level format tool... or if you bought HDD Regenerator like me, its easy to find the health of your SD Media... but thats a moot matter... and im done talking for the night i think... (well the night ends in 3min... :X )
~
You can actually use compcache with out swapping to sd. But any swap introduces latency so it negates most gains achieved. So more apps might not get killed off as quick allowing them to reopen faster but forground apps suffer from the latency and compression.
http://code.google.com/p/compcache/
Sent from my PG06100 using xda premium
zenulator said:
You can actually use compcache with out swapping to sd. But any swap introduces latency so it negates most gains achieved. So more apps might not get killed off as quick allowing them to reopen faster but forground apps suffer from the latency and compression.
http://code.google.com/p/compcache/
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
AFAICT non of our kernels support compcache. It's a patch you have to apply to the kernel itself in order to make it work.
http://code.google.com/p/compcache/wiki/Patches
THANK YOU
ok i would like to say thanks for ur help.
AND I NO THAT IT IS THE WRONG THREAD FOR ME TO POST THIS BUT THIS PHONE IS NOT THAT BIG AND NO ONE LOOK IN GENERAL FORUMS FOR THIS ONE. SO I PUT IT WHERE I WOULD GET THE MOST ANSWERS. BUT THANKS AGAIN
B RAD G 296 said:
ok i would like to say thanks for ur help.
AND I NO THAT IT IS THE WRONG THREAD FOR ME TO POST THIS BUT THIS PHONE IS NOT THAT BIG AND NO ONE LOOK IN GENERAL FORUMS FOR THIS ONE. SO I PUT IT WHERE I WOULD GET THE MOST ANSWERS. BUT THANKS AGAIN
Click to expand...
Click to collapse
I actually understand the reasoning.... hell I forget about general and q&a sometimes
Sent from my HTC Desire HD using Tapatalk
strapped365 said:
I actually understand the reasoning.... hell I forget about general and q&a sometimes
Sent from my HTC Desire HD using Tapatalk
Click to expand...
Click to collapse
willful ignorance... I flat out ignore the general and Q&A sections... unless I have a question not directly related to a rom...
@Sparksco... none out support compcache... that blows arse... I am glad then that I still use my HeroC (with compcache, you can DEFINITELY feel a SPEED UP rather then down ) as my home Read/Music/Browse device... well that and its extended battery and more responsive touch screen... (yes, i know, new update fix's this.. but I aint tried it yet)... Id beg you to include it in your next kernel/rom... but your deadset on not (its like 2WayCallRecording and No2WayCallRecording Kernels for my HD2... lol!)
Hammerfest said:
willful ignorance... I flat out ignore the general and Q&A sections... unless I have a question not directly related to a rom...
@Sparksco... none out support compcache... that blows arse... I am glad then that I still use my HeroC (with compcache, you can DEFINITELY feel a SPEED UP rather then down ) as my home Read/Music/Browse device... well that and its extended battery and more responsive touch screen... (yes, i know, new update fix's this.. but I aint tried it yet)... Id beg you to include it in your next kernel/rom... but your deadset on not (its like 2WayCallRecording and No2WayCallRecording Kernels for my HD2... lol!)
Click to expand...
Click to collapse
Thanks for all the insight and I have taken allot in from this whole discussion.
Sent from my PG06100 using Tapatalk
I was told in a thread that 128 was Max on swap but I'm always willing to try new things. I did come from my old Heroc was a great phone to first start of on, till it took a crap on me.,lol meaning my mother in law threw it in the washing machine. Then my son threw my wifes in the toilet. Was great because of the best buy protection. Loved the old device but the shift is like night and day. Don't really use the keyboard. what is all I would need to do to use more swap? I haven't had any lock UPS what so ever. Class 4 8GB btw.
Sent from my PG06100 using Tapatalk

My Note is getting really slow

Recently my Note started getting very slow and sometimes lags... I clean memory and it sometimes helps for a while but most of the time it doesn't change much (although normally it uses max. 900MB anyway, so more than 1GB is free). I used trim in the past and it helped, but now it doesn't change a thing. I have 3GB free space, nothing really runs in background that could affect performance. The most lagging app seems to be Chrome (so I sometimes think maybe its newest version is the culprit), but others also lag sometimes (including the launcher).
I have a clean rom installed - normal Samsung latest update with root included, nothing fancy.
Could this be some hardware failure (flash problem maybe)? Or is it only software and I should clean the system or something? I have many things installed, but not many running. I tried using Greenify but it didn't change much.
I have had that a couple of times and normally find it is a badly behaving app. A full wipe and then just putting back the apps you really need one by one has always fixed it for me.
If you have a custom recovery, format your cache partition. Mine got horribly slow, I formatted cache and now it is very speedy again.
Sent from my SGH-T999L using xda app-developers app
How to format ??
masondoctorjt said:
If you have a custom recovery, format your cache partition. Mine got horribly slow, I formatted cache and now it is very speedy again.
Sent from my SGH-T999L using xda app-developers app
Click to expand...
Click to collapse
How is this done ?
Thanks. I will try to clear cache and find out which app might be causing problems.
try using LagFix to trim the garbage on the ssd.
I used trim before - didn't help.
By default my Note uses pegasusq governor with speeds from 25MHz to 1.7Ghz (so I suppose I have non-stardard kernel, I don't remember what I installed though). :laugh:
When I switch to interactive governor it works MUCH better, but I also rise the minimum 25MHz to something higher (currently I have 225MHz as minimum) - it looks as if it sometimes can't wake completely from a very low CPU setting and gets stuck on low setting (lagging like hell)...
Or maybe my kernel is buggy - I should clean the whole tablet and start over with new ROM and a standard kernel or something... I just have too many things there to even attempt that right now and too little time.
Thanks for your help, anyway.
Cache files by apps
We have had two issues with one of our note tablets.. The 32 gb one seems to not have this issue.But Bonnie my spouse uses hers more then i do for social media stuff . Hers is a white original 16 gb. I know there is slight hardware differences.
1 . tablet getting super slow.
2. Storage space wrong and being taken up for no reason.
I found on a website that helped do not remember the site
Down load a app from play store called Disk usage.
Look thou the apps in the chart. You will likely find 1 or more apps using a huge amount of cache files. For our tablet its always good Plus that is the worse .
the file was almost 5 gb.
Once you find the app that is causing such a huge cache file Go into settings/ apps
then find that app and delete its Cache.
It should speed up the device and restore lost storage space.
This is a KNOWN issue . i see many ask about in the past. I just found this solution.Sorry if its already be discussed or found
Thanks. I think this is the same problem - I got rid of the lags by freeing 3GB of space on the internal SD Card. Now it's just like new - no lags whatsoever.
Next time I will buy a tablet with at least 32GB so it will be harder to fill up.
Magnesus said:
Thanks. I think this is the same problem - I got rid of the lags by freeing 3GB of space on the internal SD Card. Now it's just like new - no lags whatsoever.
Next time I will buy a tablet with at least 32GB so it will be harder to fill up.
Click to expand...
Click to collapse
Or you could use FolderMount to move the Android folder to external sd. That tends to free up a lot of space.
Sent from my GT-N8013 using Tapatalk

Slow Input in /data f2fs

I am having slow input speeds according to A1 sd benchmark, 1.17MB/s. The tablet also seems very slow. I am using CROMi-X 5.4 Resurrected. I have been using the rom for about a month now. I wasn't sure if I installed it correctly the first time so I reinstalled it, making sure to format /data to ext4 in TWRP, then to f2fs when flashing rom. I confirmed /data is f2fs in terminal emulator. Am I missing something or is this normal? Should I move to data2sd? I get read/write of 24/15 MB/s on my sd card. I get read speed of 41MB/s on /data. Also, my sd card is not recognized in TWRP. It is a 64 GB Samsung evo class 10.
I appreciate all the views. But no replies, so I'll add some more info I've collected
Disk Speed Test:
Read: 4.7MB/s
Write 1.0MB/s
SD Tools
Write: 26.8MB/s
Read: 43MB/S
SD Tools seemed faster than other benchmarks, so I tested my external SD card:
Write: 102.2MB/s
Read: 166.6MB/s
So at least it agrees that the internal speeds are much slower than on my external card.
I get a Quadrant score of 7570 in Performance Mode.
I'm confused, as I thought f2fs was supposed to solve the i/o speed issues. I'm considering Data2SD, but, as far as I can tell, most roms don't even support this feature, I assume because the opinion is that with f2fs It's no longer needed.
I'll mention again that my experience with the tablet is that it feels slow, launching apps, switching between apps, times which make it feel like an i/o bottleneck.
Is CROMi-x a slow rom? Any opinions on what rom I should use?
Is anyone else having trouble in TWRP with the size of the SD card? Does veryone use 32GB? As I said my 64GB isn't recognized.
Should I try a different benchmark?
ANY replies would be greatly appreciated. Any opinions on any of these issues or anything anyone thinks I should try would be a big help! Thanks in advance!
Look, this tablet has crappy hardware: the emmc has just very low quality, slow memory. Nothing can fix that. But certain things can help with it and one of them is f2fs.
IMO f2fs worked better than data2sd so I don't think it's worth trying, but then: It would be a great learning experience, so why not give it a shot....
Next roms you can try are Tim's KatKiss roms. All of them are great, I'm currently playing around with Nougatella and it's impressive. For this device impressive.
You have to compare any custom rom to stock. And they are almost all better. But none of them will turn this tablet into a speed freak.
To get the most out of this tablet: Stay away from social media apps, stay away from apps that update in the background in general like Tapatalk, news apps, weather, widgets of any kind etc, use as few Google apps as you can...
In short: with just a gig of memory and saddled with a slow emmc, this tablet is still good for certain purposes. But as a daily driver? I don't have the patience.....
Oh - and TWRP just does not play well with some microSDs and if I remember correctly the 64 gig Samsung Evo was one of them. You do have it formatted fat32 right?
I'm on timduru's kisskat MM 029. My TF700 has never run better and I will switch to his N variant when it gets a little more duru love . But, his ROM has put life back into these tablets, most of which had been shelved! Sure it's a lag bag. But now it's MUCH MUCH better and I use mine everyday again. Just flash the MM version and see for yourself and make sure to do a clean install and follow the instructions to the letter.
If that tablet doesn't have any abnormal issues I'm pretty certain you'll be happier.
I just installed katkiss nougatella and now it's running great. The only thing I did differently, besides that it's a different rom, is that after formatting \data to ext4 I reformatted to f2fs while still in TWRP. With the previous ROM I did a full format to ext4 but formatted to f2fs using the installer. In case that helps someone else with this problem.
I now get write speeds around 15MB\s in benchmark programs, and apps run great and browser OK.
Thanks to those who commented and to all who even took a look. What a great community to keep these tablets alive.

Categories

Resources