yashsingh1/xdaforums huggingface dataset:
[Thunderbolt Android Development] DroidTh3ory:
Exactly you might as well utilize it. When done, you can see and feel the difference in the smoothness, response, and overall fluidity of the ROM.

Only one way to cured skepticism ... Try it. :)
[Thunderbolt Android Development] DroidTh3ory:
That... Or Imoseyon has a disable Swap file in the FROYO Lean Kernel.
[Thunderbolt Android Development] nbledsoe:
Hopefully not a dumb question but will this work on any kernal?

Mah BAMF Thunderbolt
[Thunderbolt Android Development] DroidTh3ory:
Honestly... I'm can't say with 100% surety. I have always used IMO's. I can't see it hurting anything to try.

If you do, report back.
[Thunderbolt Android Development] houseboatwayne:
Droid you need to post that YouTube link again. It made a believer out of me.
[Thunderbolt Android Development] DroidTh3ory:
Its in my sig. Right next to "This is what happens when your phone catches Gingeritis. :)
[Thunderbolt Android Development] awtenterprise:
I have been contemplating stating this thread for some time. I have been a avid user of the swap file since I first got my TBolt.

As of this post I am running BAMF 1.7.

Uptime 35:00:00

(terminal, $free,) 18652 used.

This tells me the swap file is indeed working.

What does yours read??

AdamT.
[Thunderbolt Android Development] Gimpeh:
Does task manager show the swap space as regular ram?
[Thunderbolt Android Development] Pithism:
this is pretty cool. thanks for showing us how to mr droid.
[Thunderbolt Android Development] buzzdroidx:
will this help with the camera laggyness? and is this overclocking my processor? just swap setting and some system tweaks right?
[Thunderbolt Android Development] buzzdroidx:
sup gimpeh havent seen you since the G1 days good to see you still here
[Thunderbolt Android Development] Pithism:
whats the video all about??? saw it but couldn't tell what you were trying to do. sorry for going off topic.

So ill guess ill ask a real question as well. What types of apps should this actually helps us with? gaming multitasking?
[Thunderbolt Android Development] LexusBrian400:
No matter what... no matter how many times I run it or reboot... its a no-go on GB 2.7.1 kernel.

thanks anyway
[Thunderbolt Android Development] buzzdroidx:
ok followed the guide and swap still says 0. tried opening email and market etc no change hmmm
[Thunderbolt Android Development] Gimpeh:
You as well. Were the originals :P
[Thunderbolt Android Development] chocoyo00:
Does the swap number increase over time? does it reset when you reboot?
[Thunderbolt Android Development] LexusBrian400:
Its easily checked if you're running SetCPU in the info section I believe
[Thunderbolt Android Development] LexusBrian400:
always says:

cant open: data/imoseyon/swap blah blah

aha I give up.
[Thunderbolt Android Development] dopediculous:
That not for terminal. That's for u to find under ur systems data folder to make sure swap was enabled n created. Use file explorer n go to the data directory under system to find ur imoseyon folder if created correctly. Hope this helps.

PS. Paste this in terminal and you will know if you did it right for sure.

bash /data/imoseyon/checkimosey.sh

4Geezy ON DopeDiculous's ROOTED TBeezy!
[Thunderbolt Android Development] LexusBrian400:
I know its not for terminal, but I appreciate it.

That is the output terminal gives after trying to create/enable swap

I did run the checkimosey.sh - It said - Everything is good. Yet, no swap is being used.
[Thunderbolt Android Development] Pithism:
do this files take up space on our internal memory just checked and it took a little chunk out of it?
[Thunderbolt Android Development] nbledsoe:
If you do, report back.

Well I'm running Bamf 1.7 and like the guy said earlier his is running great. I've never used Imo's kernals or anyone's for that matter except the ones that come with Bamf. I'll try it and see how it works.
[Thunderbolt Android Development] jmaher1023:
I just did this on BAMF 1.7 running adryn's control freak kernel and it worked like a charm!
[Thunderbolt Android Development] lanceman5000:
Mine is indicating that I have 400mb available for swap rather than the 200mb I thought this was supposed to create. I tried flashing a couple of different kernels to reset things, but it is still showing 400mb available. Will Imoseyon's disable swap zip file reset things?

Edit: The disable swap zip removed 200mb from the available swap, leaving me with 200mb. I must have run the enable swap zip at an earlier date and forgot about it, leaving me with twice the available swap space. But it looks like everything is set up and working correctly for me now.
[Thunderbolt Android Development] dkyle:
Got mine working using the kernel included with das bamf 2.0
[Thunderbolt Android Development] Quantify:
I have the same 400 mb swap file. Can't find the disable swap zip file though. Can you share the link?

EDIT: figured it out. Ran remove instead of create, now I have my 200mb swap.
[Thunderbolt Android Development] dajogejr:
Ditto...

And I must say, screen to screen, moving around apps (mostly XDA Premium, games, etc.) it is snappier without a doubt....
[Thunderbolt Android Development] DroidTh3ory:
Have you try the alternate finish in the OP?
[Thunderbolt Android Development] DroidTh3ory:
Try running the alternate step 4 now. Let me know.
[Thunderbolt Android Development] chrisjm00:
Is there a reason people only want 200 as opposed to 400?
[Thunderbolt Android Development] Character Zero:
Will this reduce the life of the Flash since you will be constantly writing to it?
[Thunderbolt Android Development] mrmarshall428:
DroidTheory any reason why mine is showing all 0?
[Thunderbolt Android Development] DroidTh3ory:
Have you rebooted since the creation?

Also, try the alternative Step 4 then reboot.
[Thunderbolt Android Development] Dork6243:
Open some apps and try again it will go up.
[Thunderbolt Android Development] techspecs:
This is my concern as well, especially with emmc being the suspected failure point leading to bricks. I guess like anything else it's just a matter of what the user considers to be acceptable risk.
[Thunderbolt Android Development] mrmarshall428:
I'll give this a try and let you know.
[Thunderbolt Android Development] Quantify:
For those of us on a one year contract... it's a reasonable tradeoff.
[Thunderbolt Android Development] dopediculous:
I have been using Imoseyons kernels forever and its more than obvious he knows what he's doing. Because I already had one of his kernels installed, all I had to do was flash the enable swap file and the speedtweak (2nd) file through cwr then once my system loaded went into terminal and typed "su" enter then " sh /data/imoseyon/swap.sh create " enter and that was it! Because I already was using an imoseyon kernel I probably didn't have to flash the 2nd file, but Oh well. Hope this helps...

4Geezy ON DopeDiculous's ROOTED TBeezy!
[Thunderbolt Android Development] DroidTh3ory:
There is only 2 files... The enabler and the speedtweak. ????
[Thunderbolt Android Development] SCDroid:
this for froyo also? I'm on Imoseyons version 2.5.1
[Thunderbolt Android Development] DroidTh3ory:
Yes, any.
[Thunderbolt Android Development] M@|ice:
did this yesterday, im glad i did.
[Thunderbolt Android Development] dopediculous:
What I ment was I didn't need to flash and reboot multiple times as stated. Just flashed both once and when phone booted ran su and sh /data/imoseyon/swap.sh create through terminal. That was it. Sorry if any confusion.

4Geezy ON DopeDiculous's ROOTED TBeezy!
[Thunderbolt Android Development] esoteric1311:
http://wiki.cyanogenmod.com/index.php?title=Swap_and_Compcache
[Thunderbolt Android Development] mzimand:
I use to use swap on my OG Droid but never thought the TB needed it. I just enabled it on Bamf 1.7 running imos's latest kernel and I am still not sure my TB "needs" it but I for sure notice a difference in certain tasks. The most noticeable is when hitting the Personalize Button and going to "Skins". The skins open twice as fast as without swap. My Gallery seems to open faster also.

One weird effect is that my Linpack scores are down about 5-8 points with swap enabled. Not sure why this is but I have run Linpack around 20 times and cannot get even close to 50 mflops and without swap would easily get 50-52. My top score with swap is 46
[Thunderbolt Android Development] gehx:
I have 400mb available for swap too....is this bad?
[Thunderbolt Android Development] Dork6243:
Isn't all 768MB of RAM flash memory anyway, that gets written to and from all day long even without swap?
[Thunderbolt Android Development] Auronis1:
this is not overclocking your processor.

after watching your gingeritis video I had to try this.. on perfect storm 1.3 / imoseyon 2.4 (just flash enable_swap.zip) and it is scary how fast this phone is... like a first-person-shooter-constant-twitch-reaction reminding me of my counter strike days

If you're worried about things like "especially with emmc being the suspected failure point leading to bricks"... don't flash leaked/unreleased/unfinished software and you should be fine, most of these issues are from GB
[Thunderbolt Android Development] Haze69:
Quick question, do we have to re enable the swap and ext4 every time we flash a new kernel or Rom? Or is it a one time ? Oh and btw i followed your post on doing it in one clockwork session and all worked out fine, seems easier than the steps mentioned in the first posts..
[Thunderbolt Android Development] ridobe:
Well, after getting zeros for swap upon many reboots/retries, now I have numbers for available and free but zero for used. I have it activated but it wont use it lol!
[Thunderbolt Android Development] DroidTh3ory:
Yeah, its a pain in the ass but it has to be setup after a kernel change. I have done it soooo many times. Lol.

The one session will work, but you still needs a reboot after the first boot. I just thought for purposes of the How To... Step by step would be best. :)
[Thunderbolt Android Development] DroidTh3ory:
Have you tried using Alternative Step 4?
[Thunderbolt Android Development] Haze69:
Thanks man your awesome
[Thunderbolt Android Development] adrynalyne:
Swap and compcache were useful for phones that have 256mb or less of ram. We have 768mb of ram, 600 which is usable. Ram is always faster than emmc, and swapping to and fro the emmc not only increases a lot of premature wear, but its slower. The performance increases folks are seeing are likely due to rebooting. There is no measurable way to see any performance increase.

The real bottleneck of this device is not the amount of ram, but the speed and performance of the ram. Check quadrant, we have some seriously pitiful scores. This can be remedied through the kernel some, however, with some modding.

Benefits of swap:

--Keeps performance high when ram is full and Android is constantly swapping out apps. This is only going to happen with low ram devices.

Disadvantages of swap:

--Increases wear to emmc, or sdcard, depending on how setup.

--Can actually hurt performance of higher memory devices.

--Slows down over time.

I have always offered swap support on my kernels and busybox binaries, but its a toy, imo.

References:

http://wiki.cyanogenmod.com/index.php?title=Swap_and_Compcache

http://www.google.com

personal experience
[Thunderbolt Android Development] quepaso:
I was waiting on your reply to see what was up, didnt think we needed this. Thanks.
[Thunderbolt Android Development] adrynalyne:
Just a point of reference. I played with swap on my Samsung Fascinate with a class 10 sd card, which is faster than our emmc, Im sure. I was so excited because it was very, very fast.

Then I checked my swap settings and realized I had never enabled it in the first place. Never underestimate the power of perceived performance or placebos.
[Thunderbolt Android Development] tbm48813:
Adding the swap did make a noticeable difference in my case. There is no longer chop between switching screens with my live wallpaper running, and the camera seems to haul ass when it starts up and moves around. It is pretty awesome.

One weird thing about this is that with bamf 1.x I used to get great battery performance, after going to gb it dropped. I went back to bamf 1.x and battery sucked still. Even after a full wipe of everything and reinstall, batt sucked. I had 100% battery before starting this swap file setup, after first flash/reboot my battery said 70%. I let it charge all the way up and now it looks like my battery is acting normal again!

I cannot say why this changed my battery performance, but I did do a full wipe going back to 1.x, I triple checked that.
[Thunderbolt Android Development] Haze69:
What would be the processes for deleting the swap? I tried flashing disable swap, but when I type su, free in android emulator, it shows I still have swap
[Thunderbolt Android Development] DroidTh3ory:
Lol, everyone has there opinions about SWAP and its validity. Just like the CM link that was posted... It is a hot debated topic.

Do as you wish, but you can't ignore the fluidity after enabling it.

This post is not debate for or against. Everyone can decide how it works for themselves.

:)
[Thunderbolt Android Development] adrynalyne:
There are still some important subjects regarding it that need to be discussed. Increasing wear to emmc is a bad thing.
[Thunderbolt Android Development] Haze69:
Lol i p lan on using it but I want to wipe everything and do a fresh install of everything, but I can't seem to delete swap, that's why I was asking how to do so
[Thunderbolt Android Development] Quantify:
Just restore the nandroid you made before you installed it :-). That's what I did...the remove command in swap.sh removed the swap file in /data/imoseyon, but not the one in /data. manually deleting it, as noted does not work because it gets re-established by the modified init.d when you reboot.
[Thunderbolt Android Development] mastibeta:
Anyone else having an issue doing app installs after enabling swap...also i am having the issue where it shows swap made, but none of it is being used. tried alt step 4, got an error when trying to make file saying its in use.
[Thunderbolt Android Development] DroidTh3ory:
If you're wiping it will be gone. No need for anything else.
[Thunderbolt Android Development] Zarboz:
Sweet thunderbolt has stupid ram tho. If i can use this on kingdom it'll make it lots smoother
[Thunderbolt Android Development] nolmt60243:
Adjust vm.swappiness

I think it is also a good idea to know how to adjust the swappiness.

Here is a site that helps explain what swappiness is: http://unixfoo.blogspot.com/2007/11/linux-performance-tuning.html

To adjust, go into Terminal Emulator and type in these commands, less the quotes:

"su" ENTER

"sysctl -w vm.swappiness=XX" ENTER, replace the XX's with a number between 0-100. Imoseyon recommends about a setting of 40 for a 200mb swap file size. You can adjust this as you see fit. I believe you can use echo as well as sysctl, but don't quote me on that, as I haven't used echo, since sysctl works for me.

Good Luck! And if you break your phone, not my fault.
[Thunderbolt Android Development] LexusBrian400:
This seemed to work for a while... but after a day or so.. hardcore lag. Anyone else? Just wondering if its just me and a rogue app or something of the like..

thanks
[Thunderbolt Android Development] DroidTh3ory:
I have always ran SWAP... Days/Week at a time. NEVER have seen lag.
[Thunderbolt Android Development] DroidTh3ory:
Those are the default settings provided by the tweak file. So, unless you want to mess with them... Its good.
[Thunderbolt Android Development] LexusBrian400:
Yeah something serious "just happened" then. Didnt change any apps, i'm gonna clear cache and re-do it. Thanks for the rep..
[Thunderbolt Android Development] dopediculous:
Just updated to the new GB imoseyon kernel and didnt have to redo swap steps. They stuck n still work! Yaaaay!

4Geezy ON DopeDiculous's ROOTED TBeezy!
[Thunderbolt Android Development] sublimaze:
I

1. By the time anyone's TB is suffering from emmc wear (excluding the recent bricks), they will have upgraded to a newer phone anyway

2. Quadrant scores are bogus. Hardware manufacturers know this & optimize their devices to inflate quadrant scores. You, adrynalyne, of all people should know this

3. Perception *is* reality, placebo effect or not. If you poll the people that have enabled swap vs ppl that haven't (including ppl using your kernels), I bet my next paycheck ppl using swap have a better overall experience with their phone regardless of what rom they're using
[Thunderbolt Android Development] ripster:
What is the best speedtweak settings to use after the SWAP? Running perfect storm 1.3.
[Thunderbolt Android Development] Breezer23:
Hmmm... after what Adren said I"m not so sure I want to do this now, haha.
[Thunderbolt Android Development] sublimaze:
I

Depends on what you want from your phone. If you want max battery, do battsaver. If you want max performance, do 1.9x. If you want something in between, do normal or extreme. As far as governors, ondemand is most aggressive. Smartass has given some ppl lag/wakeup issues. Experiment & find what works best for you
[Thunderbolt Android Development] ripster:
Seem like battsaver with ondemand woks best for me! Thanks!
[Thunderbolt Android Development] snicklet:
I also got hardcore lag after using for awhile. I had to go back to having it disabled. As soon as I did the phones performance instantly went back up. I can definitely see a performance difference with using swap... Just not better performance.
[Thunderbolt Android Development] g00s3y:
Def see a noticeable improvement, nothing crazy speed wise, but the whole system is def much more fluid in movement and such. Been running like this for a couple days now, not getting any of the degrading performance people are talking about, great write up.
[Thunderbolt Android Development] earthtodigi:
Mine is also showing 400 MB for swap, but I'm not seeing the disable swap zip anywhere. Can somebody help me out please?
[Thunderbolt Android Development] adrynalyne:
I wouldn't bet paychecks with me. Just sayin. I only bet on things I know I will win.

Anyway...quadrant scores are bogus as perceived performance. They do however, show shortcomings and potential bottlenecks. You of all people should know this. Point in case, SGS devices score low on IO in Quadrant, and their performance IS degraded. Only ext4 conversions fix that.

Call perception what you like, but tell the recent bricked people that emmc will not wear out before they need a new device. Hence I mentioned it.

PS- Perceived performance is a lot like NOS stickers on a Geo Metro.
[Thunderbolt Android Development] snicklet:
If I put nos stickers on my thunderbolt will that turn it into 2ghz blaze machine... Even if it is only my perception that it is.

You make a good point. I can think real hard that my thunderbolt is the fastest the world has ever seen but the reality is that its not any faster than yours or the next persons.

What you said makes sense.
[Thunderbolt Android Development] sublimaze:
Lol. If you're so certain that swap is trivial & doesn't enhance the user experience, then why don't you do as I suggested & poll the ppl that are using swap and get their take on it? Just because something isn't promoted by you doesn't mean it's not worth trying. And if you read my previous post carefully, you will see that I excluded ppl that bricked their phones from the discussion.

PS - If you always take what you feel is the "safe bet" & aren't willing to assume some risks in life, you will never be a leader, just a follower. You, of all ppl, should know that :)
[Thunderbolt Android Development] khanam:
I installed cm7 0.3 over 0.2 with just cache and dalvik wipes and also flashed a new kernel. The swap file still shows up even though I never flashed the zips.

Not sure I want to run swap until the issues are better understood by me especially because of brick issues. So how do I delete the mod completely? Some posts back it was posted that deleting the swap file won't work.

Sent from my thunderbolt
[Thunderbolt Android Development] adrynalyne:
I'm not gonna stoop to your level. Now you are just being a jerk.

I could start a poll if you like. I bet it turns out like my kernel A and kernel B test from before. Never underestimate the very human ability to imagine things.

I find it especially interesting that you attacked my character. I'll be the bigger man and not return the favor.

I don't care what people do, one way or another. I just gave a very realistic view ont he subject, including the dangers. You can exclude bricked users if you like, but if there are faulty emmcs out there, this will accelerate the issue, where as nornally the phone may go to EOL without ever bricking. It is important that folks hear both sides of the story, whether you like it or not.
[Thunderbolt Android Development] sublimaze:
Wow, I expected a response with a more condescending tone. Now you are just being pithy. I'm kinda disappointed... :confused:

I'm not underestimating the power of the imagination. Your statement simply proves my earlier point that Perception Is Reality. If someone believes their phone performs better with swap enabled -- whether it is placebo effect or not -- then so be it. Let them enjoy their placebo-enhanced device.

I never attacked your personal character. I just took a stab at your unwillingness to take a bet unless you are certain you will win. Life offers no guarantees... unless you count the morbid assurance that one day it will end.

I really don't care what everyone else does, either. I've decided that swap makes my phone more enjoyable to use, and if others agree, that's great. If not, that's fine too. To each his own.
[Thunderbolt Android Development] Daswolven:
I gave this a run, on stock rooted froyo. Ran great man, nothing but smooth. For about 15 minutes. Phone started to drag, then proceeded to lock up.

I played with every conceivable combination of wiping, clearing, and tweaking. No dice. After about twelve battery pulls, I restored from bootloader, because the disable swap file didn't work.

Just my experience.
[Thunderbolt Android Development] sublimaze:
I assume you were running stock kernel as well? Try it with imoseyon's kernel
[Thunderbolt Android Development] bitfix:
Ok Neo haha. If what youre saying about perception being reality is based off anything else but facts, then you don't know what your talking about. What you are describing is something called false hope. Do you believe that earth is flat as well? I mean you cant see anything further than the horizon. Stop trying to be philosophical, especially when what you're preaching doesn't hold water.

I am not saying that what this thread's topic is about is false hope. Just wanted to make that clear. I do not have any knowledge on this topic to say what is true and what is not.

Not trying to backseat mod but can we get back on topic because I want to see what everyone's experiences are while doing this.
[Thunderbolt Android Development] sublimaze:
Read my posts again. I am not preaching "false hope". I am simply stating a subjective opinion that my phone runs better with swap enabled. If someone feels their device performs better with a particular tweak/mod, then it is in their benefit to use that tweak/mod. Quadrant & other benchmarking apps do not tell all. They do not quantify everything that contributes to the total user experience. I can show you phones that score 2000+ on quadrant but don't have the smoothness & fluid feel of another phone that scores 1600. Test the swap file yourself & see if you like your phone better with or without it. If you like it, great. If you don't, great. Again, to each his own.
[Thunderbolt Android Development] bitfix:
Dude, drop it already. It is over. Stop trying to justify your and move on.

So has anybody figured out why after flashing a new rom and/or kernel has not wiped the Swap partition? I have see that this issue is only affecting a handful of people and not everybody but was just curious if anyone has figured out why it is not clearing.
[Thunderbolt Android Development] adrynalyne:
That is precisely what my experience has been in the past.