yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] zeppelinrox:
My apologies.

My little rant wasn't directed at you per se.

It was more like shaking a little angry fist at the sky :p
[Galaxy S II Android Development] m1trand1r:
SoD while on charger over night:confused::eek:

logs...one link: https://copy.com/AysJ2

Switched to zzmove be4 connected phone on charger....daydream was on....picked phone right now...had to force reboot and profile didn't reset....:confused:

nothing else changed apart from governor from last SoD and I never got 2 SoDs in a row like now

...:confused:
[Galaxy S II Android Development] infatality:
I'm also having issues with zzmove 0.6 since.. Maybe it's a issues with zzmove tuning.
[Galaxy S II Android Development] dorimanx:
problems resolved, no problem with all ROMS
[Galaxy S II Android Development] m1trand1r:
may be....I didn't touch fine tune settings tho....and my device never liked it since 0.6 update and same goes for nightmare which name tells me all.....I reverted to 9.36v1 for now with same profile and darkness gov.....but heck....I"m...going back to v3....right now:thumbup:
[Galaxy S II Android Development] dorimanx:
ZEP, you missed big part

static bool avoid_to_kill(uid_t uid)
{

if (uid == 0 || /* root */
uid == 1001 || /* radio */
uid == 1002 || /* bluetooth */
uid == 1010 || /* wifi */
uid == 1012 || /* install */
uid == 1013 || /* media */
uid == 1014 || /* dhcp */
uid == 1017 || /* keystore */
uid == 1019) /* drm */
{
return 1;
}
return 0;
}

static bool protected_apps(char *comm)
{
if (strcmp(comm, "d.process.acore") == 0 ||
strcmp(comm, "ndroid.systemui") == 0 ||
strcmp(comm, "ndroid.contacts") == 0 ||
strcmp(comm, "d.process.media") == 0) {
return 1;
}
return 0;
}

#PART of killing function!

if ((!avoid_to_kill(uid) && !protected_apps(p->comm)) ||
tasksize * (long)(PAGE_SIZE / 1024) >= 80000) {
selected = p;
selected_tasksize = tasksize;
selected_oom_score_adj = oom_score_adj;
lowmem_print(2, "select '%s' (%d), adj %hd, size %ldkB, to kill\n",
p->comm, p->pid, oom_score_adj, tasksize * (long)(PAGE_SIZE / 1024));
} else {
lowmem_print(3, "selected skipped '%s' (%d), adj %hd, size %ldkB, no to kill\n",
p->comm, p->pid, oom_score_adj, tasksize * (long)(PAGE_SIZE / 1024));
}
}
if (selected) {
lowmem_print(1, "Killing '%s' (%d), adj %hd,\n" \
" to free %ldkB on behalf of '%s' (%d) because\n" \
" cache %ldkB is below limit %ldkB for oom_score_adj %hd\n" \
" Free memory is %ldkB above reserved\n",
selected->comm, selected->pid,
selected_oom_score_adj,
selected_tasksize * (long)(PAGE_SIZE / 1024),
current->comm, current->pid,
other_file * (long)(PAGE_SIZE / 1024),
minfree * (long)(PAGE_SIZE / 1024),
min_score_adj,
other_free * (long)(PAGE_SIZE / 1024));
lowmem_deathpending_timeout = jiffies + HZ;
do_send_sig_info(SIGKILL, SEND_SIG_FORCED, selected, true);
set_tsk_thread_flag(selected, TIF_MEMDIE);
rem -= selected_tasksize;
}

oom code can handle multiple d.process.acore

on kernel level it's very different from script.

ROM task killer can do what ever it's like, but end of it is to prevent #17 service/app to stay in ram.

nothing more.

all the rest do OOM in kernel, ROM code has no code to protect from low ram,

if i will disable lowmemkiller in kernel, rom die... the end.

change that shifted all scores is this! and this is FIX of a broken code, as we use short in all other functions of OOM and here was BUG!

https://github.com/dorimanx/Doriman...mmit/7879625a7a8c4c4ed4a0f75d78e136813c6c2a1e

YES i want launcher to get 0 adj! that is the best protection for it, and all system services. (but as you see above it's not needed if launcher is masked as a.core)

as i posted, this kernel do not need any external scripts.
[Galaxy S II Android Development] vicegio:
i9100xwlsd deodex by Team BluMak2000 kernel 8.36v3: in two hours two sod, one with a very high temperature of the cell :( .... returned at 8:35, very good for me :good:

:confused:
[Galaxy S II Android Development] dorimanx:
wait for next release, i have fixed some major problem.
[Galaxy S II Android Development] m1trand1r:
gimme, gimme next :tank:....I rely on you...:D.nothing like it:eek:....just btw....did you see logs or they are irrelevant as of now....was the governor I used fault....just curious :angel:

and RAM management is Superb as far as I can feel:):thumbup::thumbup:
[Galaxy S II Android Development] hoholee12:
I recommend to delete uid==0.

If you havent edited the oom killer code other than that one, then uid==0 should be worthless.

IWCS it might cause out of memory situation if youre running too many root processes in ram.
[Galaxy S II Android Development] dorimanx:
recommendation denied

there is protection for this

if ((!avoid_to_kill(uid) && !protected_apps(p->comm)) ||

tasksize * (long)(PAGE_SIZE / 1024) >= 80000) {

if protected task eat more than 80000kb of ram, then KILL it to prevent OOM.

any way normal root services use very low amount of ram, so to reach OOM by root services,

i will need to run 50~100 services only root uid, if that the case, then something VERY wrong with this ROM, and yes it's will die.

and for the best.

it's will be slow as hell anyway. (till it die)

we are not playing here :)
[Galaxy S II Android Development] hoholee12:
Good job:thumbup:

But why 80000kb?

Is there a special reason for that?
[Galaxy S II Android Development] zeppelinrox:
I did say that maybe I missed the part where wifi and bt etc are protected tho :p

What I meant about android.process.acore was that if there is more than one running, then it's likely that the kernel is protecting stuff that you probably don't want protected :p

Though yours is highly customized and specialized, all kernels/roms have the lowmemorykiller and none would normally have it disabled.

It's just how Android is meant to work.

I'm not sure what you're saying at the end tho... do you mean that you wanted all the adjs shifted down?

Keep in mind I'm not arguing about how it works but what I was saying about ActivityManagerService has alot more to do with it than just killing apps.

For example, one thing that it does is move server apps (typically adj 6) to be hidden apps after a certain time and give it for example adj 9 (hidden app) so that it will be more killable.

Now, if server apps are no longer the expected adj 6 and are adj 5, then it does indeed throw a monkey wrench into the inner workings of AMS.

My point is simply that the whole memory management thing is a balancing act where many things need to be co-ordinated so that everything works as well as they can.

I really don't think it's a big deal to revert the oom_adj conversion so that it translates 58 to be 1 as it normally does.

None of this has to do with external scripts so I dunno why you keep thinking that :p

It's an easy workaround for me but I just thought I'd put in my 2 cents as I've done in the past lol
[Galaxy S II Android Development] dorimanx:
no, nothing fancy, i just think that app that belong to protected shouldn't use more than 80mb ram, and if it does, then its stuck and draing ram, then its should be killed.

Sent from my GT-I9100
[Galaxy S II Android Development] apfelstyle:
Every time I play Simpsons springfield I get a SoD after few seconds.

Logs: http://db.tt/4wjCRRjU

Gesendet von meinem GT-I9100
[Galaxy S II Android Development] j1gga84:
+1

Same Problems here with darkness/row combination..

Regards

Sent from my GT-I9100 using german Tapatalk 4
[Galaxy S II Android Development] P0tato:
I fully restored without any mods simply just the OMEGA ROM and the 8.36v3 kernel I reinstalled poweramp and BANG again its not working... :/
[Galaxy S II Android Development] hoholee12:
thats a rom problem.

Try getting a different one.
[Galaxy S II Android Development] 089man:
Hi dori, have found that my little changes in default profile lost from time to time. Not on new boot.

Have your default profile, activated bln , notification timeout I have changed from never to 3 minutes.

Have backup this.

I will look one or two hours later again in streaks and this setting is go back to.. Never timeout...

Now I will with restore bring back my settings... Wait more than 30 seconds.. But stweaks not start again.

Now I start manually stweaks and following error message I found on screen.

I9100 Tapatalk 2, Rom1 Rootbox / Rom2 Test only, Kernel Dorimanx
[Galaxy S II Android Development] P0tato:
Its all ok with/without sound mods on v8.35 ....

Sent from my GT-I9100 using a Potato
[Galaxy S II Android Development] Marchello1:
after flashing media wipe script, power amp working normal.

rootbox 4.2
[Galaxy S II Android Development] Shahrokh.KING:
same here on wanamlite xwlsw, hope dori somehow solve poweramp bug, maybe its related to something else

sorry for off-topic
[Galaxy S II Android Development] P0tato:
Link 4 the media wipe script ? and can you tell me what does this script do?

Sent from my GT-I9100 using a Potato
[Galaxy S II Android Development] Marchello1:
THREAD: http://xdaforums.com/showthread.php?t=2127112

DL LINK: http://d-h.st/users/ApriliaM3/?fld_id=9253#files

EDIT: i also flashed kernel wipe script before flashing dorimanx .36
[Galaxy S II Android Development] Vivek_Neel:
It rebuilds thumbnails again.

Deleting old one
[Galaxy S II Android Development] P0tato:
Thanks 4 the help guys

Sent from my GT-I9100 using a Potato
[Galaxy S II Android Development] m1trand1r:
guys...where am I ?....in discussion thread or what?:confused:
[Galaxy S II Android Development] Vivek_Neel:
Oops.

Sorry
[Galaxy S II Android Development] P0tato:
Srry bro never again ;)

Sent from my GT-I9100 using a Potato
[Galaxy S II Android Development] RovG:
fstrim

Previous posts regarding this:

[MENTION=2376110]dorimanx[/MENTION] & [MENTION=3763274]rkoby13[/MENTION]

fstrim is NOT an App or a Task Killer. It is the Linux implementation of TRIM.

Trim: http://en.wikipedia.org/wiki/TRIM,http://blog.neutrino.es/2013/howto-...for-your-ssd-on-linux-fstrim-lvm-and-dmcrypt/

fstrim: http://man7.org/linux/man-pages/man8/fstrim.8.html

From this link: http://xdaforums.com/showthread.php?p=37029420#post37029420:

What is fstrim?

fstrim is a Linux utility to call TRIM on your memory devices. You can find more information about it and source code at SourceForgehttp://sourceforge.net/projects/fstrim/. It is now a part of util-linux and can be found inside Linux kernel repositoryhttps://www.kernel.org/pub/linux/utils/util-linux/.

Google have recently implemented support for it in Android 4.3: http://www.extremetech.com/computing/162667-google-slips-trim-support-into-android-4-3-to-end-io-lag

Here is the link to the source for fstrim.c: https://android.googlesource.com/pl...752b8081eab8318f87f47b97d97205fd14e3/fstrim.c

Whilst userland fstrim seems to exist in my stock DXLSD rom, kernel support for it I suspect is missing, hence my question to you earlier. It is my understanding that fstrim requires kernel support, adding the discard option when mounting the filesystem and a userland app. On Samsung devices I guess consideration should also be given to the eMMC brick bug before implementation. I recall reading somewhere that aparently it has been implemented in some kernel's. When I find it I will update this post with the links.

This is all I have at the moment so I hope it helps to clear things up.

Thanks
[Galaxy S II Android Development] toffiko:
Random SOD @ 8.36 b3 on Sammy XWLSS

Just have had random SOD:( , a minute before this I have opened Keepass app which is always crashing while trying to decrypt *.db file. after that switched screen of and after phone didnt wake up:mad:, needed to press power button for 10 secs:rolleyes:. Database file is ok because I re-copied it and also reverted my system from backup and it was working correctly again with v 8.35. my default awake gov was nightmare. /sods were happening before with nightmare gov as default awake gov so it might be this. for now changed to darkness cause it seems to be stable for me.

Please Dori check this app on your phone:highfive:, its important app for me :good::good::good:

kmsg attached, hope it helps :fingers-crossed::fingers-crossed::fingers-crossed:

https://www.dropbox.com/s/to05jzq8gk1f6hx/dorimanx_last_kmsg_log

[MENTION=419143]Dori[/MENTION] :cool: Thanks for one of the best releases so far :D:D:D

Few cold ones for your bear fridge ;););) hope it will be full soon :fingers-crossed:

6NE23974H7821864T
[Galaxy S II Android Development] zodiaxe66:
The two posts above is the proper way to ask for new features and post a bug report. Nicely detailed..

Many could learn from this.. thanx guys.. :good:
[Galaxy S II Android Development] dorimanx:
News update!

OK, time has come for new BETA v4 :)

2 kernels uploaded!

this is major fix release. and finnaly i can call the beast by it's name!

this is kernel 3.10.0.r89 Android Google modded and merged with samsung drivers and all the needed code for us.

kernel is marked in About :)

Change Log:

*Fixed WIFI driver to block useless traffic that is noise coming from routers and LAN network and wake CPU to deal with it.

now should drain much less power.

*Alucard updated Nightmare and Darkness GOVS.

*Alucard has reworked new patch for Zzmoove GOV and merged to kernel.

*I have tuned CPU voltage for all CPU groups, mostly for HIGH OC freqs and 2 low freqs +-25mv on them, all calculated based on original Samsung voltage values for 5 main freqs.

*I have compressed modules and sql binary's with tar.xz before compile and kernel will extract them on boot, and do all the needed manipulations to set them to correct location, this fixed major problem with space limit that we have for kernel. and removed some nasty bug that SOD RAM without a warning.

*Nuked some junk left overs that i have found in kernel.

*Tuned some ram/cpu tuning in cortex script.

*Removed hack for stop googlebackup apk to popup not responding popup each boot, this APK needed to maintain apps list backup in google account.

and it's working perfectly in many ROMS, in RootBox there is some kind of problem with it. it's ROM bug, and exist with CM kernel.

So to make this app work as should:

before you update kernel: go to setting apps and find googlebackuptransport

application,

get to it's settings, and clear data.

now reboot install new kernel, boot..... > go to setting reset/backup(DO NOT WIPE YOUR DEVICE!!!) and enable google backup and choose backup account,

thats all, now it's should work as expected.

*Updated exfat modules from source that exist in github and free to take, no one care(samsung)

*Restored missing commit to fs/direct-io.c that should speed up the code a little.

Enjoy, and thanks for donations and great support :)
[Galaxy S II Android Development] dorimanx:
All i can say is WOW! perfect info for me :)

I will check it out and try to merge it to kernel.

Thanks a lot for this highly detailed post!

This what I call feature request! :)

EDIT:

HAHA!

Some kernels mount storage with -discard option. This option forces kernel to call TRIM operation after all write and delete operations. That means that functionality of this app is built-in, you don't need LagFix in such case.

look at this :)

~ # mount
mount
rootfs / rootfs rw,noatime,nodiratime 0 0
proc /proc proc rw,noatime,nodiratime 0 0
sysfs /sys sysfs rw,noatime,nodiratime 0 0
/dev/block/mmcblk0p12 /preload ext4 rw,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/res/dev/system /system ext4 rw,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/res/dev/system /lib/modules ext4 rw,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,nodiratime,mode=755 0 0
devpts /dev/pts devpts rw,noatime,nodiratime,mode=600 0 0
tmpfs /mnt/secure tmpfs rw,noatime,nodiratime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,noatime,nodiratime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,noatime,nodiratime,mode=755,gid=1000 0 0
tmpfs /mnt/fuse tmpfs rw,noatime,nodiratime,mode=775,gid=1000 0 0
none /dev/cpuctl cgroup rw,noatime,nodiratime,cpu 0 0
/res/dev/cache /cache ext4 rw,nosuid,nodev,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc 0 0
/dev/block/mmcblk0p1 /efs ext4 rw,nosuid,nodev,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/res/dev/data /data ext4 rw,nosuid,nodev,noatime,nodiratime,discard,journal_checksum,journal_async_commit,noauto_da_alloc 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,noatime,nodiratime 0 0
tmpfs /mnt/ntfs tmpfs rw,noatime,nodiratime,mode=777,gid=1000 0 0
/dev/block/dm-0 /mnt/asec/com.keramidas.TitaniumBackupPro-1 ext4 rw,dirsync,nosuid,nodev,noatime,nodiratime,discard,noauto_da_alloc 0 0
/dev/block/dm-1 /mnt/asec/org.gpo.greenpower2-2 ext4 rw,dirsync,nosuid,nodev,noatime,nodiratime,discard,noauto_da_alloc 0 0
/dev/block/vold/179:9 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime
,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/259:3 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime
,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/259:3 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime
,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /storage/sdcard0/.android_secure tmpfs ro,noatime,nodiratime,size=0k,mode=000 0 0

discard is implemented long time ago! :) so i guess i can skip this class :)

i will dig some more in source code anyway.
[Galaxy S II Android Development] dorimanx:
please test the V4 kernel. should be ok.

Thanks for great support, got it, and added you to donators table. X2 :)
[Galaxy S II Android Development] P0tato:
[MENTION=2376110]dorimanx[/MENTION] please can you check poweramp bug It worked before 8.36 and it doesnt work on 8.36V4 either ... I really want to use your latest kernel and it works like a charm.. good work (y)

Sent from my GT-I9100 using a Potato
[Galaxy S II Android Development] ZeNiXxX:
hallo Dori,

i'm now on newest kernel 9.36v4. I have tested five times .... my phone doesn't wake up anymore... I have installed the kernel twice and with clean kernel script. But somehow my phone doesn't wake up anymore ... have to hold power button everytime when it sleeps ... can someone confirm that issue ? i'm on rootbox 4.2
[Galaxy S II Android Development] nicola1989:
What is the power amp bug?

Inviato dal mio GT-I9100 usando Tapatalk 4
[Galaxy S II Android Development] P0tato:
It doesnt play any sound but other players do. And it isnt rom related others reported this bug on neat rom and on biftor rom too. Im on Omega v24. It works on 8.35 but on 8.36v2 v3 v4 doesnt

Sent from my GT-I9100 using a Potato
[Galaxy S II Android Development] dorimanx:
SORRY had to remove 9.36V4 kernel, BUG in new SQL, need to remod.

i will upload fixed version soon
[Galaxy S II Android Development] dorimanx:
i dont have the app.

what you see in logs?

i was busy to check old logs
[Galaxy S II Android Development] ZeNiXxX:
no such bug with Rootbox... always using poweramp and no problem ... Seems to be Rom related ...
[Galaxy S II Android Development] dox81:
Is this the cause for SOD every time device goes to sleep on 9.36v4? Anyway, thx for the fast fix.
[Galaxy S II Android Development] P0tato:
Dude same bug in 3 different rom and only on dori v8.36?

Sent from my GT-I9100 using a Potato

---------- Post added at 11:35 PM ---------- Previous post was at 11:32 PM ----------

Srry I cant read the logs... I dont understand them :d

Sent from my GT-I9100 using a Potato
[Galaxy S II Android Development] stopro:
I dnt see no problem so fare all working with performance/ondemand, smooth ,powamp work like charm on 0801
[Galaxy S II Android Development] nicola1989:
Poteto i have the last dorimanx and power amp work fine here I have last root box

Inviato dal mio GT-I9100 usando Tapatalk 4
[Galaxy S II Android Development] P0tato:
On 8.36v4 battery is draining too fast. In 10 mins it went from 69% to 63% and Im using the extended 2000mAh battery...

Sent from my GT-I9100 using a Potato

---------- Post added at 11:51 PM ---------- Previous post was at 11:49 PM ----------

I repeat myself ITS ON Sammy roms...

Sent from my GT-I9100 using a Potato
[Galaxy S II Android Development] nicola1989:
Sorry i don't have read

Inviato dal mio GT-I9100 usando Tapatalk 4
[Galaxy S II Android Development] m1trand1r:
move your chit-chat here:

http://xdaforums.com/showthread.php?t=2022525

and do this for [MENTION=2376110]dorimanx[/MENTION] not for me!!!

as you may know....he reads every single post....do you want him to get tired or what?:sly::rolleyes::confused:
[Galaxy S II Android Development] lakicamm:
Same here, same rom... its probably the bug dori already found, lets stay tuned for the fix :)
[Galaxy S II Android Development] jpeg725:
More logcats might help him.
[Galaxy S II Android Development] m1trand1r:
you nailed it:D....just see;):evil:
[Galaxy S II Android Development] dorimanx:
kernel 9.36v4 removed, its broken.

i need to work on it, use 8.x branch for now its ok.

my internet line went down, its 2am and some isp tech is messing with the lines, who care every one sleep...

I dont sleep, hate this.

i will fix it at the morning, good night to all.

Sent from my GT-I9100
[Galaxy S II Android Development] chabstyle:
Hey Guys,

I am on 9.36v3 and had an SOD I picked up my phone and turn on my screen, it worked I turned it off again, but then it happened and my phone doesn't react at all.

I hope it will help.

Log: https://www.copy.com/s/MTTYb1dEv0ff/dorimanx_last_kmsg_log.zip

Cheers :)
[Galaxy S II Android Development] nicola1989:
That a know bug dorimanx work on this next release should fix this bug

Inviato dal mio GT-I9100 usando Tapatalk 4
[Galaxy S II Android Development] budsixz:
Don't put the kernel before your life :)

You work very hard on this kernel n you need to rest too... After all even you are a human (super smart human to be exact) ;)

We can always understand

and guys while reporting bugs please read first to see if it was reported

N please be nice to our awesome dev

N use discussion thread

We don't want dori to get stressed

My phone details :

Rom : carbonrom stable v1.8

Kernel : dorimanx v9.36

Governor : nightmare

No OC or UV

Battery : stock 1650mah

Sent from i9100

bob's battery guide
[Galaxy S II Android Development] Biftor:
Hi to all

I don't I should. Say this here or on your other topic anyway....

[MENTION=2376110]dorimanx[/MENTION] thanks mate you are great now with your latest build I hadn't wifi pb thanks you!

But some pb I saw from your latest version 8.36 V4 I tried my Rom...

I don't know about other rom but i think should have same result....

Boot loop after full wipe installation:

Boot loop after I put latest version in my rom zip file after flashing with full wipe (I tried other kernel and all things fine)

Boot loop after I flashed with wipe kernels script and 2 wipe from cwm (I tried other kernel and all things fine)

Just if never do wipe its ok (its run one time but I am not sure)

Goodluck

Armin.
[Galaxy S II Android Development] m1trand1r:
[MENTION=2376110]dorimanx[/MENTION]

I had random reboot today with 8.36v4...:confused:

logs are here: https://copy.com/AtvGR

and just to let you know....before random reboot occured Auto OOM control was disabled...I was playing around a bit and disabled it....on purpose..(game play was awful with disabled Auto OOM:p)..then before I turned screen off....I hibernated all apps as I usually do before I turn screen off...and bam....I saw galaxy s2 logo and phone booted normally....then before I made logs I turned auto OOM control back on....and since then everything runs ok again:)

Cheers:beer: