yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] Toni5830:
Hey Chrono,

some time ago I noticed in samsung sources there is a ZRAM_FOR_ANDROID config which is now useless, I removed those lines from various files: https://github.com/Toni5830/kernel_u8500/commit/28cf320f4c3f497e6f8f08d431447dfdbe304f81

Bad idea or good idea?
[Galaxy Ace II Android Development] bebolint98:
Hey [MENTION=5695278]ChronoMonochrome[/MENTION] I use R2.24 kernel and many times I got under 100 MB of ram when nothing run in the background.With R2.23 I got about 280-260 mb free ram and sometimes go down about 10-5 mb free.This is normal?Here I got 12mb free with this app running:
[Galaxy Ace II Android Development] ace2nutzer:
How many times we need to say: Yes it's normal on Android / Linux..

Google for Android / Linux Memory Management .. it's not like Windows (for german friends: windoof) ;)
[Galaxy Ace II Android Development] xo.en:
Mem mgmt with proper lmk/vm settings work(s) fine.

But, you need to know one thing: NONE of roms are handling it out of the box.

Init.d, lmk/vm inits are needed, difference is ....visible, if you ask me.

btw, your values are ridiculous, guys. More = worse for this machine, realize this.

Check these(those):

http://speedy.sh/gBHGV/xoinit.7z

btw, skip build.prop, it is made for totally different device. Yup, some of settings will work fine.
[Galaxy Ace II Android Development] ChronoMonochrome:
Hmm, you remind me that since ZRAM has updated that config became unused.

Probably it should be a good idea, unless you've noticed opposite. Do you feel any difference after this change?

Don't know however, whether it needed or not when ZRAM is disabled.

Btw, I'll test it later.

Only 5-10 MB is awfully low... On my machine I still have ~300 MB free memory, with no many apps running. Can you send me dmesg and logcat?
[Galaxy Ace II Android Development] ace2nutzer:
Right now i've bootet my Phone with config_hz=1000 and boottime decreased from 11700 @ 8340 !!! with uksm :D so this is quite amazing !

@ CONFIG zram for android .. good idea .... i'll try to re-enabled it over defconfig... because like Chrono said.. it's only useful with zram enabled ...

(just edit dependencies in kconfig and so on .. )
[Galaxy Ace II Android Development] xo.en:
lol, it sounds like you are drunk :) 8200 is not that hard to get, btw..

btw, uksm is nicely controllable with perfctrl.

apk seems to be able to find what kernel is able to do.
[Galaxy Ace II Android Development] greeceeeee:
What's wrong with 2.24?? Too less free ram....
[Galaxy Ace II Android Development] ace2nutzer:
lol and the next here .....

instead to write "too less free ram" why u don't post here the Minfree Values ?
[Galaxy Ace II Android Development] ChronoMonochrome:
Guys, this looks like that there is memory leak somewhere, because I can't reproduce such low memory condition, so maybe there's some concrete place where memory leaks. It would be nice to get as many reports as possible. Later I'll recheck latest changes.
[Galaxy Ace II Android Development] Ave_Hornet:
[MENTION=5695278]ChronoMonochrome[/MENTION] for me ITS good with Cm11 ~330 free
[Galaxy Ace II Android Development] borkins:
For me, the free min RAM is around ~130 - 145 MB. Sometimes dropping below 100 MB ( ~ 90 MB), then the android kill my browser, when I have more than 5 apps in the background ( including the browser ), but overall I can't see any difference, comparing to the older kernels.

I think the RAM usage is normal - I can't 'complain' about it.

So far, r2.24 working very good for me. :)

Thanks again!
[Galaxy Ace II Android Development] ace2nutzer:
From where do u get that info ?? - From Settings --> Apps -- running apps ?! ---> then at the Bottom the RAM free ?? - If yes, that Value is not true !

Forget it completely ....

U Guys should check ram usage with term. emu. by typing the command "free" (all Values are in kb)

There u can see REAL Values ....

Then u can see: Amount of total real ram (userspace approx. 630MB), used ram, used ram (buffered), free ram, free ram (buffered)

An also: "swap" (zRam) : the amount of zRam Size, used zram, free zram....

Just to prevent useless Postings / asking about this:

Don't wonder if u'll see sometimes under free: only 8000 ... (8MB ! ) this is NORMAL ...

after this behavior start a big app.. and close it ... then check again with "free" .. u'll see now if the app needed enough much ram .. at least 100000 - 150000 as for free ram (100-150MB) .. ;)

I hope everybody did understand this :o;)
[Galaxy Ace II Android Development] greeceeeee:
Excuse me for my english,I do not want to play it smart only I want to understand better some things about the whole thing of kernel!
[Galaxy Ace II Android Development] shaqman89:
For me seems it's still normal like before. Nothing to complain about ram management.

Using free shows me less than 5 mb, but it's been consistent with my previous experiences. Furthermore, I haven't actually felt any issues related with ram other than SwiftKey closes itself, but then that's after the phone is on for like 3 days and going on and off games for like 5 times a day. With the amount of ram we have I believe that is normal.
[Galaxy Ace II Android Development] heldix:
I am VERY happy with this new version. It got noticeable faster especially when switching between large apps (chrome for example). I think ram management got better and i/o write and read speed.

Greetings,

heldiX
[Galaxy Ace II Android Development] ace2nutzer:
Everything okk .. i've this behavior since first day of using CM11 .. no matter wich minfree values are used ...

but anyway u've the stock Minfree Values .. ..and at least u should have a bit faster phone due to more free ram.. or better: it will kill apps earlier.
[Galaxy Ace II Android Development] borkins:
I got it from two different apps.

I checked the free RAM with the terminal, and it is around 3-20 MB.

Maybe the ROM devs should type somewhere that is better to check everything in the terminal emulator first. ;)

Then they will not need to spend their time with bug fixing.
[Galaxy Ace II Android Development] ChronoMonochrome:
Guys, thanks for reports. :)

I've uploaded R2.24.1

Changelog:

Enabled RCU_BOOST and changed CONFIG_HZ from 100 to 1000. Now it should be just insane fast! Also this reduced boot time to ~8100ms. Thanks [MENTION=5840412]ace2nutzer[/MENTION] for testing.

reverted most of changes in memory management
[Galaxy Ace II Android Development] Ave_Hornet:
[MENTION=5695278]ChronoMonochrome[/MENTION]

Now with SeLinux too :D Thanks :D
[Galaxy Ace II Android Development] ChronoMonochrome:
I've left selinux accidentaly in first build, and decided to upload both versions :) Btw, some people reported that build without selinux works as well with android 5.1.1, but I haven't tested it.
[Galaxy Ace II Android Development] ace2nutzer:
Thanks for credit :) That Tuning is really good ... I got this Idea long time ago during configuring my Lubuntu Kernel .... but i was not able to edit this also for our Ace 2 .. but u founded the right kconfig File in order to edit that Value... so thx also @ Chrono :good:
[Galaxy Ace II Android Development] ChronoMonochrome:
No problem :D
[Galaxy Ace II Android Development] ace2nutzer:
Every Update = more speed and so on ... one day our Ace 2 will explode .. our kernels are just to fast :D

Sometimes i'm really wondering how robust that Phone is .. surely 500 - 1000 times flashed .. hard OC .. high Temperatures ... and battery is now over 2 years old .. and still everything ok .. no one isse ..

Ace 2 never die :o :fingers-crossed::highfive:
[Galaxy Ace II Android Development] fluffi444:
Hey borkins... Some days ago I was thinking about to optimize DDR OC at startup. I still happens to me that phone rebooted sometimes during OC. I remember that you (or someone elso - maybe Chrono) said that communication with Data/Media could lead to reboot...

I decided to go to Flight Mode ON during DDR OC is running to prevent any syncing/download stuff which happens on every reboot.

Was a bit tricky to find a way - But I found one.

With this "trick" I never had any reboots with DDR OC during booting phone anymore!

# Airplane Mode ON (For DDR OC)
settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true

[script do his things]

# Airplane Mode OFF (For DDR OC)
settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false

This works for every 4.4.x for sure - But I read also that this dindn't work for 5.x.x anymore....

With this I use an quite outdated script without some feature, which are not needed anymore imho.
[Galaxy Ace II Android Development] manthes:
With ddr oc i had a problem that chrono, if i remember correctly, has said that it will happen. I have corrupt data and i was unable even to restore backups. And that happened at least 2 times until i stopped used it
[Galaxy Ace II Android Development] shaqman89:
It is really fast, I agree :)

What's more, boot time for me is 7795 :D

Great job.
[Galaxy Ace II Android Development] ChronoMonochrome:
For me it was 8060-8100 as I use f2fs, but YMMV. What's more funny it's not quite limit yet :) Although HZ=1000 is extremely high value(it's quite safe however, so no worries), I'll later try even higher to see how much can handle this phone :D
[Galaxy Ace II Android Development] borkins:
Thank you for your tests, [MENTION=4962787]fluffi444[/MENTION]! :)

I'll import Airplane On/Off feature to the OC DDR scripts, as soon as I can.
[Galaxy Ace II Android Development] shaqman89:
You guys are insane. :D I do sometimes wonder what would be the upper limit of this (what my dad would usually say as pareto maximum).
[Galaxy Ace II Android Development] ace2nutzer:
hmm good idea ... :o I'll try later the same for my Laptop ... :D
[Galaxy Ace II Android Development] ChronoMonochrome:
Talking about desktops. After some research I've found this kernel, which should be really good option for laptops https://wiki.ubuntu.com/ZenKernel

Its one of the main features is BFS, scheduler which supersedes stock, not highly optimized for desktops, Completely Fair Scheduler (CFS). Btw, this would be really nice to have it on mobile - according to its FAQ, mobile devices can benefit a lot from it. Unfortunately, for now applying this patch causes conflicts (don't know yet, can I fix it or not).
[Galaxy Ace II Android Development] gothicVI:
Having read about the speed bost of the newest kernel version I am tempted to give it a try. I'm currently using 2015.03.24 CM12.0 build by polishvodka and chorono kernel v. R2.20.1.1. Some time ago I tried to update to kernel version R2.22 I guess (can't remember for sure) and ended up with a bootloop. Even installing the previous working kernel version failed as bootloop continued and I had to do a factory reset. I really want to avoid this scenario! Therefor I have some questions first:

Is the current kernel version compatible with CM12.0, hence polishvodka's version from 2015.03.24?

How to install the newest kernel? Is clear cache and clear dalvik/art cache enough? I read about deleting init-script, yet I don't use any personal scripts at all...

Settings tell me that SELinux is disabled. So [MENTION=5695278]ChronoMonochrome[/MENTION] what is the crucial point about your kernel builds with and without SELinux and what's the proper version for me to use?

Thanks ahead for your answers folks :victory:
[Galaxy Ace II Android Development] Ave_Hornet:
1.Previous builds of PolishVodka needs SeLinux to work . Now last build eg. 04-05-2015 no need Selinux

2.Clear Cache and dalvk is recomend

3. Now for every build work version without SeLinux.
[Galaxy Ace II Android Development] ChronoMonochrome:
Shame to me, it never worked properly for a long time, probably since 2.20.1.1. There was a logical error in installer, due to that init.samsungcodina.rc was not installed. There will be no longer unified builds for codina/codinap, as there's no proper way to detect device type, unless we are looking in /system/build.prop, which may fail if no any OS installed yet(we can't also count on default.prop in recovery, since it simply can be deleted from ramdisk - which in this case caused bootloop).

I've uploaded two builds for codina and codinap to

http://xda.mister-freeze.eu/XDA-files/ChronoMonochrome/kernel/codina/ and http://xda.mister-freeze.eu/XDA-files/ChronoMonochrome/kernel/codinap/ . To install it, normally no need to do anything except flashing it. But this version without selinux - therefore will work only with latest cm12.1 builds.
[Galaxy Ace II Android Development] borkins:
[MENTION=4962787]fluffi444[/MENTION], I searched about the problem with turning 'Airplane Mode' On/Off on CM12.

Looks 'settings.db' is locked on Android 5.0, and Selinux permissive is needed to switch On/Off the 'Airplane Mode' with that method.

I'm not sure, but maybe this is another way:

If you are on CM12, can you try the following in terminal emulator:

settings get global mobile_data
# and
settings get global wifi_on

If the result is '0' or '1', then disable your wifi or mobile data, and type:

svc wifi enable
# or
svc data enable

If that works, we can use that method in the OC DDR scripts.
[Galaxy Ace II Android Development] fluffi444:
I'm on CM11 (and will stay there for ever for sure) - But maybe one of our CM12 guys can test this?! :confused:
[Galaxy Ace II Android Development] strangebro:
im on polishvodka CM12.1 4/5/2015. when firstboot into the rom, it takes so long to optimizing app. the time it took to optimize all apps are far longer than stock kernel CM12.1. is this normal?

FYI, im still on optimizing scrren now, 84 of 93 apps.
[Galaxy Ace II Android Development] BlueZ-:
It's normal, you should check if this happens at every boot, like in the previous versions..
[Galaxy Ace II Android Development] manthes:
2.24.1 is really faster than 2.24 but i see that after opening many apps phone was very laggy and i have to reboot to work normally.
[Galaxy Ace II Android Development] ChronoMonochrome:
Thanks for report! I was afraid that it will happen, and it happened(as HZ was already overused). Will decrease HZ to 300 and upload new build.

Btw, how much RAM was used when you've performed reboot?
[Galaxy Ace II Android Development] fluffi444:
May there could be one main build for codina and codinap each (from time to time) and after that universals again.

Its really a pitty that we lost "universal feature". And its even more work for you to build two versions again.

Maybe there could be a message (to install main build first) with aborting install of universal kernel.

EDIT

Looks like that chrono_kernel_r2.24.2.zip (for codinap) is not in its folder?!
[Galaxy Ace II Android Development] ChronoMonochrome:
Not so many actually :)

Of course I've my own build script for that. So wholly the process comes down to:

compile config
inst codina
inst codinap
upload codina
upload codinap

Maybe later I'll make build with aroma installer or smth... nevermind, anyway the build process is actually 5 commands above :)

Yep, fixed...
[Galaxy Ace II Android Development] ace2nutzer:
Hmm i've similar script .. i've many scripts... but when i'm ready to build the release.. then i've just to execute one script .... that script do:

./build_codina_ext4.sh
./build_codina_f2fs.sh
./build_codinap_ext4.sh
./build_codinap_f2fs.sh
./upload-kernel-release.sh # all 4 builds

but before i run this script i've to edit 2 files to edit the date ..... :)
[Galaxy Ace II Android Development] ChronoMonochrome:
I prefer to copy/paste :p commands above is declared functions. :)
[Galaxy Ace II Android Development] ace2nutzer:
of course ! it was just fun(ny) :highfive:
[Galaxy Ace II Android Development] manthes:
With 2.24.2 swap is zero. Is it normal?
[Galaxy Ace II Android Development] shoxieJESUS:
@up

It zero for me from r2.23
[Galaxy Ace II Android Development] gothicVI:
Sorry for the delayed reply :p

Btw: I have cordina version (no NFC)

Now I'm confused, as:

@ 1. and 3.: Why do these builds need SELinux enabled, as it shows that it's disabled o.O

I can't use the newer builds with android 5.1.x, hence the ones =/= 5.0.x as is the newer builds xposed framework does not work properly. Thus for the moment I will stay with the 5.0.2 build.

So you're telling me that for the 5.0.2 build I'm using the latest kernel vesion should work, hence http://xda.mister-freeze.eu/XDA-files/ChronoMonochrome/kernel/codina/?

Thx again in adwance ;)
[Galaxy Ace II Android Development] ChronoMonochrome:
I don't remember, which exactly CM12 builds doesn't support no-selinux kernels. Probably it was since update to 5.1, but can't say for sure as I haven't had installed 0324 version of CM12.0. You can try newest available kernel, and if it won't work, I'll fix installer of build with selinux.
[Galaxy Ace II Android Development] PolishVodka:
You can safety use kernel without SEL on any CM12.
[Galaxy Ace II Android Development] nikolas1274:
Zram is disabled? Cause I remember that you had enable some time before
[Galaxy Ace II Android Development] ChronoMonochrome:
Zram is built as module. You should add zram.ko to /ramdisk/modules/autoload or /system/lib/modules/autoload to use it.

UPD. r2.24.3 is up. Fixed slow interface animation - thanks [MENTION=4802118]monstro78[/MENTION] for testing.
[Galaxy Ace II Android Development] nikolas1274:
Is the init.d for zram also needed?

Thanks
[Galaxy Ace II Android Development] ChronoMonochrome:
Yes it's still needed. I forgot to mention, zram.ko should be added exactly to /ramdisk/lib/modules, to be loaded before zram script start to work.
[Galaxy Ace II Android Development] zizoumadrid:
i'm on ace2nutzer kernel with cm 11 by ace2nutzer f2fs and i want give to this kernel a try what must i do thank's
[Galaxy Ace II Android Development] shaqman89:
Just flash it normally. Just in case, remove all init.d scripts before.
[Galaxy Ace II Android Development] gothicVI:
I jut wanted to let you know about my misery regarding the try of your newest kernel version (2.24.2) on polishvodka's 5.0.2 build from 24.03.2015:

1. Installation went fine and boot didn't take too long :good:

2. Sadly my phone became super slow and very unstable. Blackscreen bug reappeared, the screen just froze without becoming black, soft and full reboots occured after each of whom all apps were aktualized which took quite long. :crying:

3. I don't know if this is related to your kernel but for some reasons google play store started to come up with error 503 or 504 (no gateway - can't remember the number right now). I tried to delete data and cache of google play store and google service framework but after that google play store was unable to recognize an existing internet connection :crying:

2. + 3. lead me to restore my backup :(

Atm I'm quite curious if any one of you can give me a hint what went wrong. Aktually I have no idea...

Greetings from Munich

gothicVI
[Galaxy Ace II Android Development] xo.en:
22.5 is ok(so it is ontopic).

There is something weird with your kernel, Chrono - any active task is draining battery with scary rate.

Idle is perfect - totally IDLE is great, system set with with disableservice here, but any activity drains /sucks battery badly.

This is weird.. I am trying to use every battery saving method, 2 y.o. machine there - what do you think - is my battery fed, or//.hm.
[Galaxy Ace II Android Development] Vexylle:
Got 2 random reboots today, and 1 time the phone froze in sleep mode, so i had to restart it
[Galaxy Ace II Android Development] greeceeeee:
What about 2.24.3 ???
[Galaxy Ace II Android Development] Ave_Hornet:
Give [MENTION=5695278]ChronoMonochrome[/MENTION] Logs -_-
[Galaxy Ace II Android Development] ChronoMonochrome:
New version R2.24.4 is up.

I still can't reproduce bugs recently reported, however I reverted some recent changes to see if it'll solve problems. Also governors tuned a bit in order to increase battery life-time.
[Galaxy Ace II Android Development] ace2nutzer:
Can someone pls testing following with the Chrono Kernel ?:

Set on CM Performance Profiles: High Performance or Powersaving ... and check if after an reboot the Setting is not back to "balanced" .. thanks ! ;)
[Galaxy Ace II Android Development] bebolint98:
I set the cm perf.profile to high performance and after reboot the "balanced" settings get back.
[Galaxy Ace II Android Development] ace2nutzer:
Thank u .. then it's a bug in the ROM .. not Kernel :)

btw: even with latest CM11 buggy ?!
[Galaxy Ace II Android Development] bebolint98:
The latest cm11 not buggy.Pretty much everything works fine.
[Galaxy Ace II Android Development] ace2nutzer:
so, if u set high performance... after reboot it's still at high performance ??
[Galaxy Ace II Android Development] bebolint98:
Sorry I undrstand the question bad even with the latest cm11 still buggy.So set high performance,reboot and the profile go back to balance.
[Galaxy Ace II Android Development] ace2nutzer:
Thx ! I'll try to fix it .. or i'll simply do a workaround ....
[Galaxy Ace II Android Development] gothicVI:
I'll give it a try later. Will report.

Btw: please tell me how to provide logs/logcat in a way that helps you improve your great work :cool:
[Galaxy Ace II Android Development] ChronoMonochrome:
If you have found bug or unexpected behaviour (laggs etc) then post logcat / kmsg:

logcat > /sdcard/logcat.txt
cat /proc/kmsg > /sdcard/kmsg.txt

last_kmsg maybe helpful if you encountered random reboot

cat /proc/last_kmsg > /sdcard/last_kmsg.txt
[Galaxy Ace II Android Development] gothicVI:
Funny thing happening:

Before installing latest version I updated all apps including link2sd (latest version beeing x.11). Now the very same thing happens as with last try: After first reboot after installation link2sd version is x.10. Upon opening google play store there is an update to the latest version (x.11).

When trying to install this I - again - get the error 504 and the update is not applied :(

Now I'm really out of ideas. Will test weather freezes and sudden reboots also occur as in last verion I tryed - so far this is not an issue.

Btw: how long does taking logcat/kmsg take? After ca. 40sec I interruped via ctrl + C.

Nevertheless here they are (logcat.txt is ziped to bypass filesize limits...) - hope this helps...

EDIT: On incoming call screen stays black + had a soft reboot with all apps being optimized again. Furthermore I had to enforce a reboot (with app optimazation again) after freeze. Tryed to take last_kmsgs but phone freezes... Will go back to my backup again :crying:
[Galaxy Ace II Android Development] ChronoMonochrome:
This should be enough, thanks. I remember same errors in logcat which appeared some time ago but were somehow fixed. I'm afraid this happens due to disabled HIGHMEM support in kernel, which caused apps installation breakage on some of CM12 builds, but was no longer needed on next builds. I don't support HIGHMEM builds as non-HIGHMEM ones has slightly better performance.

Probably problems with reboots and apps optimization happens due to the same reason.

Btw, what version of kernel doesn't cause bug above(did you revert to 2.20.1.1 or something else)?
[Galaxy Ace II Android Development] shaqman89:
[MENTION=5695278]ChronoMonochrome[/MENTION]

I've also got random reboots. Three times so far and everytime it happens the battery is almost empty (15%). Strangely though, as soon as i plugged the charger, battery jumps to 35%. I am not sure the battery is faulty cause it could still go on for more than a day on a single charge.

Here is the last kmsg.

https://docs.google.com/file/d/0Bzo3MSxg_YFCc1otQzlDbXY4VUU/edit?usp=docslist_api

Its 1mb big though. Do you want me to see some specific thing there?

Update: The kernel I am using is 2.24.4 but the issue started on 2.24.3. I thought it was due to OC and DDR. But it persist without them. The only thing that consistent is the battery level after it went back on.

I am also using your ROM, but im not sure that is the cause.
[Galaxy Ace II Android Development] dixee:
now i'm using polishvodka cm12.1 build 20150508, when using your kernel from R2.24.4 sometime the phone got very laggy. as your suggestion i'm using R2.20.1.1 and so far its smooth, will see later...