yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

Under heavy app switching and multitasking there is noticeable lag due to memory pressure. I notices that process reclaim slows down phone due to (logically) reclaiming and shrinking memory.

But it seems that LMK is much faster without process reclaim turned on (with default tuning). And phone is less laggy.

Then I set max process reclaim vmpressure to 80% and enabled process reclaim. Phone started working fast in heavier apps.

Is it due to process reclaim starting to shrink memory before LMK kicks in at 88% vmpressure?

Anyway, any value for max proces reclaim vmpressure that is lower than adaptive lmk vmpressure is making ohone faster in low mem conditions. So is it that process reclaim should start shrinking other apps before LMK kicks in? Or am I wrong?
[G2 Android Development] dorimanx:
This are 2 different things.

Process reclaim is measuring mem pressure in range on 50 to 100 and shrink cached ram by idle apps to gain free ram for other operations.

Now when vm pressure is high, its best not to shrink cache as this drain cpu power and create lag. So reducing reclaim range, reduce lag but forcing lmk to kill apps to release ram when its needed for other tasks.

So best tuning is:

Process reclaim to 80

Lmk reclaim to 85

This reduce lag, but more aggressive ram free, multi tasking speed reduced, as apps needs to be loaded again, in case killed by lmk to free ram for last open app.

But if you are smart user and exit apps that you dont need and multi task only needed apps, then all good.

Sent from my LG-D802
[G2 Android Development] AlexOB1:
Does force killing an unneeded app achieve this well, or does that leave things stuck in cache or similar?
[G2 Android Development] dorimanx:
Its achieve the goal. And free kernel from work to shrink and kill from ram in case of low ram.

Sent from my LG-D802
[G2 Android Development] Nigglenuts:
Sorry for OT, but here in the US it is Thanksgiving! Happy holiday to those that celebrate, and for those that don't, the day is all about being thankful for what we have. I am undeniably thankful for your work dorimanx, and I feel obligated to say... THANK YOU for continuing amazing development and keeping my device alive.
[G2 Android Development] AlexOB1:
Thanks. Android isn't like windows then, where it's important to close programmes properly to ensure unneeded files aren't left behind.
[G2 Android Development] dorimanx:
Happy holiday dear fan :) its a plesure as always to be here and share what i can with all that want to be here with us :)

Any way build 7.4 is great, i personally enjoy every touch i do, every time that i hold my device, its just fly, its tuned to my speed of thought now :)

i read some where that our brain has 10ghz cpu power (one core), our device mach that speed now.

Sent from my LG-D802
[G2 Android Development] iFalcon:
[MENTION=2376110]dorimanx[/MENTION]

What rom do you run?
[G2 Android Development] Diechel:
If you check his signature it says

LG STOCK 30b :)
[G2 Android Development] iFalcon:
I'm clearly in a food coma. Geez

Sorry about that.
[G2 Android Development] luq529:
I dont know what you did dorimanx with 7.4 but I know there is significant improvment comparing to previous ones. Were there any screentouch changes? It seems more responsive now. Maybe placebo but I dont care :D Its just good. Thank you Dorimanx ;)
[G2 Android Development] gamertwo1:
v7.4 is doing great on my d800. Much smooth and almost lag free. Huge thanks to you [MENTION=2376110]dorimanx[/MENTION]
[G2 Android Development] duki994:
No touchscreen druver changes.

99% of changes are to SCHED. That's critical code which is responsible for everything. It is scheduling all other drivers/apps and processes on cores and balancing all loads.

Techically it's scheduling all kernel drivers/modules and entire kernel code workqueues. Userspace apps are allocated memory and workqueue through kernel, so essentialy scheduler is scheduling workqueue from driver that allocated work to a memory mapped process (not complicated as it sounds :D).

Better, faster SCHED logic/algorithm == much more faster and efficient load balance == more responsive phone.

Analogy to buisness:

Better manager will be better at comitting same amount of human resources to all jobs, hence more efficient and faster job completion. Worse manager would have less productivity.

So better SCHED equals more work for same amount of resources (cpu power).
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

With this release we reached a milestone works great and rock stable after 30h+ of use without any problems.

Thanks!

Ps: for alarm with phone switch off there is a way to add this funcion? It would be great...I think it's a big lack of Android expecially if we think to old Nokia 3310 with Symbian...it's simply crazy... :)
[G2 Android Development] lasic:
[MENTION=2376110]dorimanx[/MENTION] Hi, sorry to bother you directly, but I think you are one of very few who can help me (and I think, I am not the only one with the problem). It's about slow charging on some cables/chargers which works fine and with full speed (1.6mAh) on Kitkat but only at 0.46mAh on Lollipop. It's the only thing that keeps me on Kitkat and I didn't find any solution (apart switching to other chargers/cables, but this is a lottery). Do you know why this is happening?
[G2 Android Development] duki994:
On LP switch Fast Charge off and then set it to manual. After that change charging current to custom mA. Then report what happens.

Stock LP kernel has different charging logic. It is setting charging current between 300 and 1500/1600 by some other checks and algorithms. Not just cable checks.

Dorimanx disabled cable checks, bypassed some non-critical checks and allowed to uers to manually change charging current

You can monitor charging current by entering this command in terminal:

cat /proc/kmsg | grep "chg"

Or if you want to capture output in file then this command:

cat /proc/kmsg | grep "chg" > /sdcard/charge_log.txt
[G2 Android Development] dorimanx:
device model?

did you tried my kernel for LP?
[G2 Android Development] dorimanx:
i dont know about the wake from shut. CM13 added something called partial suspend.

maybe it's part of code that allow device not to be shutdown, just go to super suspend.

then we can wakeup it. with RTC(alarm call) callback.

for now this is not in my plans to merge. too big difference and possibilities for new bugs that will crash our device.

let me enjoy v7.4 as it's stable as rock for now.... after some time, that all my users +10000 will be back here for stable kernel and stay!

then we will get going with new betas with bugs :)
[G2 Android Development] Alexander1988:
Don't know why but screen froze. Did a data partition wipe last night and backup restore afterwards just to rule out data corruption. Had about 3X of these freezes today and each time Stweaks settings get reset. I know I'm a bit stressful but this is not a complaint it's purely informative !!! So thank [MENTION=2376110]dorimanx[/MENTION] for all your hard work. Keep it up Code God !
[G2 Android Development] gamertwo1:
Power button backlight is not turning off. Keeps on as there is no notification in pending. v7.4, d800, cloudy 3.3
[G2 Android Development] n@vier:
Rom bug. Go in settings and disable rear led for all apps downloaded.
[G2 Android Development] lasic:
D802 and yes, I had tested multiple versions of your kernel (on stock and Cloudy 3.3), no luck (stock kernel has the same issue). Different settings in fastcharge section did nothing to this issue. Also tested with 3 different car charger (as this is the main issue, navigation drains battery faster than charger can charge it), few good usb cables. It charges it at 0.46mAh max, however it doen't show "Slow charging" message. Full charging speed can be only achieved on Lollipop using original charger and cable in my case. But as I stated, on kitkat I get full speed using every capable charger I've got.
[G2 Android Development] gamertwo1:
But it was working fine in previous versions of kernel.
[G2 Android Development] Diechel:
[MENTION=2376110]dorimanx[/MENTION]

When you are building more BETA's can we make a beta branch for ota app again. Would like to flash it with it instead of manual downloading it.
[G2 Android Development] n@vier:
It works random...anyway it's a bug of lollipop I remember that even on stock rom 30b the rear led blinks without notifications.
[G2 Android Development] saspo59:
Its not only the rear led its afect the front led but like n@vier said its rom bug all over lp stock roms i use 30f and its there
[G2 Android Development] dorimanx:
Ok. I will setup beta page. With folders. Later.

Sent from my LG-D802
[G2 Android Development] dorimanx:
Set hotplug to always on. Better for stability.

From log i see kernel detected fail in one of sensors, i think camera and its light sensor. Rom started to panic, and rom init killed all critical services and you get freeze.

Its possible you have some app that activate camera without your knowledge, and in some point crash.

Or you have hardware fail in board.

I have never seen such fail in camera driver. And its Almost stock in kernel...

Sent from my LG-D802
[G2 Android Development] elTorres:
Hi, you only need use a USB charge only cable or adapter to charge at full speed. You can find cables and adapter from several brands. I have the USB adapter and two USB cables from Portapow and work charging at full speed with every charger that can get out 1.6A, even connected to a USB computer port I get 1.0A
[G2 Android Development] dorimanx:
Reporting about 7.4 so all that didnt joined will do so today :)

Stable for 60 hours 0 issues.

Fast and lag free, ram is in control and around 350 to 400mb free, i am very heavy user, 55 services/apps in ram.

Battery is 0 drain in 10 hours after disconnected. Super deep sleep.

Amazing 98% (used screen on for 6min before screen shot)

I will attach pic later.

So join now! Today :)

Sent from my LG-D802
[G2 Android Development] capoooro:
Yes 7.4 is a masterpiece... Perfect with cloudy 3.3

Nothing to report master.
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

Stable here too since release :)

LG's SystemUI is having a memory leak vacation on my phone on CloudyG3 3.3 (stock also). I'll decompile and see what's the problem (probably not freeing resources in some animation class). LG G3 is not draining RAM so much.

EDIT:

Just saw LG's SystemUI decompiled code. It's just many activities (read apps) into one apk for easier management. QSlide, Navigation Bar, Battery Icon. And ClearAll activity kills all apps in recents tab (no signal 9 for init to restart them). Garabage collector will cleanup all killed apps resources. That's why phone is faster after kill all :)

And it's RAM management is good for so many activites working at once (not counting GLES and GLES3 renderer codes). Is it protected in LMK? Even simple restart of systemui could lead to issues by looking at this code.
[G2 Android Development] dorimanx:
system UI has strong oom score, so LMK will never try to kill it. only is case there is something wrong, and all other apps killed. and still something with even stronger oom score drain all ram.

that can be only the ROM init or it's closest binary files as surfaceflinder and other gpu drivers.

in that case, we already in big trouble. and reboot or freeze is imminent, and that is ROM bugs not kernel.
[G2 Android Development] h@lek:
After generally stable behaviour for a long time my phone froze completely while trying to make a call. I had to hard reboot it. I think the log has some errors and I hope it will help.

Thanks for all your efforts.

I am on 7.4 d802 with somboons 30b.
[G2 Android Development] metteduch:
:)

It went to 99% like 2 min after I took screenshot.

When my G2 was new I could get 45 mins screen on time before it hit 99% :D
[G2 Android Development] Trixanity:
I will guarantee that 1% drain with 45 minutes of SOT is an error in battery reporting :)
[G2 Android Development] errikosd:
Agreed. With any ROM you try, the G2 battery stays for an unexplainable large amount of time at 100% before going to 99%. I am sure there is an explanation for that behaviour though.

As I did some tests, I would like to point out something regarding the audio glitches. It is not kernel's fault. I used to experience them mostly with Spotify.

It is an app issue. With stock LG kernel, audio glitches happen 10x more often than with the kernel Dori gives us. Especially with screen on, stock LG kernel just can't cope with Spotify. Once again, thanks a lot Dorimanx. Your work is highly appreciated.
[G2 Android Development] LeoPosas:
First reboot since a while.

Using Spotify + Waze

Let me know if kernel failed.
[G2 Android Development] falconhawk81:
First freeze and have to Hard reboot after 2 days, in youtube app.
[G2 Android Development] dorimanx:
From logs i see that your modem crashed, bug in rom driver.

Kernel tried to restart it, but its was not possible.

In kernel modem driver, in every check set to panic in case of modem crash, this set by LG. They know that when rom bug triggered, there is no hope.
[G2 Android Development] dorimanx:
Same for you. Modem crashed.

I see that you put high pressure on ram release, this strees your device. And could lead to ram crash then to any other bugs.

SMSM: Modem SMSM state changed to SMSM_RESET. Fatal error on the modem. modem subsystem failure reason: wl1m.c:6519:Could not get L1 local command buffer. subsys-restart: subsystem_restart_dev(): Restart sequence requested for modem, restart_level = RELATED. subsys-restart: subsystem_shutdown(): [d9b5d000]: Shutting down modem pil-q6v5-mss fc880000.qcom,mss: Port c5fda200 halt timeout pil-q6v5-mss fc880000.qcom,mss: Port c5fda280 halt timeout CFG80211-TRACE) __wl_cfg80211_scan : START SCAN Watchdog bite received from ADSP! ADSP subsystem failure reason: SFR Init: wdog or kernel error suspected. subsys-restart: subsystem_restart_dev(): Restart sequence requested for adsp, restart_level = SYSTEM. mmc0: Timeout waiting for hardware interrupt.
[G2 Android Development] dorimanx:
Uksm driver crashed trying to process service hwuiTask2 (no idea what is it, some of your apps)

Possible bug in app, or in uksm with some unique situation. That i cant trace.
[G2 Android Development] g.paganini:
V7.4 workes perfect for me. Except the black screen on first flash with Ota app,no other black screens, reboots or any problems since release. Thanks!
[G2 Android Development] hitardo:
I have been holding on this, because I wanted to be absolutely sure about this feedback:

DorimanX kernel v7.4 is just amazing!

Top notch, the best kernel I have ever seen on an Android device.

After fixing the partitions (on TWRP), wiping my Storage (which was full of junk), I flashed the 7.4 version and my phone just flies.

Every task is fast.

My phone - finally - is what I always wanted it to be: a fast phone that responds to my request as I touch the screen, much like my old Nokia E66, which made my life easier.

When I want to send a SMS quickly, the phone just responds immediately.

Like [MENTION=2376110]dorimanx[/MENTION] said: it is on pair with our brain.

Even with me using the native Android Magnifying Glass (due to my vision problems), the SoC responds very quickly to my requests.

I am using CloudyG2 v3.3 with XPosed v78.

I have 180+ applications and have ~500MB of free RAM with no applications on Recent Apps.

I use Greenify, Inteli3G, BootManager, Amplify and many more apps to keep my phone always flying.
[G2 Android Development] duki994:
[MENTION=2376110]dorimanx[/MENTION]

I noticed that GPU has too many freq jumps with Simple Algorithm turned on. Adreno idler should ramp down gpu after load dropping. But it seems to have same amount of jumps if I turn it on/off manually via sysfs.

If I disable Simple GPU algorithm then I see Adreno idler working as intended (dropping freq faster and not letting it jump too high with low/middle 2D loads).
[G2 Android Development] gamertwo1:
Switched off while transferring data from PC. V7.4 d800 cloudy3.3
[G2 Android Development] duki994:
Anyone noticed slow write speed on exFAT and FAT32 USB flash drives over OTG?

Cruzer Contour is having really bad exFAT write performance. About 7MB/s over OTG.

However, on PC it goes up to stable 25MB/s real write speed (exFAT).

If I use NTFS (Paragon app) over OTG, then my USB flash write speed goes to max 25MB/s.

[MENTION=2376110]dorimanx[/MENTION]

Can you check if it's something with exFAT driver?
[G2 Android Development] n@vier:
Does paragon app really work?

I tried 2-3 months before but ntfs doesn't work for me... I'll try again...

Edit: it works ;)

with my hdd wd passport ultra 1tb ntfs goes to 7mb/s on LG G2, with same conditions (usb 2.0) on my pc goes 38mb/s so it seems slow on G2.
[G2 Android Development] Diechel:
[MENTION=2376110]dorimanx[/MENTION]

Possibly found my 1.7GHz bug.

Had my cores to 2.8GHz and they were most of the time maxed to 1.7.

After reverting to performance profile which only uses max 2.5 it started working again.

So my problem seems to be with frequencies higher than 2.5. It's reproduceable for me.
[G2 Android Development] n@vier:
You can also try to test OC 2.8ghz on performance profile and see if it works. I don't know if it can be useful ...anyway it's an idea to understand if it is the OC or profile's bug.
[G2 Android Development] Diechel:
Thanks for thinking with me.

Already tried that and did it again when typing this message. Still same response.
[G2 Android Development] dorimanx:
Last Kernel dmesg Info before BUG/Opps/Panic triggered:

there was no /proc/last_kmsg to read from

seems like ROM bug. kernel did not write any error.
[G2 Android Development] dorimanx:
maybe this freq is not supported by your cpu. (possible wrong voltage set in OC) or bug in ondemand gov.

need to check.

thanks for report.
[G2 Android Development] sheikhramnuj:
[MENTION=2376110]dorimanx[/MENTION] your kernel rocks! :D
[G2 Android Development] sankeerth24:
You are able to connect WD my passport ultra to your LG G2?? And it detects the HDD n loads? Sorry for the off topic .. Just curious ..as I tried the same but not detecting the HDD..
[G2 Android Development] boyheadkick:
as far as i know you'd need an external power source for your mypassport, meaning you need a Y cord

something like this
[G2 Android Development] lefty1409:
LS980, stock rom and kernel settings. After I update the PRL, the phone freezes in the next 2-5 seconds and I have to hold the power button to reboot.
[G2 Android Development] dorimanx:
You lost me on PRL no idea what is it.

Any way its rom bug.

From log

Last Kernel dmesg Info before BUG/Opps/Panic triggered: there was no /proc/last_kmsg to read from

Kernel didnt reported any error.
[G2 Android Development] Claudius A.:
Days ago I reported a problem with Dorimanx app. It was because of changing the dpi from 460 into 430. The app worked again after returning to 450 & 460 dpi (any). Yesterday, I faced the same problem without doing anything unusual.

Do you think it is a ROM bug?!
[G2 Android Development] n@vier:
I use a simple OTG cable (usb-micro usb). I think it depends on the voltage of the HDD.... my WD passport ultra 1tb is detected and mounted with app Paragon and my rom is Cloudyg2 3.3.
[G2 Android Development] duki994:
Well HDD is much more power hungry than flash drive. It may contribute to slower write speeds if phone can't both send power and full data stream at same time. They are all 3.3V or 5V (standard voltages for digital electronic circuits). But if NTFS formatted drive is working faster via Paragon, then something may stall exFAT/FAT32 driver in kernel.

My problem is that SanDisk Cruzer Contour 8GB which is ultra fast (25mb/s write speed) is slow on normal exFAT and FAT32 on Android (7mb/s). If I format it to NTFS and mount it via Paragon app, then Android can write up to full speed to my flash drive. Paragon app uses fuse driver to mount NTFS and HFS/HFS+ drives and some of it's own partition management tools like mkntfs.

Windows and Linux both write up to 25mb/s on any filesystem on Cruzer.
[G2 Android Development] n@vier:
[MENTION=3441913]duki994[/MENTION]

I'll do others tests with flash drive with exFAT and FAT32 to investigate :thumbup:

EDIT:

First tests on flash usb drive FAT32 have same speeds both for g2 and pc (there aren't relevant differences).

I'll try also with exFAT if there are differences I'll report here anyway till now everything seems ok.
[G2 Android Development] dorimanx:
Kernel 7.4

Uptime 112:53:44 tick tak tik tak :):D no problemo! CORE ONLINE!

Now i have time to play fallout 4 day and night hahah...

(after i spend time with my doters and wife)
[G2 Android Development] merlin21:
Can't touch this... Bum da bzzzz
[G2 Android Development] madmax59:
7.4 and stock 30d perfect running .

[MENTION=2376110]dorimanx[/MENTION] you are the best ?

LG-D802 cihazımdan Tapatalk kullanılarak gönderildi
[G2 Android Development] n@vier:
V7.4 I confirm what I said after 4 days extensive tests...I want to add only a word: MASTERPIECE!

For those who don't believe you do not know what you're missing :D
[G2 Android Development] 60nine:
i also wanted to confirm all of that, but had a freeze today... 1st one after v7.4 was released...

anyway - way better than several freezes per day with earlier versions...

getting closer to perfection

edit:

to be more clear - freeze happened while playing the game, and those kind of freezes i don't find that important
[G2 Android Development] boyheadkick:
this i have to try out..the last time i tried this was with my galaxy s3, which didn't support the otg voltage needed for the wd passport /OT

confirming 7.4 to be stable on my end as well..

i hereby nominate 7.4 to be declared a STABLE BUILD
[G2 Android Development] dorimanx:
bug fixed thanks to YOU. :)

https://github.com/dorimanx/DORIMAN...mmit/c8c29801fe016336e1685b8a5a1e9e5fb95611f8
[G2 Android Development] n@vier:
Erase data/.dori/

flash again the last kernel v7.4

set performance profile and enjoy ;)
[G2 Android Development] kairi_zeroblade:
how'd that be non-relevant?? stock kernel from LG doesn't?? you confirm its stable..then retract the latter with a random freeze??
[G2 Android Development] Claudius A.:
Did what you said, but it still not working! I think it's something related to ROM. Thanks!
[G2 Android Development] jamesd1085:
Beautiful work on this dori...patiently awaiting d801 version

3FV54047TK588010S
[G2 Android Development] theinspector:
This is awesome. Wish i could test, ill have to wait for d800 version. Thanks a ton for all the hard work!
[G2 Android Development] tornido067:
i know this is a stupid question but can i flash this kernel on a rom that is based on Gpro2 firmware ? :D or should i test and feedback ? xD
[G2 Android Development] jamesd1085:
Dori doesn't typically support ported roms but if its lg stock 5.0.2 based it usually plays well...just don't report issues unless on g2 stock base...good luck
[G2 Android Development] dorimanx:
Thanks for support :)

All models will be supported. i need to get ONE working stable for daily use, then i can add all that needed in ramdisk for each model.

And scope some special changes in kernel LG drivers for each model from LG source kernel for that model.

If LG didnt released source... then it's best to wait, as things can be missing...
[G2 Android Development] dorimanx:
from past knowledge, i will have to remove security check in kernel boot scripts to boot any custom G3/Gpro2 ROMS.

as this check test files in /system/lib/ and if change detected, you get stuck on boot, with SECURITY warning logo.

i have no idea what else this check binary do... so i am not rushing to remove it, till we can test all things...

I dont want to add BUG that i will not know how to fix.... no source for this security files...
[G2 Android Development] tornido067:
Lets say i will flash 30b stock rom ..and i will test there ..this is a better choice for me ..every

Ported rom is really laggy and stock kernel on this rom has latency :\ i will just try 30b ..thx for your great work man. Am really proud we have you here in g2 development process .