yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] Tsipo:
Thanks for that! To my understanding zram and swap are two different approaches. After installing 2.5.0st version, I see the option to enable ZRAM (10%, 18% and 26%) under Memory Management of CM10 settings, but where is the SWAP option? Another question related again to SWAP is about the SD cards. Can we somehow set whether swap will be done using sdcard0 or sdcard1? How this could be done?

Thanks in advance and congratulations for your excellent kernel!
[Galaxy S I9000 Android Development] Jimmy_X:
Can anyone confirm that in 2.5.0 YouTube app, camera recorder and stock player works. Thank you.

LE. Tested myself. YT works on 3g. Video rec works too but stock player fail to play videos. Non-s used and no bigmem.
[Galaxy S I9000 Android Development] Fenvarien:
Stock video player works perfectly here with standard Semaphore 2.5.0 with and without bigmem.
[Galaxy S I9000 Android Development] superkoal:
I love swap and i think it's default enabled.

The amount of RAM is the only thing i really think that's limiting our phone's performance.

Now with swap multitasking is absolutely fine.

Thanks, stratosk!

Btw i don't find zram very performant, too much cpu overhead.
[Galaxy S I9000 Android Development] stratosk:
Thanks for all your comments, my friend.

About problems during OC. I didn't change anything related in code. Maybe it's the new version of Linaro.

Anyway, we will see.

I don't know if I will add them to app, because I don't know if I will "officially" build swap and zram into the kernel.
[Galaxy S I9000 Android Development] elhennig:
I think it would be good to have this built in and only be activated optionally. So far I think it works very well, but I only tried for a few hours now.
[Galaxy S I9000 Android Development] Tsipo:
So it is enabled by default you say. Ok fair enough :)

I have a fast external sd card, how can I figure out if this is the one used for swapping ram pages, instead of the internal card? Stratosk?
[Galaxy S I9000 Android Development] Bonta768:
None. This is for CM10.

Sent by my android overlord
[Galaxy S I9000 Android Development] punticci:
What? o.O i mounted the smaphore 5 minutes ago and go well. Normal version and i have helly bean. But i don't have the boot animation, my screen is black. why?
[Galaxy S I9000 Android Development] super_extreme:
Should I continue my test how long phone doesn't hang and reboot or should I flash new version??? :confused::rolleyes:

Now at 80 hours ... :thumbup:
[Galaxy S I9000 Android Development] stratosk:
I think you should continue your test. You are at good point. :)
[Galaxy S I9000 Android Development] Silentbob999:
There no "datadata" version of Semaphore... Don't use it with HellyBean... All partitions are different and it is exactly the reason of the existing of helly... If you want semaphore use the official cm10 from pawitp or maybe another rom that doesn't use datadata.... I imagine that on HellyBean, if you flash a kernel that does not have datadata partition they will be a few script that would fail instead of doing symlink...

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 Android Development] LordVetinari:
So I had some WiFi issues with my router and needed to reboot. Before I did, and I took this screen shot. :D nice and stable.

Btw, I'm running slim bean 1.0.

Cheers!

--

LV
[Galaxy S I9000 Android Development] stratosk:
Thanks! I love that kind of screen shots! They make me happy. :)
[Galaxy S I9000 Android Development] super_extreme:
Which keyboard do you use?
[Galaxy S I9000 Android Development] rkaede:
thats a swiftkeyboard i believe.
[Galaxy S I9000 Android Development] 6bloody6eddie6:
I just flashed this kernel with [ALPHA][ROM][4.1.1] CyanogenMod 10 for Samsung Galaxy S. Everything works fine, except the baseband is Unknown. Any fixes?
[Galaxy S I9000 Android Development] punticci:
Ok, but i can't undersatnd why is going very well..do you think it's better change and keep the devil?

Inviato dal mio GT-I9000 con Tapatalk 2
[Galaxy S I9000 Android Development] slaj76:
Flash a cwm cm9 another modem
[Galaxy S I9000 Android Development] super_extreme:
Do you have your IMEI?
[Galaxy S I9000 Android Development] Silentbob999:
If you want to stay with HellyBean, wait for the next update, then flash nothing over it. But wait, you say that it work now with semaphore? Anyway, everything is possible :P

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 Android Development] twisturandroid:
Sorry for the delay in response. I couldnt find any setting on my ROM. Currently i m on slim bean 1.0. I used NStools to enable init.d scripts but still no change :(
[Galaxy S I9000 Android Development] stratosk:
No problem. In the mean time new version is up that resolves the issue. :)

I'm sorry for the inconvenience.
[Galaxy S I9000 Android Development] punticci:
Mmh everything goes OK, but there is a problem in the system folder and now is empty! So it's better don't flash it in helly bean. You're right. ;)

Inviato dal mio GT-I9000 con Tapatalk 2
[Galaxy S I9000 Android Development] nieohl:
hmm.. wondering if it this rom would also be for /datadata partition. can't wait to try it with slim bean 2.0
[Galaxy S I9000 Android Development] nieohl:
can i use NStools for overclocking? on Slim bean 1.0 and semaphore jb 2.0.0b2s atm.

because semaphore just have max of 1.2ghz OC
[Galaxy S I9000 Android Development] awandroid89:
Why dont you try it and tell us the result...dont forget to backup 1st...

sending from the beast wearing AOKP beuty
[Galaxy S I9000 Android Development] stratosk:
Swap cannot be activated optionally. Once it's enabled in kernel's configuration the swap daemon (kswapd) will be always running.

Of course you still have to configure swap.
[Galaxy S I9000 Android Development] stratosk:
I have to search for this. I've never set up swap on my phone.

Please search on XDA. I guess that there are many guides for this.
[Galaxy S I9000 Android Development] Fenvarien:
Semaphore 2.5.0 is so fast and stable, thank you very much Stratosk! OC114 works like charm and the interactive governor seems to be a great choice now. :) I see no need for swap currently but I'm watching the experiments with fun and interest ;) :thumbup:
[Galaxy S I9000 Android Development] bitblaster:
With devil kernel I had to turn on at every boot using "swapon".

Obviously the kernel damon will always run, but it seems strange to me that is enabled by default and, even so, one could always disable using "swapoff" at startup.
[Galaxy S I9000 Android Development] saszseb:
Firstly you need to create a swap partition on your ext. SDcard. It must be the first partition. If you use Windows you won't be able to connect to your ext. SDcard via PC anymore, because Windows can't recognise any of Linux partitions.
[Galaxy S I9000 Android Development] stratosk:
kswapd always run. swapon/swapoff are used to control swap files.
[Galaxy S I9000 Android Development] H-Body:
Please stay with your philosophy stratos. Simple, clean and without too much goodies to make the kernel complicated and heavy. I'm still using 2.4.4 and my phone is smooth and fast, there is nothing to complain about :)

Keep up your good work! :)

P.S. Hope to see you in the Nexus 4 Thread ;)
[Galaxy S I9000 Android Development] McDown:
UV script

Unfortunately I don't but I'm originally from Ukraine and we have pretty strong historical/cultural ties with Greece :highfive:

Anyway I'm trying to write a UV script and would like your opinion before I push it into init.d.

echo "1275 1200 1000 900 875" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table;
echo "1200000 960000 480000 240000 120000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies;
echo 120000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;

Thanks
[Galaxy S I9000 Android Development] AlexandreT:
I'm trying to form my own opinion on swap and have installed the ts version of 2.5.0 and, for the first time, configured a swap partition of around 370mb with 60% swappiness. I'll run the test for a couple of days and see how it goes.

So far my opinion on the first hour of use is that this is an improvement. My apps are no longer always getting closed. I know that reopening an app from ram is always going to be faster but resuming an app state from swap seems to be much faster than restarting an app all the time.

My problem was with Arcane Empires, every time I went back to desktop and opened another app or accepted a phone call, whatever it was, I would then have to reopen the game again, which takes a very long time. Now with swap it just takes 2 or 3 seconds and the game is already loaded. Maybe not everybody will get a benefit from running swap but for people that multitask a lot this really seems to work.

I'll report back in a couple of days.

ps: I'm running bigmem configuration.
[Galaxy S I9000 Android Development] stratosk:
Thanks for your comments, my friend.

Most probably I will (keep it simple and see you in Nexus 4 thread) :)

Unfortunately, your script will not work.

1) You can't echo to scaling_available_frequencies. It's a read only informational file

2) You didn't set liveoc value. Semaphore is OCed with LiveOC. Your line 4 can't OC

3) Line 1 is correct but: the init script will run *before* Semaphore Manager will apply the settings. So, when the app will apply the liveoc value will also change voltages for L0 and L1 frequencies (1200 and 960MHz in your case).

I hope, I will manage to add to Semaphore Manager custom voltages in next days.
[Galaxy S I9000 Android Development] McDown:
That would be awesome! :good:

Thanks.
[Galaxy S I9000 Android Development] jv.batista:
If everything goes well I will be using semaphore on the nexus 4...
[Galaxy S I9000 Android Development] DerBobo:
Re-part Internal SD-Card

Hello guys, I'm on SlimBean 2.8 with Sema 2.5.0ts

now I wanna use (new sema test feature ;) ) SWAP without any app (swapper etc.), because internal sd-card is faster than external and I can live with 64MB less space on my internal sd-card (5,7GB) for swap partition.

One more reason for usin internal sdcard is, that the external (real) SD-Card has determinated read-/write circles.

anyone an idear for repartiotionprocess on my internal sd-card? (devil kernel gives under advanced an option for partition sd and external sd-card, but that has no effect)

thnx
[Galaxy S I9000 Android Development] mindphaser2k9:
If you will, is it possible to build those in modules, to not bloat your light kernel?
[Galaxy S I9000 Android Development] 99x:
Internal SD is not necessarily faster than ext SD, mine isn't; read/write speeds are lower than my class 10 card. Also internal SD is susceptible to wear just like ext SD. If your internal card dies you are f*cked, it's much wiser to stick swap partition on external SD.
[Galaxy S I9000 Android Development] superkoal:
A few general questions about swap:

Are memory pages only outsourced if an app would be force closed and temporarly saved on sdcard?

And if you start the app again it's memory stated is swapped back to ram? (and maybe another app is outsourced?).

In that case the write operations to flash should not be that much, so it wouldn't kill your sdcard too fast. And if that flash cell becomes corrupt you could still write and read from the others afaik.

---------- Post added at 12:06 AM ---------- Previous post was at 12:05 AM ----------

It's not all about R/W speed, it's also about access time.
[Galaxy S I9000 Android Development] yahyoh:
maybe u can add it optionally in one version :)

IMO no need for swap or zram android still can handle ram very good ( better than window$ :laugh: ) anyway zram is better than swap and faster and use less IO overhead
[Galaxy S I9000 Android Development] zxseven:
in semaphore kernel how to make speaker, calling and video voice more loud?

just like helly bean devil kernel, that rom voice really loud
[Galaxy S I9000 Android Development] T0rchlight:
Setting > Device > Advanced > In-Call Volume Controls
[Galaxy S I9000 Android Development] upichie:
Regarding swap/zram:

I don't understand why people don't like these features. The amount of RAM our devices has is a huge, huge drawback. Having used swap, it's like having more RAM. Opening your browser, sending a text, opening a game, checking your Facebook, sending an email—and then going back to any of those apps without any of them having to restart. This is true multitasking. Why do any of you think that's a bad thing?

Looking forward to having swap on my favorite kernel. Flashing 2.5.0ts right now. :D
[Galaxy S I9000 Android Development] HTC=Hero:
Because the idea of ram is to switch fast, and swapping from sd-card is mindlessly slow, and compressing the ram is also slow. It is nowhere near as fast as using pure ram.
[Galaxy S I9000 Android Development] upichie:
I don't think anyone is arguing that it's faster than RAM. Of course it's not. The point is that we don't have that RAM.

I posted my previous reply on the XDA app. I then opened more apps, without swap enabled. When I went back to check the thread, I didn't have enough RAM—so the app had closed. I had to endure the splash screen relaunching the app, wait for my internet connection to load the forum list, change tabs to my topics list, wait for that to load, click this thread, load, then read the reply. If that's faster than swapping from the sdcard back to RAM and still having the thread open, then I'd understand. But we both know it isn't.

If I had 2 gigs of RAM, I probably wouldn't want swap. But I have 512—and even less is usable. My apps get closed all the time. So I think swap is a wonderful feature. :)
[Galaxy S I9000 Android Development] nouman8:
@stratosk

do not leave us alone even when you get nexus 4 btw 3.0.50 kernel is online at kernel.org
[Galaxy S I9000 Android Development] stratosk:
Kernel works with memory pages. It swaps memory pages not apps. So, during swap memory space allocated from an application, may be in both RAM and swap files (part of it in RAM and part of it in swap).

The reasons that I don't implement swap:

1) smoothness

2) CPU overhead.

3) reduces sd card life (many read/write operations)

4) it may have impact to JVM (application lifecycle, garbage collection).
[Galaxy S I9000 Android Development] pacc:
+1

With 403m of RAM available, my phone flies... with swap version it drags a little.
[Galaxy S I9000 Android Development] pxrave:
zram 10-20% would be ok but it cost cpu power...
[Galaxy S I9000 Android Development] RalphDe:
Thanks for the update. Great.

Please tell us: what settings you are prefer?

Thank you

Ralph
[Galaxy S I9000 Android Development] RivalComp:
Do we need more? I have nearly 170 apps installed... :D:D:thumbup:
[Galaxy S I9000 Android Development] Facebooook:
Thanks to stratosk for making swap enable kernel.

But how to use swap when i create it on external sd card.

How to enable it like devil app.
[Galaxy S I9000 Android Development] saszseb:
Pls. read this guide!
[Galaxy S I9000 Android Development] chrischa:
Hey stratosk, would it be possible to implement a feature like different vibrator levels according to the proximity sensor values? For example, high level when you got the phone in your bag and a low level if tje phone is placed on your desk or table:) that would be really cool
[Galaxy S I9000 Android Development] upichie:
That's actually a cool idea! Might be too many settings though, Stratosk likes to keep things simple (and we all thank him for that). :)
[Galaxy S I9000 Android Development] bhu1:
2.5.0 is good. Have been on stock kernel since a long time, just installed this out of curiosity. It works good. Though I don't use my sgs much these days, but I'll use this from now on.

Sent from my nexus 7.
[Galaxy S I9000 Android Development] upichie:
I feel these are all valid reasons against swap. I don't mind either way, I'm not going to stop using Semaphore over something so miniscule. I just felt people disliked swap for the wrong reasons. Personally, I like it. But I like Semaphore more, with or without it.

Plus, I'm looking forward to upgrading to the Nexus 4 with Stratos! Then we won't have such a RAM deficiency. I will enjoy your kernels for as long as you keep making them. Thanks again for all your hard work. :)
[Galaxy S I9000 Android Development] Fenvarien:
I tried now zram with 2.5.0t and bigmem today using the 10% or 18% setting. It was a good experience, especially when I used Chrome extensively with several tabs.

If you are going to support this feature with future kernel versions, Stratosk, I will use it for sure. :)
[Galaxy S I9000 Android Development] habylab:
God I miss your kernel :/ The s3 is less supported in terms of quality than the s1! Aha. Especially kernel wise.
[Galaxy S I9000 Android Development] stratosk:
This is not a bad idea. :)

Let me check this.
[Galaxy S I9000 Android Development] alkhafaf:
Over 7 hours and still at 100% ?

can u share your config. ?

thank you
[Galaxy S I9000 Android Development] saszseb:
After fully charging and without using your phone it could happen.
[Galaxy S I9000 Android Development] roshan2989:
hi there just wanna ask what is swap? sorry for the noob question...im still in learning process...

im charging with my phone turn off,when i insert the charger its show the charging icon after a few minutes i cant see the charging icon ?seems like no icon while charging?using the latest kernel...
[Galaxy S I9000 Android Development] tusko5:
I have the same problem. Did you manage to solve it?
[Galaxy S I9000 Android Development] stratosk:
Please google 'linux swap'

About the charging animation. It's not supposed to be visible all the time.
[Galaxy S I9000 Android Development] tusko5:
It seems zram requires some userspace work to be correctly enabled. Check this:

http://pastebin.com/CeKX4zhY
[Galaxy S I9000 Android Development] RivalComp:
It's in the morning, an ideal situation after disconnecting charger at the evening. Just phone radio is on, everything else is off (controlled by Tasker when face is down).

114% OC, SmartassV2, Interactive, 256k SD, Wifi Fast, Dark brightness, CIFS, TUN

The real test is while I drive. Several apps running in parallel: AutoGuard Blackbox, Waze navigation, BlueGPS (for external GPS receiver), Bluetooth headset, 3G on, everything is automatized with Tasker, TuneIn Radio sometimes via jack output. Cerberus is always running, but it doesn't need any resources. In this state the genuine Samsung car charger (700 mA) can't supply enough power, battery discharges while charger is connected. (Could I use 1000 mA charger instead?)

I tried many combinations of governors, schedulers, it seems to be the perfect combo. I can use my phone this way only with Semaphore, all other competitors has bled out in the past. Of course it lags when coming out from driving mode (closing all apps, turning off BT, etc.), phone lacks an other CPU core and some more RAM... :)
[Galaxy S I9000 Android Development] superkoal:
Thank you very much, sir!

In that case i'll switch back to 2.5.0s

Smoothness is fine, but i don't want to risk my phone (sdcard) dying an early death.

If someone implements swap in a way that minimizes write operations on sdcard (only move memory pages of currently not running apps to sdcard and moving them back to ram when the app is used again) I'll think about using it again :)
[Galaxy S I9000 Android Development] Jonae:
+1

This is a good idea. I always get scared when the phone vibrates on my desk. :)
[Galaxy S I9000 Android Development] RivalComp:
Doesn't the continuous proximity sensor checking drain battery? I think this function could be reached with Tasker. Tasker can check sensor time to time and can set vibration with a simple script line (Stratos knows exact command) if you want. Is this really must be a kernel functionality? You guys talking about slim kernel blabla... Just asking... ;):thumbup:
[Galaxy S I9000 Android Development] stratosk:
Continuous checking is not required. It may be checked on phone call only (during ringing).

Anyway, I will check it. Also maybe I can do this as service in Semaphore Manager app.

@all

Anyone noticed issues with touchwake? When the proximity is enabled/disabled during call, call drops?
[Galaxy S I9000 Android Development] Fenvarien:
Zram won't show up as swap with the free command. It's more a transparent compression of a certain percentage of your RAM. It doesn't use a swap partition.

With CM10 no additional userspace work is needed, just enable it in the performance settings.
[Galaxy S I9000 Android Development] matesc:
No issue with touchwake here during call... :D
[Galaxy S I9000 Android Development] lerkin:
Wrong. It does show under free command on stock kernel and devil's one.
[Galaxy S I9000 Android Development] chrischa:
like /+1 :) :) you are great.

in my opinion my sgs sounds sometimes like steamship with a high vibrator level on my desk. but on the other hand if i got the phone in my trousers i dont recognize until i see the bln lights, nevermind they are great, but a more functunally vibrator would be too :)

i thought a longer time about it an i think the proximity sensor can deliver nice values to avoid this :fingers-crossed::fingers-crossed:

i think you just need to check the values when a call comes in and i thought the vibrator level is set in the semaphore manager, why dont allow two different values?
[Galaxy S I9000 Android Development] s3icc0:
ram manager vs swap/zram

as i am reading the swap/zram conversation i must say i use a RAM Manager Pro from JUWE and with this application i really dont have problems with my ram - i don't need to kill anything or to check what is the amount ram free/used atm. I am using it with the "More free memory (less multitasking)" and I always have my last 4-6 applications in memory (depends on amount of ram reserved by the applications) ... I know it is a small investment but have to say it was worth. It helped a lot on 2.3.x GB roms as well as on 4+ aokp or cm roms - every time with semaphore kernel (maybe on 2.3 with glitch sometimes) :silly:
[Galaxy S I9000 Android Development] Neel.I:
Hi Stratos !

My KWL times have gone up significantly these days .. PWL seem normal,but had never seen such high times on KWL

I am using ondemand with smooth ui,NOOP and minimum freq locked at 100
[Galaxy S I9000 Android Development] adytum:
That particular wakelock can be lots of different things, as the documentation states, but I've found that it can be related to deep idle. If I happen to not use much audio one day, I find that wakelock pretty frequent.

Sent from horseback.
[Galaxy S I9000 Android Development] Neel.I:
deep idle is disabled as well

In fact haven't been using the phone much .. most battery drain is due to maps and Google search which is normal

Want to confirm if any settings that I am using currently is responsible for this
[Galaxy S I9000 Android Development] 99x:
The description for that KWL says it is a place holder for PWL, what does the PWL show for you?
[Galaxy S I9000 Android Development] upichie:
Thanks for the advice! I'll be sure to check his app out.
[Galaxy S I9000 Android Development] Neel.I:
Oh,you mean to say it actually displays the PWL timings ?

PWL,top of the list are Google search,couple of Map services and Alarm manager
[Galaxy S I9000 Android Development] 99x:
If you click the globe icon next to it in betterbatterystats it takes you to this page:

https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/PowerManagerService
[Galaxy S I9000 Android Development] Neel.I:
hmm .. I remember earlier KWL timings used to extremely low,almost as close as the next one in the list

I guess this must have happened after a particular Maps update,which is causing a lot of battery drain .. I can see quite a few Map processes in PWL
[Galaxy S I9000 Android Development] RivalComp:
Anybody else with Slim 2.9? Semaphore kernel manager don't change governor and auto brightness. OC chages. Did app data wipe, cache and dalvik wipe, fix permissions, kernel reflash, removing init.d and other data, no result... :confused:
[Galaxy S I9000 Android Development] saszseb:
No prob here. Do you use the latest Semaphore Manager?