[Q] Any SGS4G Kernels with Swap Support? - Samsung Galaxy S (4G Model)

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

Related

can Vodoo Lag Fix be Ported for us? - Post from the I9000

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

Has a rom kernel been built with swap enabled?

I would give it a shot but I'm not sure how to make a compatible zip for revolver..
I get the function not implemented error when I try to swapon currently...
The fix...
"Try this: grep SWAP /usr/src/linux/.config CONFIG_SWAP=y
If you don't have it set then you need to configure the kernel set it. Swap is in the General setup section and it's not called swap, it's called "Support for paging of anonymous memory."
"
at the risk of sounding like a ****, I need to point out that the Transformer has 1GB RAM. That's twice as much as most Android phones. Do you really need a swapfile as well? Have you tried enabling Compcache or zRAM or whatever they're calling it these days? You'll probably run into the same issue (incompatible kernel), but you may have better results than a swapfile.
I made a swap partition, it wouldnt turn on.. i havent used zram and the other...never heard of them. I'm also aware that my transformer has 1gb of ram, but not all of it is accessible. I'd just like to squeeze as much performance as i can out of this thing and adding a swap partition seems like it would be useful.
pierut said:
but not all of it is accessable.
Click to expand...
Click to collapse
And how did you work that one out?
pierut said:
but not all of it is accessable.
Click to expand...
Click to collapse
The base dalvik system uses ram, and what it uses is excluded from the total in android.
Its all there, its all being used.
Another perfect display of how to slap some-one in the face using the shovel of logic.
Part is dedicated to the gpu.
Sent from my Transformer TF101 using xda premium
And none of this is even relevent to my original post.
Sent from my Transformer TF101 using xda premium
If my question was along the lines of 'how do i dwindle a discussion of performance improvement down to petty name-calling' it might have been useful insight.
Sent from my Transformer TF101 using xda premium
It is relevant to your OP as you provided a reason why you want a swap on the TF and the replies explain why your reasons are incorrect.
Having a swap file will not improve performance as the write speed of a SDcard/SSD is greater than the write speed of a ram module.
Which, considering how Android uses RAM, will slow the TF down.
Also, what "petty name calling" are you speaking of?
I wasn't asking if I was correct or not. I was asking if anyone had enabled swap. This has added performance for other android devices and I really don't see how this device is any different.
I'm sure there is a plethora of ways to handle ram, however I doubt that most people know these methods, myself included.
In reference to name-calling, a `slap in the face with the shovel of logic` might not be name-calling but it is certainly along the same lines.
Heh.
Swap is really only useful when your system is running out of free RAM frequently. I used to enable swap on my HTC Magic back in the day because of how little RAM it had. Nowadays though, it's not a problem - the Transformer has roughly five times the memory of my old Magic. Android is (in general) really light in its memory hunger, thanks to its intelligent paging system (inactive apps are paged out of main memory and remain in a suspended state).
Are you actually seeing situations where your device is running out of memory? I've never come across one. Just sayin'
i have instances that i assume are due to a lack of memory. laggyness of the ui... and the browser crashing when there is a resource intensive flash application running.
Sent from my Transformer TF101 using xda premium

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

intoducing the swap partition in futher release(if any)?

I can't sure whether this help the ramlessness poor milestone.
when we check the running status , we can easily see there are lots of programs restarting. They keep restarting because of no ram.
is setting up the swap partition helps to reduce this hell repeating process?
this may not help the performance in benchmark but i think it helps the user experience. is it ?
Unfortunately, the locked bootloader don't allow using kernels other than motorola provided. And, the kernel provided by motorola don't support swap.
swap tweaks can be done via modules same dsi but it's harder
Are there any roms out that use it?
Sent from my Milestone using XDA App
gwl123 said:
Are there any roms out that use it?
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
As far as my knowledge extends, no, there are no roms that use it. (note: this is as far as my knowledge extends to, so it might not be accurate)
Would be nice swap would solve alot of milestones runing out of memory issues .
Sent from my Milestone using XDA App
No, there isn't swap support for the Milestone. Swap support on the Linux kernel can only be builtin directly on the kernel, not as a module, and since the MS kernel is locked, we can't build and flash our own kernel with swap support.
So yes, the only solution is trying to hack swap support as a module, but since swap support wasn't meant to be used as a module in the first place, that would be quite a feat, sort of like jamming a square peg in a round hole - a doable, but very complex job, much more so than the dsifix (that's a walk in the park compared to swap module). It's also a not too rewarding one to the Linux community in general because the resulting work would only be usable with the specific Milestone kernel. And there are those that believe that swap support on the Milestone wouldn't improve things a lot - it could actually make things worse, it would probably require a very high performance microSD card to not get any slowdowns at all (nevermind getting speedups). That's one of the points that discourages development a bit, because the benefits of developing a swap module are dubious at this point, compared to the huge amount of work that would be required.
There were a few guys (2 or 3, don't remember) in the milestone dev channel that stated that they "were going to look into it", but they haven't been heard from in a while and those of them that have been heard from, haven't mentioned anything about swap module development since, so it's safe to assume it's not being worked on at all.
And rest assured, if there was a swap module already, it would trickle down to the ROMs available here pretty quickly, so the assumption that there could be some ROM for the MS using swap while others aren't is kind of silly
I also think the same: SWAP can resolve problems connected to low RAM available, but the price is slow down almost everything I think.. but I'm curious to see! =)
Yes, the info given by cronot is pretty correct.
As far as I know, neither me nor Skrilax nor Nothize nor anyone else is currently working on such swap module.
When I try to avoid the word 'impossible', then I have to say 'extremely difficult'...
Cronot summed it up very well.
Would a class 10 memory card make any difference just wondering?
Sent from my Milestone using XDA App
swap
I found this tread Link:http://forum.xda-developers.com/showthread.php?t=1309712
This enables swap on webtop and it says it works on the milestone so maybe we could implement this or someone could try this out
We don't have webtops... Can't see how that could possibly work on our phones.

[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

Categories

Resources