yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
Try this Setting:

40, 45, 50, 55, 60, 80 MB

Try to use SIOPLUS

Then it's most likely Filesystem errors ...try this as well:

make recovery backup

backup of both sdcards ...

format /data & /cache & sdcard0+1

restore the backup.
[Galaxy Ace II Android Development] borkins:
Thanks, I'll try these min free values, and the SIOPLUS scheduler.

I'm not so familiar with kernels, but about the FS errors, I doubt a little about them, because i found some of my old last kmsg logs from zwliew's kernels (from 2014). I wiped 2 - 3 times everything including made changes in the partitions.

And the same messages "Unable to handle kernel paging request at virtual address 40008814", or "Unable to handle NULL pointer dereference" is the same reason for reboots.

If it's a hardware issue, it's not impossible other devices to have the same problem, but it's less likely.

With so many implemented stuffs, it's not easy to catch all bugs, so the problem maybe is inherited even from the TC sources.

We need more logs from reboots, and time to investigate them.

I don't know how exactly the kernel allocate and uses the virtual addresses, but there is some trigger, or model leading to such errors.

In my observations, it usually happens, when the RAM is low and then some module starts or stops.
[Galaxy Ace II Android Development] ace2nutzer:
One year ago my kernel also had those 2 error messages very often.

With time i've changed many things in defconfig + cpu oc driver, also completely reworked cpu governor tunables.

And thanks to chrono a few updates for sioplus and binder driver.... last ist probably still buggy but at least the phone works anyway properly... (Only some annoying binder errors in logs ;) )

So after finally reflashing the phone completely from scratch, and format everything.. Incl. Sdcards.. the random reboots are somehow "fixed". That means i can run the phone for one month (and probably longer) non-stop.

Unfortunately i even can't say if this issue comes from tc sources.

The fact is: this kernel or phone is very very sensitive ... I really don't know what is wrong.

For example: i had to delete all cpu governors and i/o schedulers because they all was causing instability except of dynamic + sioplus. Even using a bit different dynamic gov. Tunables causes random reboots too.

Another thing: i'm 5 commits behind latest tc sources ( skipped ddr oc commits) while chrono kernel is 157 commits behind tc sources. Any reason for this chrono ?

U maybe are missing a lot of cpu oc driver stability fixes from cocafe + mkaluza....

Check this:

https://github.com/ChronoMonochrome/Chrono_Kernel/compare/stable...TeamCanjica:3.0.101
[Galaxy Ace II Android Development] ChronoMonochrome:
Haven't been tracking this topic for a long time, lol.

All these issues with reboots are possibly coming from the current in-kernel implementation of memory management. Though, I cannot say particularly, from which kernel version this bug is appeared nor I can reproduce it (I don't use resource consuming apps, usually only music & vdeo player + a few calls per day).

No, I don't miss any commits in the regard of CPU OC algorithm. The reason why CK branch is 150+ commits behind TC sources is because I was working on kernel developement in a parallel with TC, not necessarily merging all TC changes, though I have to admit, that a lot of TC stuff was eventually merged too.
[Galaxy Ace II Android Development] ace2nutzer:
U can't reproduce because probably there is nothing wrong :)

[MENTION=5151049]borkins[/MENTION]

how it goes with dynamic + sioplus + new minfree values ?
[Galaxy Ace II Android Development] borkins:
Thanks, but It's the same. I tried the min free values, but the phone starts to freeze terribly,

like the CPU it's on 8 MHz, too soon when browsing. :(

Now I'm back to: 2048, 4096, 8192, 16384, 24576, 32768.

I'm avoiding to keep two internet sites in the same time. But i have at least 2-3 important tasks in the background.

The LMK kills even a foreground task, so there is no more space to free in RAM and no space in zram.

Usually then the problem occurs. Something brakes the algorithm of the kernel memory allocation or something.

I don't know what the Backtraces points to, or what the CPU registers saying.

Sorry, bro, if I wasted your time with my logs!

I don't know what to do with them, so I'm making a last_kmsg collection here. :)

And I have another 3 logs of the same kernel. Also some old logs from zwliew's kernels probably with the same issue, if you want.

Don't know, where else to share them to get help... :?
[Galaxy Ace II Android Development] KarlosLosMentos:
Question ... Which version of this kernel is more stable than other ones ? ... I try 4.2.9 and i have same problems ... Reboots every 15~20 second :/
[Galaxy Ace II Android Development] ace2nutzer:
[MENTION=5151049]borkins[/MENTION]

This sounds very painfully. Can u post those info:

Swappiness

Page-cluster

How many zram devices

Total amount of zram.

Btw i still suggest to use the minfree values i have posted. Especially using for the first value less than 40mb* leads to freezes and highly chance of OOM. (many times tested)

My Values are for max Multitasking ... But for performance reasons it's safe to increase the last 3 values ... but then Multitasking is really poor. But at least on both possible configs u never ever run oom or even a reboot.

* = on a linux kernel (laptop) the system never ever goes deeper than 60mb for free ram.

When free ram is 60mb it starts to kill other tasks or if swap is available it starts to swap.
[Galaxy Ace II Android Development] ChronoMonochrome:
New kernel r4.3 is up!

Ok, guys, I have gotten some free time to release a new version.

Changelog:

resetted LMK back to samsung 3.0.x version (latest in CK git branch)

reverted WiFi driver to stock

added support for 6.0.x UltimateROM

added support for custom fstab partition paths and sdcard swap for 6.0.x (read on *)

compiled NFC and TUN modules built-in (again)

Actually don't know yet if reverting LMK to samsung's version can help with the mentioned problems above, but why not to give it try ? :)

According to logs above it was obvious, though, that a faulting driver was always WiFi kernel driver, somehow.

* a bit late, but finally support for memory swap on 6.0.x was added. CM13 ramdisk is still outdated though, so if you're CM13 users, you can skip the following part and don't install this build.

In order to swap storages, you need to create /ramdisk/.use_ramdisk_fstab file (it doesn't matter if you do so before or after installation). After installation a file /ramdisk/fstab_specs.txt - fstab config - will be created - there are a few parameters, which you can change: use_cache_partition, use_preload_partition, use_swap etc. By default storages swap is enabled, thus if you want to permanently disable storage swap, change use_swap =1 to use_swap=0 and flash kernel again. Alternatively, you can create /ramdisk/.use_swap file and reboot the phone, but note that this will not change the permanent setting use_swap (thus, if you flash kernel again, storages would be swapped again). Additionally, you can change partitions paths, e.g., if you use dualboot (but normally you don't need to do so). Option use_cache_partition specifies whether cache partition should be used at all (default is use_cache_partition=1, disabling can speed up boot time a bit). Remember to reflash kernel, if you change fstab config options.

Enjoy!
[Galaxy Ace II Android Development] Noxialis:
Just asking (because I've had a great experience with your kernels)

When can this be usable for SergeyL's CM13? Rather, when will it ever be?
[Galaxy Ace II Android Development] ChronoMonochrome:
That's a good question! :laugh:

Due to a lack of a free time or the necessity of further updates it has resulted that CM13 ramdisk is still outdated. Though, right now it should be just a matter a time, when it will be updated.
[Galaxy Ace II Android Development] tofueatsbread:
2-this is for 4.1.2 i think, stock
[Galaxy Ace II Android Development] 10BIT:
it's worth to flash my ace 2 back to stock,this kernel is nice dude,no reboot so far for me........ (im on 1.2 Ghz with interactiveq)

thanks man.......
[Galaxy Ace II Android Development] dragos281993:
I just found a bug, the same as [MENTION=5604178]zwliew[/MENTION] 's latest kernel. When I try to play a video in 720p with Viral Pop-up, the player freezes. So, to put it simple, I've for problems with playing videos in 720p. The previous build of zwliew's doesn't have this bug.
[Galaxy Ace II Android Development] zwliew:
works perfectly for me here

[IMG="viral popup 720p"]https://s3.amazonaws.com/pushbullet-uploads/ujv4YOWPtwO-ErgpF7KY8KOEFAyhlj2Wtf2VUSajDrGk/Screenshot_2014-06-27-11-50-25.png[/IMG]
[Galaxy Ace II Android Development] ChronoMonochrome:
1. Probably yes... but i never test this kernel on other ROMs.

2. Nothing special, just amateur modification :) You can see changelog ( list of features / github repo, etc) in the first and second posts. And yes, it's also support stock 4.1.2 ROM :P
[Galaxy Ace II Android Development] nikolas1274:
I try install to 4.4.3 (CM1 1) but I had boot loop too
[Galaxy Ace II Android Development] INFERNO777:
Stock JB is amazing with this kernel. Antutu - 10300. 2 days testing without any bugs + some futures that no in 4.4 (recording call from line, youtube in best quality, modem on PC and etc). With activated project butter UI very smooth. In attach script for project butter, extract from archive and put it to init.d and set 755 permissions. It activate interactive governor, project butter and set 600MGz for him, reboot and enjoy with fast 4.1.2.
[Galaxy Ace II Android Development] dragos281993:
You have to open the player and play what video you want inside the player, not in windowed mode, then enter full screen mode and select 720p. Try this and tell if it's working or not.
[Galaxy Ace II Android Development] zwliew:
Works without a hitch, at least on a prerelease version of my kernel. Anyway, I find YouTube v4 HD mod to be much smoother and better in both the ui and watching videos overall if you aren't watching in floating mode.
[Galaxy Ace II Android Development] nusko_x:
Can you test it few more days to see its there freezes when play videos ore when recording videos ore any bug from stock jb? Thanks
[Galaxy Ace II Android Development] ChronoMonochrome:
New version is UP! :)

http://d-h.st/nEx (JB)

http://d-h.st/NWX (KK)
[Galaxy Ace II Android Development] judas1977:
Thanks, it's good that even stock ROMs aren't abandoned for good...

I compiled another (after the ones from May) stock kernel thanks to your tips, but i don't have time to test it either... ;)
[Galaxy Ace II Android Development] INFERNO777:
3 days testing, normal flight :). Without bugs.
[Galaxy Ace II Android Development] exodius48:
Dou you know how to backup current kernel on kitkat?
[Galaxy Ace II Android Development] ChronoMonochrome:
You can backup it manually:

dd if=/dev/block/mmcblk0p15 of=/storage/sdcard0/boot.img

Then copy modules from /system/lib/modules .
[Galaxy Ace II Android Development] exodius48:
OK,

And If I want to make them flashable zip, what should I do?
[Galaxy Ace II Android Development] judas1977:
Just switch kernel and modules in any available kernel zip package (do not extract, just replace)
[Galaxy Ace II Android Development] tofueatsbread:
Hmm.. Pure stock only? I tried with minimal zero and doesnt work... Cant take log now
[Galaxy Ace II Android Development] shanti77:
I try this kernel on Stock (NB1) and after restart I have bootloop. I see only wallpaper but touch and keys doesn't work and restart. I cant also go to recovery (Home+VolUp+Power), I have only black screen and restart. Only Download mode work. CM roms work good on my phone.
[Galaxy Ace II Android Development] dragos281993:
Flash the stock ROM with Odin and you'll be fine.
[Galaxy Ace II Android Development] xo.en:
http://speedy.sh/k7nWr/egl.7z
[Galaxy Ace II Android Development] ChronoMonochrome:
My bad, CPU OC didn't work on latest build with max freq. 1000 MHz. It was due to workaround for random change min freq to 1 GHz. I've uploaded builds for 4.4.x and 4.1.2.

I was wrong, these libs == cm10.2 default libs.
[Galaxy Ace II Android Development] manthes:
Screen tearing still exists. Could it be rom's and not kernel problem? I use kit kat roms and s6d driver

Also deep sleep sometimes still dissapeared after reboot
[Galaxy Ace II Android Development] xo.en:
yup, this is cm 10.2 set, but original liquid has different one - BOTH are behaving same way, so i am not sure, if those are problem here.

For some reason i am out of luck(as usual)..
[Galaxy Ace II Android Development] fluffi444:
cm11_codinap_kernel_17082014_f2fs ...work great up to now... And I love F2FS on Data and Cache ::D

The only thing to mention is that after kernel flashing the phone is recognized as condia (instaead of codinap) next time..

I do not mean the assert line - This works fine for the first run. But on next kernel flash (with same zip) the phone switched to codina....And the zip do not work anymore...

There must be "something" in kernel which is still from codina (and not from codinap)....

This is not an major issue! Because kernel seams to work fine for codinap - I only what to let you know about this "strange behaviour" (I wrote about this also in an other post of me)

Anyways - Big thanks for all your work. :good::good:
[Galaxy Ace II Android Development] Alwer:
[MENTION=5695278]ChronoMonochrome[/MENTION] is there a chance to have f2fs on internal sd ?
[Galaxy Ace II Android Development] ChronoMonochrome:
You can format it to F2FS via CWM. But if you do it, you'll have to mount sdcard manually(probably we need to edit fstab file, but I don't know how exactly). Perphaps, some apps may work incorrectly, but more importantly, this file system will be not compatible with many other devices (I meant that UMS mode will not work).
[Galaxy Ace II Android Development] pedroleon99:
Report latest kernel 4.1.2:

1) Reboot to recovery from advanced power menu still not working

2) I had some random reboots(I'm not 100% sure they are related to kernel) btw here my last kmsg

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

Can you take a look?
[Galaxy Ace II Android Development] manthes:
problem with deep sleep is not present for all the users or you didn't pay attention on it?

I went back to 4.3 roms but it is still happening
[Galaxy Ace II Android Development] ChronoMonochrome:
How I can fix it, if it's never happens for me?

Thanks for report. I think it's related to step 300 MHz that i mistakenly added in last build.
[Galaxy Ace II Android Development] manthes:
It was a question (not an attack) because only 3 people mention this problem until now
[Galaxy Ace II Android Development] ChronoMonochrome:
Anyway, I need more information about this bug. I tried to disable bln_wakelock support by default, but it's didn't help. Maybe it's caused by other wakelocks, but which ?
[Galaxy Ace II Android Development] miryn:
[MENTION=5695278]ChronoMonochrome[/MENTION]

To be sure.. Is it normal that when charging, CPU stays at 100Mhz?
[Galaxy Ace II Android Development] ChronoMonochrome:
Yes, it's normal.
[Galaxy Ace II Android Development] zizoumadrid:
[MENTION=5695278]ChronoMonochrome[/MENTION] i think problem with some governor

when i use conservative or smartassV2 in screen off and without stress cpu i didn't get battery drain with long time i lost just 1 or 2 %

but when i use another governor in screen off and without stress cpu i get battery drain i lost 5 to 8 % in short time i hope that will help you to fix that

ask 3 people who had that's problem which governor are use

thank's
[Galaxy Ace II Android Development] danny19901:
I'm sorry to be a pain is it possible you make some kernels normal format not EXT4 or F2FS just ATM I don't see much difference and normal format has permissive as SElinux Status
[Galaxy Ace II Android Development] ChronoMonochrome:
@up, what is an ATM?
[Galaxy Ace II Android Development] str3tch72:
[MENTION=5695278]ChronoMonochrome[/MENTION]

ATM - at the moment ;)
[Galaxy Ace II Android Development] ChronoMonochrome:
I thought it's a file system :D :facepalm:

If not f2fs and ext4, and then what file system you talked about? I do not quite understand your post.
[Galaxy Ace II Android Development] zipperX:
[MENTION=5695278]ChronoMonochrome[/MENTION] i had random reboot on last version.
[Galaxy Ace II Android Development] ChronoMonochrome:
A small kernel update is up.

Changelog:

updated CM13 ramdisk (not tested by me)

fixed installer bugs

fixed external sdcard mount after ejecting on Marshmallow (thanks to [MENTION=1508790]SergeyL[/MENTION])
[Galaxy Ace II Android Development] EL-HEFE:
Hello everyone.

Now i'm using: CM11 11-20141118-UNOFFICIAL-codina ROM

with Chrono Kernel version: r2.24.6

How to flash to the newest Chrono Kernel?

Just wipe cache, then flash the newest kernel at recovery?

Thankyou.
[Galaxy Ace II Android Development] Noxialis:
Welp! Time to take this for a spin and break the phone (lol)

UPDATE:

-It's working

-Swapped storages by default

-Changing "use_swap" from 1 to 0

UPDATE2:

-Successfully swapped storages back to normal

-Testing if CK app's swap storage changes anything
[Galaxy Ace II Android Development] TzuYu014:
CK swap storages is working. Nice :D
[Galaxy Ace II Android Development] Noxialis:
I did two attempts at swapping storages.

One with CK app, another, manually using the guide written.

CK app swap doesn't work, manual swap does.

EDIT:

-Phone is on SergeyL's CM13

Phone drains batt slower, feels faster than the kernel it comes with, no reboots nor app FCs so far.
[Galaxy Ace II Android Development] borkins:
So, how to swap storages on CM11 with latest r4.3.1 kernel, coz after installation the storages aren't swapped? :?

I'm using the swap option by the CK app for that, but with latest kernel it not work.

I'll try with the init.d script.
[Galaxy Ace II Android Development] ChronoMonochrome:
Should be same as in case with 6.0.x. But if that somehow doesn't work, post /ramdisk/fstab and /ramdisk/last_kernel_install.txt, the latter could be especially useful.
[Galaxy Ace II Android Development] borkins:
The good thing: :)

Seems, the swap storage option in CK app must be unchecked first. Now the swap works without the CK app and the init.d script.

The bad thing: :(

I got another reboot, just after booting, and opening the browser to write this post.
[Galaxy Ace II Android Development] ChronoMonochrome:
Looks like it was caused either by corrupted ext4 inode or by this is a bug of the current ext4 implementation.
[Galaxy Ace II Android Development] Clark78:
Hi, I tried r4.3.0. Now i see the newest One, but kernel don't mount any SD partition. But Rom is working ok (SergeyL CM13-2016.04.29). How Can i resolve?
[Galaxy Ace II Android Development] ChronoMonochrome:
You aren't providing enough information. What ROM are you using?

and also
[Galaxy Ace II Android Development] Clark78:
I'm sorry, i can't attach file yet. I do not have enough posts.

The rom i'm using is SergeyL CM13 - 2016.04.29.
[Galaxy Ace II Android Development] ChronoMonochrome:
You can rather copy & paste logs to such service as pastebin and post link here (only need to make sure that link is not clickable).
[Galaxy Ace II Android Development] Clark78:
Link of last kernel

http ://pastebin.com/r2bMKrJS
[Galaxy Ace II Android Development] ChronoMonochrome:
Try removing /ramdisk/.use_ramdisk_fstab - looks like the currently used fstab flags don't properly work on CM13.
[Galaxy Ace II Android Development] Clark78:
Tank you, but this file is not present in /ramdisk.

Can i flash 4.3.1 using Odin?
[Galaxy Ace II Android Development] ChronoMonochrome:
No, it should present according to logs - you must enable showing of hidden files in a file manager you are using.

No, you can't - uploaded builds for flashing from recovery only.
[Galaxy Ace II Android Development] Clark78:
Nothing done. Kernel don't mount SD partition. And install zip is not possibile. I tried to use another path using free browser mode, but give error.
[Galaxy Ace II Android Development] Clark78:
Can i use Flashify ti flash Chrono kernel 4.3.1? Or is best to flash first stock kernel Using Odin, and then Chrono by recovery? I can't find a solution. Thanks.
[Galaxy Ace II Android Development] shaqman89:
[MENTION=6980812]Clark78[/MENTION]

Did you happen to do a repartition? If you did, format /storage/sdcard0 as vfat first, then you would be able to mount it.

As for flashing, if you wanna go with odin first, then flash Chrono Kernel odin version found in FTP, then reboot to recovery and flash the latest kernel.

Though, according to your screenshot above, it's likely that your /storage/sdcard0 isn't formatted yet.
[Galaxy Ace II Android Development] Clark78:
Thanks for reply. No, i haven't reparted. I simply installed Chrono 4.3.0, and when 4.3.1 was out i tryed to install it, but recovery give me this error. Once siste is booted, sd0 and sd1 work normally.
[Galaxy Ace II Android Development] ChronoMonochrome:
This is a bug of the latest release. I suggest installing TWRP recovery for now.
[Galaxy Ace II Android Development] rewolt90:
On latest kernel (with Vanir) deep sleep is not working for me :/

Edit: Maybe false alarm... When turned on BLN, phone not always go in deep sleep. Now I have 50% on 200MHz and 50% on deep sleep (without any notifications). I updated apps about half hour ago and now I'm charging phone. Maybe old apps were the reason?

I will write tomorrow how phone will work in night.

Edit2: False alarm confirmed. Sorry for palaver.
[Galaxy Ace II Android Development] ChronoMonochrome:
New build r4.4 is up!

Changelog:

separated recovery from ramdisk partition * (read on)

merged android common kernel CVE fixes

added some fixes from cyanogenmod smdk4412 kernel

replaced recovery with TWRP 2.8.6.0

* now recovery is moved to /cache parition. Some technical details: /cache partition will be resized to 3Mb and gzipped recovery file will be dd'ed on the same paritition with 3Mb offset. Legacy path /ramdisk/recovery.cpio.gz is still supported, so unattentional /cache wipe shouldn't lead to bootloop (but in case of any problems please remember to attach /proc/last_kmsg and /ramdisk/last_kernel_install.txt).

p.s. there is also another build r4.4.1 for stock users (some tester needed to check whether wifi is working on this build).

Enjoy!
[Galaxy Ace II Android Development] Dr360r:
I've just installed kernel 4.4 . I got the same issue with sd cards not mounting, cache not mounting and system not starting. I fixed it by flashing the Odin .tar kernel in the developer's FTP. Extracted the .md5 file from the zip, put the file in Odin 3.07 PDA's tab and flashed, then flashed another kernel. Fixed.
[Galaxy Ace II Android Development] ChronoMonochrome:
Please provide /ramdisk/last_kernel_install.txt log.
[Galaxy Ace II Android Development] Dr360r:
I'm currently on ace2nutzer's kernel. Do i need to install the buggy (at least for me...) kernel again? If yes, i'm willing to do it, by the way.
[Galaxy Ace II Android Development] ChronoMonochrome:
No, it's not necessary. You can mount ramdisk parition following way:

mount -o remount,rw /
mkdir /ramdisk
mount -t ext4 /dev/block/mmcblk0p17 /ramdisk

Seems that currently installation from CWM (do I understand correctly that it was CWM recovery?) is broken. Need more reports from another users, though, about flashing using TWRP and Philz recovery,
[Galaxy Ace II Android Development] Dr360r:
Yes. CWM 6.0.5.0. The vanilla one.

By the way i suppose i must input the command line in Terminal Emulator. Right? Never done that before... just inputted line by line and: mkdir failed for/ramdisk, File exists

then mount:device or resource busy.
[Galaxy Ace II Android Development] ChronoMonochrome:
Are you sure that you're actually using ace2nutzer kernel then? Looks like this folder exists - anyway you can just check if the needed log there.
[Galaxy Ace II Android Development] Dr360r:
Found by hand in /root (Yes, my Accio spell skill is a little defective :D). And... revelation... the text file is blank!