Related
Hi everyone,
What about adding swap support to custom kernels to overcome SGW ram shortage? Couldn't post to dev forum so posted here. Please someone reply.
I have my SGW now for about one month and its my first android device.
I havevsome years ofvexperience with Linux and while i was playing around with my phone i have experienced som lag while switching homescreens on Go Launcher.
I have quite some stuff on screens and ex taskmanager widget shows me
that my mem is easily filled when doing some more stuff.
My phone got root and terminal also set up so thought
i go make a swap file on internal sd to give phone possibility
to swap mempages out of ram when needing mor mem.
Been there done that, saw that even if swap helper progs (i.e. mkswap,swapon,
swapoff) exist gives error that kernel lacks swap support.
Dont know why swap not implemented in stock rom, went ask internet for
custom kernel for SGW. Reading Kezras custom rom thread and beeing unable to post
questions to him on his thread , got me here.
I ve also read on internet that there are custom kernel for other devices with
swap activated. Though our fon has quite good processor it lacks ram,
so i wonder if custom kernels here have swap activated and perhaps start discussion here about pros and cons.
Thanx for any replies.
Hi its me again,
searched and found this thread for Htc that points out it could make sense to add swap to phons with little ram but strong cpu .
Check it out here.
http://forum.xda-developers.com/showthread.php?t=1463843
Sent from my GT-I8150 using XDA App
polifemo said:
Hi its me again,
searched and found this thread for Htc that points out it could make sense to add swap to phons with little ram but strong cpu .
Check it out here.
http://forum.xda-developers.com/showthread.php?t=1463843
Sent from my GT-I8150 using XDA App
Click to expand...
Click to collapse
But, is our Wonder short of RAM, or short enough to require swap partition on slooooow SD, or comcache using precious processing cycles to compress/decompress ??
Would using memory management, such as zeppelinrox V6 TurboCharger, not be more appropriate?
V6 Main thread
Latest Beta's
Without having to further reduce RAM for comcache!!
or swap partition on SD which is much slower than RAM?
But, I agree, it would be interesting and useful to have Custom ROM, which supported swap or comcache, even for the ability to compare and contrast.
But, there will always be a trade-off when using either comcache or swap....it's just a question of whether the individual user finds it acceptable.
Hi there irishpancake! Just testing the V6 supercharger myself seems pretty ruthless...keeping my used RAM at 230MB almost permanently and lag free! Doesn't quite have the same effect with a custom launcher but TW is flying. I think ur right about our device needing memory management more than anything.
Sent from my GT-I8150 using XDA App
@irishpancake
I ve tried the script you suggested,
and it 'feels' very promising.
I appreciate also your speakout for activating swap support in custom kernels/roms so anyone could choose freely what way to go.
Still virtual ram don't interferes with good memory managment and
with swapspace you have a little extra even if you dont use it and the
slow access is relativated through paging. Wonder if one can set page granularity in kernelconfig ?
By the way if anyone could point a
Rom/kernel developer at this thread as i cant. I would like to hear their opinion on all that.
Thanx for replies so far ....
Sent from my GT-I8150 using XDA App
2g11 said:
Hi there irishpancake! Just testing the V6 supercharger myself seems pretty ruthless...keeping my used RAM at 230MB almost permanently and lag free! Doesn't quite have the same effect with a custom launcher but TW is flying. I think ur right about our device needing memory management more than anything.
Sent from my GT-I8150 using XDA App
Click to expand...
Click to collapse
Hi 2g11 man.....
sorry, I just saw your PM, about V6, and just to say, I find it definitely snappier, and as you have noted, very good on the memory management.
I do not have enuff knowledge to actually give figures or stats, but it just feels much faster, and responsive, lag-free.
I am still using the Update 9 RC4, so I will try out the latest version Update 9 RC6 ASAP....
I use Launcher Pro, just coz I hate TW, and it is remarkably good with the V6 tweaks........and I am still Stock ROM 2.3.6 [KJ6].
Here is a nice article about linux and swapping.
https://www.linux.com/news/software/applications/8208-all-about-linux-swap-space
And here info about page size
with linux
http://www.cyberciti.biz/faq/linux-check-the-size-of-pagesize/
Enjoy reading ...
Sent from my GT-I8150 using XDA App
As i read here
http://forums.opensuse.org/english/...ot-login/437078-changing-pagesize-kernel.html
changing pagesize is no valid option to influence swapping behaviour.We have to stick to
"swappiness" kernel parameter which can be changed 'online' though.
Sent from my GT-I8150 using XDA App
@irishpancake I guess I didn't properly set the ADW Pro I was testing as the 'default' launcher as described by THE-E in another thread. Will try out the new script as well. Just wondering, do you use options 7,13 and 20 as described in Rio's Black Keys thread? Maybe some other options you've tried?
Sent from my GT-I8150 using XDA App
irishpancake said:
But, is our Wonder short of RAM, or short enough to require swap partition on slooooow SD, or comcache using precious processing cycles to compress/decompress ??
Would using memory management, such as zeppelinrox V6 TurboCharger, not be more appropriate?
V6 Main thread
Latest Beta's
Without having to further reduce RAM for comcache!!
or swap partition on SD which is much slower than RAM?
But, I agree, it would be interesting and useful to have Custom ROM, which supported swap or comcache, even for the ability to compare and contrast.
But, there will always be a trade-off when using either comcache or swap....it's just a question of whether the individual user finds it acceptable.
Click to expand...
Click to collapse
I think the parent of 'super charger' is juwee ram script.i have used this script in past and it gives amazing performance.
Sent from Hell using Tapatalk
Which one is MOST suggested?
1. Use the V6 script by zeppelinrox?
OR
2. Install RAM Manager app?
P/S : Does anyone knows how to un-supercharge the V6 script? PLEASE help me!
SyzwnFrzRdz said:
Which one is MOST suggested?
1. Use the V6 script by zeppelinrox?
OR
2. Install RAM Manager app?
P/S : Does anyone knows how to un-supercharge the V6 script? PLEASE help me!
Click to expand...
Click to collapse
If you look at the options available at the number input stage, one of these can remove supercharge settings.
I prefer ro zeppelinrox's v6..it's more reliable..
sent from another space
I dont know its hard to say. Ive used the v6 on 3 roms and its abit of a does it or does it not. Plus its hard to say. But it does free up some memory from looking at task manager it was always between 180 and 200mb of ram which is good.
At the minute im using ram manger and the ram is up around 220 to 250 but smooth just have it on normal balance setting.
Everyone is going to have their favorite's. I personally found the v6 to be annoying when setting it up and trying to get it 100% sc. But it seemed to work at the end of the day so cant argue.
A tricycle is easy to ride and is for kids.
And that app is a a tricycle, missing a wheel, and pretending to be a ferrari - it does nothing for the launcher or multitasking and you have to pay for the third wheel.
You can get the same effect as that app with autokiller or auto memory manager - for free.
I do have the V6 script in my phone now so based on your replies guy, i guess i'm gonna stick with the script instead of the RAM Manager.
@Zeppelinrox,
If i am to un-supercharge the script, the data of V6 is still in the phone, right? Where is it located then? Thanks!
If you unsupercharge the only thing left on the phone itself is nothing
But all the files stay backed up on the sd card for easy re-resupercharging
zeppelinrox said:
If you unsupercharge the only thing left on the phone itself is nothing
But all the files stay backed up on the sd card for easy re-resupercharging
Click to expand...
Click to collapse
I mean where are the backed up files? And is there any steps for re-supercharging? Thanks!
A tricycle huh..?and pretended to be a Ferrari..haha..
@snwman
Dude,v6 is not like bunch of cosmetic app where u can found on market that is easy to ride ..v6 is a script and it's solid like hell..its not how much u can free up ur memory,it's about managment..and it's free,!!!!
But whatever suite u well,its up to u..so..happy riding..
sent from another space
I'd like to know if anyone running the script on the SGW has had problems with the stock browser, particularly trying to open more windows/tabs. I realised the moment I opened a second tab the the phone froze while opening the web page and took several minutes before killing the browser. I've never had problems with tabbed browsing so its certainly linked to the V6 aggresive memory management. I'm also aware the browser can use up huge RAM(upto 100MB and over) depending on how many and how big the web pages you are opening. Any help here would be welcome.
PS: I'm running the RC6 Version of the script.
Sent from my GT-I8150 using XDA App
So, it turns out the /preload partition is 500 megs of almost unused space, just to show us a video of Asphalt. So, how about turning it into swap space to almost double the effective amount of memory you have? To use this mod, you must be rooted, and have busybox installed. I recommend the stericson busybox installer https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
I would like feedback on whether or not it actually speeds up the device, especially when running graphics-intensive games, and also effects on battery life.
How to install:
1.Be rooted.
2. Get busybox. If you don't already have it, you can get it here https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
3. You must have init.d support. This is built into my NardROM but you can also flash the file attached to this post.
4. Flash the script installer, attached below. NOTE: This will wipe your /preload partition. You can make a nandroid before you perform this step but CWMR doesn't back up /preload. Back up anyway
5. If it's successful, you will see something like the following screenshot when you open a terminal window and execute "free". Notice the swap being used. If you don't have swap enabled it will read 0 available.
To disable the mod:
1. Delete the script from /system/etc/init.d
2. Reflash your Asphalt video from a backup
To disable init.d:
1. Delete /system/etc/install-recovery.sh, /system/etc/init.d (entire folder), /system/bin/sysinit, and /system/xbin/run-parts
Disclaimers:
Using nand memory as a swap can significantly reduce its life. Your phone's internal memory will wear out in years rather than decades
A lot of people argue using Android swap works against the built in memory management of the Dalvik machine
http://forum.xda-developers.com/showthread.php?t=1504774
This is awesome, glad to see people spending time on this device
Tappin' Typin'
'' /vendor '' also has 590,56 Mbyte of space..
what kind of data is there? there are some folders called ''multi_pose_face_landmark_detectors.3'' and ''yaw_roll_face_detectors.3'' ? is this the carrierIQ stuff?
After deleting everything on that partition it says 395,95 mb used, 194,61 mb free.
ludacris1 said:
'' /vendor '' also has 590,56 Mbyte of space..
what kind of data is there? there are some folders called ''multi_pose_face_landmark_detectors.3'' and ''yaw_roll_face_detectors.3'' ? is this the carrierIQ stuff?
After deleting everything on that partition it says 395,95 mb used, 194,61 mb free.
Click to expand...
Click to collapse
I think it's device-specific info for face unlock to compensate for various things like the angle you're holding the phone at and the distance away from your face. And if you'll look a little more closely, you'll find /vendor is symlinked from /system/vendor, it's not actually a separate partition. You should probably put those files back if you want face unlock to work.
Technically I just downloaded some ram
Sent from my SGH-I927 using xda app-developers app On Ics
FYI, this could be a potential source of serious slowness. Swap isn't anywhere near as fast as real RAM.
I wouldn't do this unless you're legitimately having issues you can directly attribute to running out of RAM. It may be useful as Android marches on and demands more and more RAM but for ICS we're already a good clip above the recommended specs.
Same thing I was thinking. I have more than enough RAM but if by some miracle we get something past JB that uses a lot of RAM I'll do this. Nice work on it though!
sent from my captivate glide running ICS (NardROM 0.4 Rooted)
roothorick said:
FYI, this could be a potential source of serious slowness. Swap isn't anywhere near as fast as real RAM.
I wouldn't do this unless you're legitimately having issues you can directly attribute to running out of RAM. It may be useful as Android marches on and demands more and more RAM but for ICS we're already a good clip above the recommended specs.
Click to expand...
Click to collapse
Waiting for the comparison,then
mewatashiakumoi said:
Waiting for the comparison,then
Click to expand...
Click to collapse
So with this hack having been out a couple months now, how are the reviews? Performance increase? Fewer slow downs?
pm2gonzales said:
So with this hack having been out a couple months now, how are the reviews? Performance increase? Fewer slow downs?
Click to expand...
Click to collapse
1) this is not a hack, this is a simple tweak
2) swap file is ALWAYS has a performance decrease effect, no matter what (desktop PC, android phone). The only reason of use is when the device has no enough RAM, and the background processes shall be kept elsewhere
3) android has it's own RAM managing system and methods, simply stick to that as only that will gives you the best performance and user experience
4) "slowdown" occurs when the device runs out of free RAM and starts closing background applications to give everything to the foreground app. When you close the heavy resource use foreground app witch caused android to close every possible background apps, the phone reloads them (launcher, live wallpaper, app drawer, widgets, user apps, etc...) and this is what causes a temporary slowdown, and this is unavoidable, no matter if you use swap or not.
Welcome to Lightning ROM
MAJOR UPDATE, REV3, CHANG LOG IN SECOND POST**********
The goal when creating this today has been simple. Squeezing the most performance out of the T-Mobile Galaxy S III as I possibly could, without destroying your battery. This ROM was build with two things in mind - optimization and speed. Nuff said. It is based off the official Jelly Bean leak as of late last night and wild child's deodexed version he was kind enough to throw down. It will probably impregnate you, with twins, then not pay you child support. If you are ready to propel your device to levels above 9 thousand, you should probably keep reading. You have been warned. IT IS FAST! ..... yet... friendly...
Like myself, in the spirit of android, I am sure you all love customization. I am doing something a little different with this. Rather than add all the toggles, mods, themes, etc, I focused today on the performance aspect and will leave the theming up to you, and after you get it set up the way you want (as there will soon be and already is tons of pretty extras for this build) revert to post 2 of this thread for a nice little guide to odex this bad boy straight from Android UI via terminal emulator. I'll take care of the tweaking, you theme it the way you want, then wrap it up with some memory optimization of your own, or don't. Sound good? Thought so
Getting right down to it - a quick list of things modified here, and I know I am missing some things:
-Init.d support
-Busybox
-Deodexed (until you odex - see post 2)
-Rooted - duh
-CIQ removed***
-Debloated: removed a lot of stuff, but it is all avail' in the market, youtube, etc, you would have had to update it anyways -__-
-File system and SD read optimized for speed
-added freeza's custom CPU script to init.d ***see changelog in post 2
-Build.prop has been modified.
*added the 0 ring delay script
*wifi scan adjusted to 600
*media streaming optimized
*media recording optimized (video and image)
*data speeds optimized
-Database df on each boot / sql support - totally kanged this from somewhere else it was kanged... all credits due
-Memory optimizations
-Default IO scheduler optimized for flash-type disks (android devices)
-Carefully modified CPU parameters with performance in mind. Tweaked values to optimize IO throughput during heavy workload and multi-tasking, yet on the other end, CPU cycles are greatly reduced when system is not under heavy load. You will see this in performance :highfive:
INSTALLATION - follow this to the T, or I will ignore you. And keep in mind you might still have issues. Not every device is the same.
1. download ROM, put it on your external SD card, and verify it is good with an MD5 check
2. once all is well, boot to recovery
3. do a factory reset/data wipe (I have always been in the habit of being thorough and formatting anything 3 times)
4. format/wipe system (3 times recommended)
5. flash ROM
6. reboot (it will take a couple minutes)
7. once the device boots, let it stand alone for about a minute or so (i typically wait until it shuts off the display on its own) and ENJOY
NOTE: DO NOT TRY TO SIGN IN TO DROP BOX. I REMOVED IT. DL FROM MARKET!!
Also, some other things removed: browser, YouTube, calculator, some other stuff. I didn't remove anything that was not available in the play store. Wanted to keep it light weight. Do not try to sign in to anything other than your google account when you boot. Again, enjoy.
thanks to wild child, freeza, virus, steelH, dj, luke, ktoonz, and many others. mad respect to you all. i have implemented things that are either your direct work or things i have learned from you. so here is my humble shout out. if there is something i left out, somebody i didn't mention, please forgive me and post in this thread and call me out, i will happily update the OP with thanks. respect to you all
REV_3 - ready, set.. ok click now!
With morfic's kernel..... clocked at 1.83
ok... so if you are like me, and you REALLY wanna get intense with this, and just make it as bad A as you possibly can, keep reading....
This will essentially odex all files in your /system/framework and it will do it straight from the Android UI via my personal favorite app ... this is good because it frees up mem, and reduces DVM size. OPTIMALLL
1. download the odex.zip here --> PURPLE
2. extract all files with a file explorer, i prefer root explorer or fx file explorer
3. place the extracted folder and all of it's contents in /data/local/tmp ... so you should have /data/local/tmp/odex/+(misc files in new odex directory)
4. give the new directory and ALL contents FULL permissions. full read, write, and execute perms. your file explorer, if it has taken you this far, should be able to accomplish this
5. download this app TERMINAL EMULATOR dont worry it is free. open the app
Type the following commands - each new line should be executed with the enter key:
su (hit enter, it will ask for root)
/data/local/tmp/odex/odex (hit enter, you will see
you will see a bunch of outputs. there will be a message when it is done (honestly, like 10 seconds if that) saying something like "enjoy your hybrid ROM"
type "reboot recovery" (without the quotes)
device will boot into recovery immediately after you hit enter...
wipe cache and dalvik cache once more each, and reboot your device.
viola <--- this was spelled wrong. but i am going to leave it. because i can. rofl
THANKS*** freeza for sending me the the odex script, and you're welcome, for the bootclasspath for the script.. lulz. and thanks freeza for convincing me to download titanium backup again... and you're welcome for giving you the peace of mind that you can odex framework from android. el o el
****change log*****
rev3-December 1st, 2012 -uploading
-added morfic's alpha 23 kernel. OC'able to 1.83, no UV, L2 cache tables optimized, CPU hot plugged (for now, panel of=cpu1 off), pretty much an overhaul here. performance is ridiculous.
-removed CPU tweak by freeza (i still love you tho)
-optimized IO, AGAIN. adjusted ondemand parameters for a little bit better performance
-removed unneeded scripts from init.qcom.post_boot.sh file - positive effect on IO
-cleaned up build prop, added scripts for TCP windows, added network hack by... somebody... can't remember. File is in /etc/init.d/ "internet"
-optimized BT audio streaming
-added properties for optimal accessibility of T-Mos spectrum/towers
-disabled unneeded logging - save CPU cycles and power
-debloated some more. lightweight. DO NOT... try to sign in to dropbox upon first boot (if it even gives you the option) download the latest version of the app on the play store.
rev2-NOVEMBER 19, 2012
-removed some UI audio sounds (charger connection [for those that listen to music], lowbattery sound, volume toggle sounds, other annoying useless sounds such as boot up and power off)
implemented freeza's CPU control script for some amazing performance and battery life. thanks bud, as always, great work. i have been running this since he was finished with it, and it is absolutely amazing. your device with tons of unique and user friendly, editable scripts.
-freeza's CPU script adjusts CPU parameters for both cores based upon whether your device is charging, and how much battery you have left. it is a performance and battery friendly script that is power efficient and editable depending on what YOU want your device to do.
beta1-
initial release
all the things...
In rev 2, with freeza's CPU mod, you can navigate to init.d and you will see a "70cputweak" file. if you open that up, you can adjust CPU values and parameters of governors to your liking. for now, i left them as is - the way they were when freeza gave them to me. edit them with a file explorer and reboot and you are now adjusting your OWN values based on the performance and battery YOU desire. follow instruction in OP to flash
Thanks will try this later today
Sent from my SGH-T999 using xda app-developers app
Does teathering work on this?
ScottBroker said:
Does teathering work on this?
Click to expand...
Click to collapse
wireless/native? no. but my easy tether app works perfectly. i'll implement it, if i have time, in beta2... i haven't slept in two days lol
OP updated
Will the odex.me app work with this rom? I'm not lazy, just curious if there's an easier way to odex..tia
Sent from my SGH-T999 using Xparent Blue Tapatalk 2
Yeah does the odex me app work the same way than doing all that other stuff?
Sent from my SGH-T999
which tether app you using ?
Thanks
Odex me app will not work
great Rom thanks
Is this still running Touchwiz? How much RAM available? Other then your optimizations for speed what has been added or removed? Are animations gone due to the optimizations?
EGBTMagus said:
Is this still running Touchwiz? How much RAM available? Other then your optimizations for speed what has been added or removed? Are animations gone due to the optimizations?
Click to expand...
Click to collapse
All I have done is tweak properties listed. Didn't mess with animations, or anything. You guys can do all that with a theme, kitchen, etc... I would recommend wild child's work. It's great stuff. Like I said the reason for this is because after you get it the way you want, you can go in and odex it and finalize your OWN build the way you want it to look. I'm not too big on aesthetics. But I can make your device run better
And to answer your question, yes, it is still running touchwiz launcher by default. Again I would recommend apex or nova. touchwiz is awful IMO. nothing unique about it.
Rom looks great will be testing it tonight!
Can anyone confirm wildchilds kitchen is working?
Sent from my SGH-T999 using xda app-developers app
Liking the rom so far, only issue I have come across is that I can't get App2ExtSD2 working.
Can we use your Odex wizardry in any deodexed TW Rom?
SiNJiN76 said:
Can we use your Odex wizardry in any deodexed TW Rom?
Click to expand...
Click to collapse
yeah
http://forum.xda-developers.com/showthread.php?t=1994048
Thanks...didn't know he created a separate thread.
Anyway, the first thing I noticed was that when I try to sign into Drop Box from the initial boot sequence, it FCs... I also got nowhere near the Quad score the OP got. Mine was in the 3Ks. Just my experience.
CIQ?
SiNJiN76 said:
Thanks...didn't know he created a separate thread.
Anyway, the first thing I noticed was that when I try to sign into Drop Box from the initial boot sequence, it FCs... I also got nowhere near the Quad score the OP got. Mine was in the 3Ks. Just my experience.
Click to expand...
Click to collapse
I got over 5K in Quadrant, but I also came from a 100% stock phone (reset it to make sure there were no issues). DropBox fails intially because he removed dropbox from the rom.
EDIT:
I can't seem to find the stock web browser... has it been removed?
I'm asking because I'm frequently out of RAM, causing extreme lags and launcher reboots. I know the CPU reserves 300MB, leaving 700MB, but how much do ROMs typically occupy? Any recommendation for leaner ROMs? Or perhaps there are modifications to enable more aggressive task killing (non-background tasks)?
843 said:
I'm asking because I'm frequently out of RAM, causing extreme lags and launcher reboots. I know the CPU reserves 300MB, leaving 700MB, but how much do ROMs typically occupy? Any recommendation for leaner ROMs? Or perhaps there are modifications to enable more aggressive task killing (non-background tasks)?
Click to expand...
Click to collapse
Run out of RAM? never again with this Mod
Gnex Supported! :good::good::good:
http://forum.xda-developers.com/showthread.php?t=2145133
How would that work since my GNex doesn't have an SD card? Isn't everything on the same internal memory?
843 said:
How would that work since my GNex doesn't have an SD card? Isn't everything on the same internal memory?
Click to expand...
Click to collapse
First of all, that mod puts it in /system, /data and/or /cache. So it doesn't even try to use the sd card regardless.
Second, I just thought i would try it out and it throws out an error "incompatible with your device Galaxy Nexus (toro).
I figured maybe i would give swapper 2 a go again. It hasn't been updated in ages, but it seems to work. You can leave it on sdcard (which is just internal memory anyway) or change the directory to any you want. I changed mine to /cache since my sdcard is kind of full. Can even change the swapiness within the app. Only downside is the limit for it is 256mb. So far it seems to be working properly on Verizon Galaxy Nexus stock, rooted, 4.1.1 with lean kernel.
Sent from my Galaxy Nexus using Tapatalk 2
I have done some tinkering. What seems to work for me is limiting background processes to 4 or less. These turn out to be cached processes which keep opened apps open. They eat up your remaining RAM and should ideally be removed if an app you're trying to run demands it. However, the removal process causes significant lag, possibly due to the slow internal memory the GNex has.
I'm running CM10 (4.1.2), and I have 245MB free right now. It has gone down to as low as 150MB, but rarely below. When using 4.2.2 based roms, I get as low as 40-50MB, which causes problems. I don't have high hopes for 4.3 right now.