yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] lazy_ursache:
I am using TalonDEV-0.5.1.1-1000-I9000-CWM3.zip on JVS standard ROM!

My phone was on the table the screen was off but the Deep sleep is just 38% and 100 Mhz 53% with no Wifi and no data network!

Same thing happens over night 100 Mhz > Deep sleep (battery decreases about 10%)!
[Galaxy S I9000 Android Development] pikachu01:
Were you charging when your phone was sleeping? Charging always makes it 100MHz and it won't go to Deep Sleep when charging.
[Galaxy S I9000 Android Development] jeff964:
Titanium back up cannot use

It always displays cannot get root privilege when using titanium back up? Any idea?

Thanks
[Galaxy S I9000 Android Development] pikachu01:
I think I found out what would cause memory leaks at the end of the day.

If doing:

Solves this problem, it's due to vfs_cache_pressure being too low and dirty_ratio being too high.

With that, I've updated the system_tweak yet again, with this knowledge by making the VM settings more aggressive, which will trigger the memory leak faster. I made this so, as there's a workaround to clear the caches when it gets full.

Having a low vfs_cache_pressure and a high dirty_ratio will save battery and make your device perform faster at the cost of higher RAM usage.

You can read more here:

http://people.redhat.com/nhorman/papers/rhel4_vm.pdf

The updated script:

http://xdaforums.com/showpost.php?p=17400617&postcount=3147
[Galaxy S I9000 Android Development] lazy_ursache:
Phone was not charging or something else just sitting on the desk!
[Galaxy S I9000 Android Development] pikachu01:
Check your partial wakelock using better battery stats. Should be a rogue app eating away at the CPU cycles. Never encountered this when using Talon. I'm on Deep Sleep most of the time.
[Galaxy S I9000 Android Development] jeebspawnshop:
Thanks dude. I've applied your scripts and set your recommended MF settings. If this fixes the memory leak, then you're a magician ;)
[Galaxy S I9000 Android Development] HM.Carbide:
I'll testet a lot conservative and ondemand governor with different configurations.

A conservative governor with up_threshold 50 and down_threshold 35 uses significant higher frequencies than a ondemand with up_threshold of 85 (semaphore) or 65 i guess in talon.

Maybe it would have an effect using powersave governor.

Anyway, battery is mainly drained using the phone. So optimizing the display time will lead in signifocant longer battery cycles.
[Galaxy S I9000 Android Development] existz:
Are you talking about using Powersave when its awake? If so powersave only runs at 100mhz max.

To be honest, IMO, we can tweak governors, vm settings, CPU settings, etc etc, but i don't honestly think it's going to do much good on saving battery, the screen/display is what's killing battery. After having the inspire and with its screen and over 4hrs screen on time its only using 7-8%, and we all know SGS is always 70+ .. i don't think we are going to put a dent in the SGS unless something is done with the screen...either be power, brightness..etc..
[Galaxy S I9000 Android Development] HM.Carbide:
No, i was talking of powersave governor when screen off, in pikachus script, because his current config makes not so much sense.

To battery usage of display:

I'm not quite sure that display time measures only power consumption of display.

If my wife plays tap fish (horrible game :) ), i'll get <3h display time. No chance to optimize, because this bad developed game uses 1ghz 100% cpu usage all the time. The phone gets warm. The battery stats says 75% display, 5% tap fish, rest used by rest.

If i am reading websites, phone uses mainly 100mhz, i'll get 5,5h display time with my configuration. Battery stat shows also 75% display, 5% browser, rest by the rest.

So there is a great powersave potential optimizing cpu and display when phone is used.

Using up_threshold of 60% means 40% wasted cpu time on that frequency. Quite similar to having 100mb free ram all the time.

The ondemand config of stratosk (85 up threshold, 40000 sample rate) is good, as snappy as up threshold 65, but for eg google navigation uses with 65 1ghz all the time, with 85 800mhz, and battery lasts noticable longer.

Conservative governor configuration is a bit complexer, because freq_step is calculated from max frequence. So there has to be different configs for 1ghz and 1.2ghz kernel. With a good configured conservative governor, i'll get better battery life, but it is only nearby so snappy as ondemand governor, but for me snappy enough. (1ghz config i use: up_threshold 90, down_threshold 75, freq_step 10, sample_rate lowest possible 66666)

Second optimization is display, reducing rgb multipliers in voodoo control app by 20%.
[Galaxy S I9000 Android Development] existz:
Gotcha, as for using powersave when sleeping, the 800mhz step is needed when entering sleep mode, so if you set a screen off profile with setcpu or powersave governor that onlys uses 100mhz, it can cause sleep death for some people..it doesn't happen to everyone, but it does happen..this is why its not recommended to use sleep profiles with setcpu, or atleast make min frequency 800mhz. I don't know why, or how, just know it causes issues.. this was a main reason for sleep death on froyo, since alot of people used 100mhz as min freq. Also its good to have some head room when coming out of sleep, like getting a phone call while phone is in sleep, it will be laggy and choppy coming out..this is why i upped the suspend_freq on ondemandX. Conservative governor will give better battery life, but its not as smooth as ondemand..for me and my use i cannot use conservative, its literally unusable and extremely laggy, even highly tuned., as well as some of my testers have the same results. So to ensure the "best" for both speed and battery, ondemand is the way to go.. I'm sure i can tweak ondemand to be better battery wise, or tweak it for better performance, but either way ur trading off one for the other. So what's used in talon is a good middle ground, and is what i have to use to satisfy everyone.
[Galaxy S I9000 Android Development] Hrithan2020:
Will give your script a try. Can you tell me how you are able to get 52M as hidden app memory size.[ You are using Talon LMK's only right?]. Using Talon LMK's, I am able to access the slider and the max it goes is till 48 M.
[Galaxy S I9000 Android Development] HM.Carbide:
Fully agree.

Conservative profile is for holiday or business trips, when there is not always the possibility to charge.

And it is good to see that it is possible to get 5 or 6h displaytime instead of 3 or 4h normally. And i needed already this extra time...

For daily use ondemand is best.

All i wanted to say originally in my first post is: the script of pikachu makes no sense.

As there are a lot of scripts flying around, nobody knows exactly what they are doing.
[Galaxy S I9000 Android Development] pikachu01:
The screenstate_scaling has not been changed by me. It's Zach's script btw. I will ask him about this and get his comments :)
[Galaxy S I9000 Android Development] shaarky:
I experienced strange problem - after playing with too many scripts from recent posts, my phone crashed - actually it was in the state where it was rebooting each 40secs, despite of scripts I removed it wasn't improving, I think I experienced EXT4 file system corruption, factory reset however and even CWM restore didn't help (Juwe's 5.3 JVR with 0.5.1.1 kernel). But that's not my question - it's my problem and my own stu*idity ;-)

Anyway, I used this chance to play with JVS ROM (David's ROM JVS 2.3.5 v2.2 (not here on XDA)) with Talon 0.5.1.1 - but after instalation /etc/INIT.D folder was missing, I recreated it manually, but simply TalonDev kernel does not create automatically ramset.sh (or _ramset.sh not sure now) in the Init.D folder during installation from CWM (tried 4 times). Do I get it correctly that without that script ram settings are not getting applied?
[Galaxy S I9000 Android Development] flolep:
Hmm hmm, interesting...

So I am obliged to try 0.5.1.1 with your scripts now :p

I'll report if it really kills the famous talon memory leak.

For now, thanks for the investigation :-)

Sent from my GT-I9000
[Galaxy S I9000 Android Development] pikachu01:
You might have a busybox issue.

Try installing busybox 1.17.x in /xbin and remove all other instances of busybox. To find out the paths that could contain busybox, do:

echo $PATH

In terminal emulator.
[Galaxy S I9000 Android Development] shaarky:
Thank you pikachu01 , however seems that Busybox is alright - there was version 1.19.0, installed 1.19.2 and still the same issue. Tried 1.17.1 and again - no script in init.d. Also it's weird maybe it has permissions rwxr-xr-x right after install, owner root:shell, shouldn't it be rwxrwxrwx and root:root ?

Hmm, most probably is fine, as it's doing exactly what is specified in the install script :
[Galaxy S I9000 Android Development] sherpa25:
I tried running echo 3 > ... but after the cat command, it stills shows '3'. su has been granted to TE already. Should I be in 0.5.1.1? still in 0.4.4.22.
[Galaxy S I9000 Android Development] existz:
If you echoed 3 to it, then you get 3 when you do cat, then it worked ...for ****s and giggles echo 2 to it, then cat it, it should show 2... then of course echo 3 back ..just to see if its changing

When you echo 3 to drop_caches it clears pagecaches, dentries and inodes, you can do "free" before and after to see if it cleared

Echoing "1" will clear pagecaches, "2" will clear dentries and inodes, "3" clears all... when you "cat" it, your not actually checking cache, etc, you must do "free" before and after if u want to see if it's clearing it ...

So you would want to do this to clear everything out..
[Galaxy S I9000 Android Development] pikachu01:
Guys, I've updated the instructions to include "sync". Thanks existz for pointing it out :)

I've also included how you can check if caches are actually dropped using the command "free". Check it out.

http://xdaforums.com/showpost.php?p=17599778&postcount=3273
[Galaxy S I9000 Android Development] .:Crack:.:
@existz

do you recommend using pikachu01's VM settings or the defaults?
[Galaxy S I9000 Android Development] jaiiscool:
@existz: might be of help....

Governor mod

http://xdaforums.com/showthread.php?p=17630732
[Galaxy S I9000 Android Development] existz:
edit

10char
[Galaxy S I9000 Android Development] simone201:
It is very hard to improve more Talon, i am always trying but is already full of all patches that i find....
[Galaxy S I9000 Android Development] pikachu01:
And, I updated the screenstate_scaling script to insmod the conservative governor. I found it weird that some people couldn't find the governor on voltage control. Once, I checked mine, I found that I've always loaded the conservative governor from a script in the first post. Hence, I've updated the screenstate_scaling to automatically load the governor.

If you're not using the conservative governor as the sleeping governor, remove the insmod line.

---------- Post added at 02:37 AM ---------- Previous post was at 02:29 AM ----------

I tried your conservative settings of 90/75. It favours using the 100MHz frequency a little bit more than 400MHz (in which the 50/35 is based on). GUI was a bit laggy on the 90/75. 50/35 was mildly usable but not as smooth as ondemand. For screenstate scaling, using 90/75 should be better, but when waking up, it wouldn't be as smooth as 50/35. Music will be stuttering as well when screen is off.

This:

http://xdaforums.com/showthread.php?p=17630732

could potentitally replace the need for screen state scaling :)
[Galaxy S I9000 Android Development] existz:
Yea people just dont understand how much work has been put into Talon, how much as already been tweaked/fixed/patched or tested..and why things are done/not done for a certain reason... Everything has

almost

been done already, and is main reason why alot of 3rd party apps, scripts and tweaks are not recommended, because things are already tweaked, or not tweaked for a reason
[Galaxy S I9000 Android Development] simone201:
Yeah ur right!!

I am trying to study all the talon source to see where i can improve, and until now i did my best.... But it isn't easy

All the tweaks that i include are heavily tested before releasing a build, i think i have unleashed out all the power from Talon!
[Galaxy S I9000 Android Development] existz:
I've got alittle something I'm working on with my TalonACE kernel, if it works out ok ill probably use it with this kernel as well...haven't seen many kernels use it except fugu cm kernel., it should help out in the memory department
[Galaxy S I9000 Android Development] bassie1995:
On the topic of a little something: A friend of mine has a Liquid E, and he has compcache in the kernel, which actively compresses some stuff (didn't read all the details). This helps out in he amount of free RAM.

Wouldn't that be possible on the SGS?
[Galaxy S I9000 Android Development] existz:
ZRAM (compcache...aka ramzswap) is already in talon ...afaik talon is the only SGS based kernel to use swap support, this is why we do not recommend using 3rd party scripts, tweaks and apps that mess with memory management, since they were mostly designed for non-swap systems
[Galaxy S I9000 Android Development] simone201:
Wow!!

I hope is something special.... ;)
[Galaxy S I9000 Android Development] bassie1995:
Ah OK. Makes sense.

But I hear people have stability issues?
[Galaxy S I9000 Android Development] rlorange:
I am keen to use screen scaling script to force music app to run at, the lowest clock speed without stuttering on fight mode. Currently it won't drop below 800mhz and drains battery. Which settings should I try?

**Simply Honey 5.0 JVR, Talon kernel & Tegrak OC app 1.36ghz@1340mv**
[Galaxy S I9000 Android Development] existz:
No, what stability issues? ZRAM has been used in talon for a very long time, no issues
[Galaxy S I9000 Android Development] existz:
Are you using miui lockscreen?
[Galaxy S I9000 Android Development] bassie1995:
Thought I heard something about it in the Talon SH BIGMEM thread. Never mind :)

Does it make the ROM/kernel much faster? Does it give you more free RAM?
[Galaxy S I9000 Android Development] existz:
ZRAM compresses where you can store more apps in memory without actually having to have more physical ram

http://code.google.com/p/compcache/
[Galaxy S I9000 Android Development] pikachu01:
Hey Existz,

I understand the complications people will have when installing scripts without knowing what they do. I'll offer up support if they do that. The thing is, installing the Zach's scripts (that was tested by him in his platypus CM7 kernel) as well as doing the testings on my own really did help a lot in maintaining the stability of the tweaks.

There are some settings that Talon does not tweak out of the box like the VM settings and the prop tweaks (you can see it in build.prop that comes with the ROM). The script helps by tweaking that too (with it being thoroughly tested before having it released).

I do know that the 3G tweaks at least solves a problem for people who are using US carrier networks that deliberately reduce the 3G prop.

Also the TCP tweaks that Talon does not touch at all.

You'll need to actually install the script to know how much it improves :) Try it out!
[Galaxy S I9000 Android Development] existz:
I have tried them out, but if its not in talon by default then i cannot support it .. there's too many scripts etc going around that do the same things in different ways or completely different settings, plus different variations of the same type scripts..so to ensure its in fact not a kernel issue, i cannot support any of these.. People can use whatever they want, but if they have issues its best to remove any scripts ..etc to verify its even a kernel issue..if it doesn't happen with talon out of the box, there's nothing i can do... Plus alot of people try these type of things out without even knowing what they are or what they do then wonder why they have issues
[Galaxy S I9000 Android Development] pikachu01:
I'll be sure to mention that installing the script should be exclusively installed (i.e. you should only use one type of script onto the init.d).

Other scripts such as kickasskernel, supercharger, acid tweaks and what not should not belong in the init.d with Zach's scripts.

_99ramset and Svolt_scheduler are the only other ones that can be in your init.d.
[Galaxy S I9000 Android Development] rlorange:
No just standard asop it's, been like this over multiple versions of talon and even simply honey rom. Might be voodoo sound? i'm playing long gapless 192kbs mp3 files (like 100 to 200mb) but of course I tested small files too. this mystery has, stuck around for me.

**Simply Honey 5.0 JVR, Talon kernel & Tegrak OC app 1.36ghz@1340mv**
[Galaxy S I9000 Android Development] rotemk:
Zach's tweaks

A question to Pikachu:

I want to test out Zach's tweaks that u have ported from cm7.

I'm using Jetpack rom which contains in it's init.d folder the folowing:

01sysctl

s70zipalign

S97sdcardspeedfix

S98SD

S99complete

I just wanna know if I need to delete all\some of them or not, as i don't want to get some scripts crushing one into the other.

Thanks a lot!!! man.
[Galaxy S I9000 Android Development] pikachu01:
I'm not sure what s98SD is. Probably another variant of s98sdcardspeedfix?

As for the others, check here:

http://xdaforums.com/showthread.php?t=1266715
[Galaxy S I9000 Android Development] shaarky:
I'm still not able to fix it myself....could someone from you post here "_99ramset" file that belongs to 0.4.x or 0.5.x version ? Just curios if file will be overwritten, as it should be auto-generated.

@Existz, do you have any idea please what could be causing this problem (busybox should be fine) ?
[Galaxy S I9000 Android Development] rotemk:
Zach's tweaks

To Pikachu again:

Thanks for the quick answer.

from the link u gave me, I unserstand that most of the scripts that i mentioned are crappy, but what about the sdcard script? will it be a problem to apply it together with Zach's scripts?
[Galaxy S I9000 Android Development] pikachu01:
Zach's script has its own readahead tweaks. You can safely discard all the others :)
[Galaxy S I9000 Android Development] shaarky:
@Existz,

FYI

Is this OK ? There is no RW mount in the /bin/post-boot.d/07-install-memfrea...
[Galaxy S I9000 Android Development] pikachu01:
Hey shaarky,

I'm guessing there's something wrong with either your mounts (lagfix) or your boot scripts in /system. It's located in /bin/post-boot.d (corrupted maybe?).

It's best to do a full wipe and start from stock odexed. Let me know if you think otherwise :)
[Galaxy S I9000 Android Development] shaarky:
@pikachu01, I was installing current odexed custom ROM (David's JVS ROM 2.3.5) on previous Deodexed ROM (stock JVR--> Juwe's deodexed JVR 2.3.4). Someone is saying first to install stock JVS and then JVR, someone else is saying any 2.3.4 should be fine. Let's see later, full wipe reinstallation is something I'm already counting as well.

Regarding scripts, I don't think there are corrupted, there are 01-07 scripts + 99-cleanup-initrom. However, clearly in the 07-install-memfreak there is no RW mount, so if /bi is normally mounted as RO, it can't work... did I get it wrong?
[Galaxy S I9000 Android Development] pikachu01:
The scripts are done in a sequential manner. As long as the scripts in the beginning mounts the /system as rw, the rest should work as well.
[Galaxy S I9000 Android Development] Szighy:
i don't have the "_99ramset" file either...is it a problem?
[Galaxy S I9000 Android Development] pikachu01:
You might have removed it accidentally. It won't come back if you've deleted it, but your memory settings are applied correctly. You can check by using MemoryFreak if the changes are done correctly.

Try this, change swappiness to a different value, and check if the value here changes:

/proc/sys/vm/swappiness

You can do a:

cat /proc/sys/vm/swappiness

in terminal emulator.
[Galaxy S I9000 Android Development] shaarky:
I tried that, in MemoryFreak I see 40, however "cat" get 60...that's mean it's not applied correctly. Going to perform clean wipe of JVS and custom ROM...let's see.

Really strange is that only TalonDev kernel isn't creating script in the init.d folder, however there is no problem eg. with VoltageControl, it's even applied correctly after each restart...
[Galaxy S I9000 Android Development] pikachu01:
Hmm, might be a bad flash. Or something's preventing Talon from applying correctly. Could be a lot of things really.
[Galaxy S I9000 Android Development] mab71:
pikachu, i cant seem to save any boot settings via voltage control nor memory freak.... is this common? im on the 0.5.5.1 1 Ghz kernel now... what shud i do?
[Galaxy S I9000 Android Development] pikachu01:
You might have the busybox issue. Look at this thread LINK

Search for busybox. It'll explain the problem and solution.
[Galaxy S I9000 Android Development] mab71:
thanks... i installed busybox from market... seems to save my settings now. the thing is how do i remove all other busybox binaries from my binaries path...there so many...which ones to choose?
[Galaxy S I9000 Android Development] :
@pikatchu...

Can you please post your ram.conf... i want to see all settings... thanks...
[Galaxy S I9000 Android Development] rlorange:
I

I've had this problem before and it is related to voodoo lagfix initramfs and missing bin files so Ramset will not recreate on boot. You can nandroid backup. Clean rom install with partition and then advanced restore data backup from recovery.

Worked for me anyway!

**Simply Honey 5.0 JVR, Talon kernel & Tegrak OC app 1.36ghz@1340mv**
[Galaxy S I9000 Android Development] Szighy:
no...i'm sure i didn't delete it...yesterday i reflashed everything on my phone...i installed SUPERSONIC rom, than Talon kernel, than decided to install Tornado rom...and after that i wanted to apply the zacharias scripts, but the file wasn't there, i had only 1 file...

if i change governor it will always reset to default ondemand...

hm...i might try to flash a stock JVS...i heard that will wipe even my internal sd? somebody said this few days ago...
[Galaxy S I9000 Android Development] Spaun-rus:
When you run the power play (Backstab HD, Earth and Legand, and other), while loading the phone reboots, although on a different kernel (speedmod) everything is fine.
[Galaxy S I9000 Android Development] Szighy:
did you OC and UV? if the settings are bad it will reboot...
[Galaxy S I9000 Android Development] existz:
You posted the same issue in Galaxian thread, so its not a kernel specific issue..if ur oc/uv'ing then you need to adjust your settings, but if it happens on mulitple kernels then its not something kernel related, but more device specific
[Galaxy S I9000 Android Development] shaarky:
Problems are gone - solved by full installation - 1st stock JVS, then custom ROM - everything is working fine now. pikachu01 , you were right ;-) Thank you
[Galaxy S I9000 Android Development] Tatsuya79:
When I tried Tornado (just the kernel) it messed up everything. Phone was booting but I lost the notification bar and some other stuff everywhere.

Restoring a backup didn't help. I had to install again a full rom, then restore my backup.
[Galaxy S I9000 Android Development] flolep:
Well, I tried too but had no real problem... Succeeding overclocking at 1440mhz (I am used to only max 1260mhz with talon, galaxian or semaphore) and ext2 file system and his own min free settings of 80 mb was a good experience, very very fast and smooth... But of course not very stable :-) but interesting.

And just FYI, indeed tornado kernel removes every "bad" (for him) script in init.d... That's why...

Sent from my GT-I9000
[Galaxy S I9000 Android Development] Tatsuya79:
Yes I saw that.

But I think it corrupted my partitions or something like that. I was already on ext4 and perhaps something went bad with it.

Anyway, did you try pikachu script? memory leak still here?

I'm still using your over aggressive ram.conf which is the only way I found to get rid of those leaks yet (automatically).